API reference
11 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/email-accountsConnected mailboxes with today’s usage and health/api/v1/w/{workspaceId}/email-accounts/oauth/{provider}Start Google / Microsoft OAuth (returns the consent URL)/api/v1/w/{workspaceId}/email-accounts/smtpConnect an SMTP/IMAP mailbox (only where the provider permits it)/api/v1/w/{workspaceId}/email-accounts/{id}Sender identity, limits and sending window/api/v1/w/{workspaceId}/email-accounts/{id}Disconnect (revokes tokens, pauses its sequences)/api/v1/w/{workspaceId}/email-accounts/{id}/testTest mailbox connection/api/v1/w/{workspaceId}/email-accounts/{id}/delivery-diagnosticSend one clearly labeled diagnostic message from an authorized mailbox to itself/api/v1/w/{workspaceId}/email-accounts/{id}/pausePause sending from a mailbox/api/v1/w/{workspaceId}/email-accounts/{id}/resumeResume a paused mailbox/api/v1/w/{workspaceId}/email-accounts/{id}/resyncFull resync of the mailbox/api/v1/w/{workspaceId}/mailbox-healthConnection, auth, sync, send/receive, errors, bounces, complaints and DNS per mailbox/api/v1/w/{workspaceId}/email-accountsConnected mailboxes with today’s usage and health
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/email-accounts/oauth/{provider}Start Google / Microsoft OAuth (returns the consent URL)
Path parameters
workspaceIdrequired | string |
providerrequired | string |
Request body (JSON)
loginHint | string (email) |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/oauth/$PROVIDER" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"loginHint": "name@example.com"
}'/api/v1/w/{workspaceId}/email-accounts/smtpConnect an SMTP/IMAP mailbox (only where the provider permits it)
Path parameters
workspaceIdrequired | string |
Request body (JSON)
emailAddressrequired | string (email) |
displayName | stringLength 0–100 |
password | stringLength 1–500 |
smtpPassword | stringLength 1–500 |
imapPassword | stringLength 1–500 |
smtpHostrequired | stringLength 1–∞ |
smtpPortrequired | integerRange 1–65535 |
smtpSecurerequired | boolean |
imapHostrequired | stringLength 1–∞ |
imapPortrequired | integerRange 1–65535 |
imapSecurerequired | boolean |
username | stringLength 1–∞ |
smtpUsername | stringLength 1–∞ |
imapUsername | stringLength 1–∞ |
sentFolder | stringDefault "Sent" |
appendToSent | booleanDefault false |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/smtp" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"emailAddress": "name@example.com",
"displayName": "string",
"password": "string",
"smtpPassword": "string",
"imapPassword": "string",
"smtpHost": "string",
"smtpPort": 1,
"smtpSecure": true,
"imapHost": "string",
"imapPort": 1,
"imapSecure": true,
"username": "string",
"smtpUsername": "string",
"imapUsername": "string",
"sentFolder": "Sent",
"appendToSent": false
}'/api/v1/w/{workspaceId}/email-accounts/{id}Sender identity, limits and sending window
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
displayName | string | null |
replyTo | string (email) | null |
signatureText | string | null |
dailySendLimit | integerRange 1–2000 |
minSecondsBetweenSends | integerRange 30–3600 |
sendingWindow | object |
sendingWindow.daysrequired | integer[] |
sendingWindow.startrequired | stringPattern ^\d{2}:\d{2}$ |
sendingWindow.endrequired | stringPattern ^\d{2}:\d{2}$ |
sendingWindow.timezone | stringDefault "UTC" |
sendingWindow.enabled | booleanDefault false |
readiness | object |
readiness.enabledrequired | boolean |
readiness.initialDailyCap | integerRange 1–500 · Default 5 |
readiness.dailyIncrease | integerRange 1–500 · Default 5 |
readiness.reviewIntervalDays | integerRange 3–30 · Default 7 |
curl -X PATCH "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"displayName": "string",
"replyTo": "name@example.com",
"signatureText": "string",
"dailySendLimit": 1,
"minSecondsBetweenSends": 30,
"sendingWindow": {
"days": [
1
],
"start": "string",
"end": "string"
},
"readiness": {
"enabled": true
}
}'/api/v1/w/{workspaceId}/email-accounts/{id}Disconnect (revokes tokens, pauses its sequences)
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/email-accounts/{id}/testTest mailbox connection
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/test" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/email-accounts/{id}/delivery-diagnosticSend one clearly labeled diagnostic message from an authorized mailbox to itself
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/delivery-diagnostic" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/email-accounts/{id}/pausePause sending from a mailbox
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/pause" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/email-accounts/{id}/resumeResume a paused mailbox
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/resume" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/email-accounts/{id}/resyncFull resync of the mailbox
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/resync" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/mailbox-healthConnection, auth, sync, send/receive, errors, bounces, complaints and DNS per mailbox
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/mailbox-health" \
-H "Authorization: Bearer $EMN_API_KEY"