Authenticating requests
All API requests need a bearer token in the Authorization header. Request a token with your account credentials:
POST /api/v1/auth/login
Content-Type: application/json
{
"email": "[email protected]",
"password": "your_password"
}
// Response: { "token": "...", "user": { ... } }Then send the token on every request: Authorization: Bearer {token}
Authentication
POST
/api/v1/auth/login
Authenticate and receive an API token.
POST
/api/v1/auth/logout
Revoke the current token.
GET
/api/v1/auth/me
Return the authenticated user and tenant.
PATCH
/api/v1/auth/me
Update the user profile (name).
POST
/api/v1/auth/change-password
Change the password and revoke all other sessions.
GET
/api/v1/auth/sessions
List all active tokens.
DELETE
/api/v1/auth/sessions/{id}
Revoke a specific session.
Emails
GET
/api/v1/emails
List emails in a mailbox, with filters.
POST
/api/v1/emails/send
Send an email, with mail merge, attachments and scheduling.
GET
/api/v1/emails/{id}
Retrieve a single email with full headers.
DELETE
/api/v1/emails/{id}
Move an email to the trash.
POST
/api/v1/emails/{id}/reply
Reply to an email.
POST
/api/v1/emails/{id}/forward
Forward an email.
PATCH
/api/v1/emails/{id}/read
Mark as read or unread.
PATCH
/api/v1/emails/{id}/labels
Add or remove labels.
Mailboxes
GET
/api/v1/mailboxes
List all mailboxes in your tenant.
POST
/api/v1/mailboxes
Create a mailbox.
GET
/api/v1/mailboxes/{id}
Get mailbox details.
PUT
/api/v1/mailboxes/{id}
Update the mailbox quota or settings.
DELETE
/api/v1/mailboxes/{id}
Delete a mailbox.
POST
/api/v1/mailboxes/{id}/suspend
Suspend mailbox access.
Domains
GET
/api/v1/domains
List all domains.
POST
/api/v1/domains
Add a domain.
GET
/api/v1/domains/{id}/dns
Get the DNS records the domain needs.
POST
/api/v1/domains/{id}/verify
Run the DNS verification check.
DELETE
/api/v1/domains/{id}
Remove a domain.
Webhooks
GET
/api/v1/webhooks
List registered webhooks.
POST
/api/v1/webhooks
Register a webhook endpoint.
PUT
/api/v1/webhooks/{id}
Update the webhook URL or event filters.
DELETE
/api/v1/webhooks/{id}
Delete a webhook.
