Outvexa

API reference

Mailboxes

11 endpoints. All paths are relative to your installation, for example https://app.example.com.

get/api/v1/w/{workspaceId}/email-accounts

Connected mailboxes with today’s usage and health

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/email-accounts/oauth/{provider}

Start Google / Microsoft OAuth (returns the consent URL)

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
providerrequiredstring

Request body (JSON)

loginHintstring (email)
Request
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"
  }'

post/api/v1/w/{workspaceId}/email-accounts/smtp

Connect an SMTP/IMAP mailbox (only where the provider permits it)

Workspace member or API keyRole admin or higherSuccess: 201

Path parameters

workspaceIdrequiredstring

Request body (JSON)

emailAddressrequiredstring (email)
displayNamestringLength 0–100
passwordstringLength 1–500
smtpPasswordstringLength 1–500
imapPasswordstringLength 1–500
smtpHostrequiredstringLength 1–∞
smtpPortrequiredintegerRange 1–65535
smtpSecurerequiredboolean
imapHostrequiredstringLength 1–∞
imapPortrequiredintegerRange 1–65535
imapSecurerequiredboolean
usernamestringLength 1–∞
smtpUsernamestringLength 1–∞
imapUsernamestringLength 1–∞
sentFolderstringDefault "Sent"
appendToSentbooleanDefault false
Request
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
  }'

patch/api/v1/w/{workspaceId}/email-accounts/{id}

Sender identity, limits and sending window

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

displayNamestring | null
replyTostring (email) | null
signatureTextstring | null
dailySendLimitintegerRange 1–2000
minSecondsBetweenSendsintegerRange 30–3600
sendingWindowobject
sendingWindow.daysrequiredinteger[]
sendingWindow.startrequiredstringPattern ^\d{2}:\d{2}$
sendingWindow.endrequiredstringPattern ^\d{2}:\d{2}$
sendingWindow.timezonestringDefault "UTC"
sendingWindow.enabledbooleanDefault false
readinessobject
readiness.enabledrequiredboolean
readiness.initialDailyCapintegerRange 1–500 · Default 5
readiness.dailyIncreaseintegerRange 1–500 · Default 5
readiness.reviewIntervalDaysintegerRange 3–30 · Default 7
Request
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
    }
  }'

delete/api/v1/w/{workspaceId}/email-accounts/{id}

Disconnect (revokes tokens, pauses its sequences)

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/email-accounts/{id}/test

Test mailbox connection

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/test" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/email-accounts/{id}/delivery-diagnostic

Send one clearly labeled diagnostic message from an authorized mailbox to itself

Workspace member or API keyRole admin or higher1 requests / 15 min per workspaceSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/delivery-diagnostic" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/email-accounts/{id}/pause

Pause sending from a mailbox

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/pause" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/email-accounts/{id}/resume

Resume a paused mailbox

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/resume" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/email-accounts/{id}/resync

Full resync of the mailbox

Workspace member or API keyRole admin or higherSuccess: 202

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/email-accounts/$ID/resync" \
  -H "Authorization: Bearer $EMN_API_KEY"

get/api/v1/w/{workspaceId}/mailbox-health

Connection, auth, sync, send/receive, errors, bounces, complaints and DNS per mailbox

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/mailbox-health" \
  -H "Authorization: Bearer $EMN_API_KEY"