Getting Started
Authentication
Get a bearer token to authenticate with the Mail.tm API. No API key required.
To make any request (except account creation and /domains) you need a bearer token. No API key is needed — just create an account and request a token.
How to get it?
You need to make a POST request to the /token path.
Request
Body
| Name | Type | Description |
|---|---|---|
| address | string | Account's address. Example: user@example.com |
| password | string | Account's password. |
Params
None
Response
{
"id": "string",
"token":"string"
}
Use this token as
"Authorization":"Bearer TOKEN"
In every request!
Remember: You should first create the account and then get the token!