{"name":"IMAP Integration API","version":"1.0.0","description":"Backend-only IMAP email integration service","endpoints":{"accounts":{"GET /api/v1/accounts":"List all email accounts","POST /api/v1/accounts":"Add new email account","GET /api/v1/accounts/:id":"Get account details","GET /api/v1/accounts/:id/sync":"Sync messages for account","DELETE /api/v1/accounts/:id":"Delete account"},"messages":{"GET /api/v1/accounts/:id/messages":"Get paginated messages","GET /api/v1/accounts/:id/messages/:messageId":"Get message details"},"auth":{"GET /api/v1/auth/google":"Get Google OAuth URL","GET /api/v1/auth/google/callback":"Google OAuth callback","GET /api/v1/auth/outlook":"Get Outlook OAuth URL","GET /api/v1/auth/outlook/callback":"Outlook OAuth callback"},"search":{"POST /api/v1/search":"Search emails on server","GET /api/v1/search/:uid/download":"Download email as .eml"}},"health":"GET /health"}