Authentication
Initiate Authorization
GET /auth/email
Initiate email integration authorization
Parameters
The ID of the user
Response
Redirects to email provider’s OAuth pageAuthorization Callback
GET /email/callback
Callback endpoint for email authorization
Parameters
OAuth authorization code
State parameter for security verification
Response
Redirects to success or error page with statusAccount Management
List Accounts
GET /email/accounts
Get connected email accounts
Parameters
The ID of the user
Response
List of connected email accounts
Disconnect Account
DELETE /email/accounts/:accountId
Disconnect an email account
Parameters
ID of the email account to disconnect
The ID of the user
Response
Refresh Token
POST /email/accounts/:accountId/refresh
Refresh token for an email account
Parameters
ID of the email account
The ID of the user
Response
Email Operations
Send Email
POST /email/accounts/:accountId/send
Send an email through a connected account
Parameters
ID of the email account to send from
The ID of the user