Skip to content
English

Documentation Adapt Mail

Mail for your product

Connect your interface to Adapt Mail: mailboxes, read and send messages, show dialogs, manage files, contacts and sender rules.

Create accounts, connect domains, pay for mailboxes and increase their storage in the account dashboard where you subscribed to mail. The mail API provides access to existing mailboxes.

Start with authorization

For server integrations, use a mail API key with X-Customer-ID. To authenticate an individual user, obtain a Bearer token using their login and password.

GET /v1/mailboxes
X-API-Key: <mail-api-key>
X-Customer-ID: <mail-account-id>

First request

The API base URL is https://adapt-mail.com. Use HTTPS for all requests and Content-Type: application/json for JSON request bodies.

Obtain an access token using your mail account login and password. Then list your mailboxes and save the selected mailbox’s id: use it as mailbox_id in request URLs. Replace values in angle brackets with your own data.

curl https://adapt-mail.com/v1/auth/token \
-H "Content-Type: application/json" \
--data '{"login":"<login>","password":"<password>","mode":"account"}'
curl https://adapt-mail.com/v1/mailboxes \
-H "Authorization: Bearer <access_token>"

Documentation formats

The OpenAPI schema describes request parameters and responses. llms-full.txt contains the complete reference as plain text. Download links are available at the top of each page.