API keys
Retrieve the current key
Find out which project and key a request is using. A cheap way to check a key works.
GET
/v1/meAPI keyReturns the project and the key that made the request. It reads nothing else, so it's the quickest way to check that a key is valid and the mailer is reachable, for example in a health check or right after deploying a new key.
Response
project{ id, slug, name }
The project the key belongs to.
key{ id, name, mode }
The key: its ID, its name and whether it's live or test.
Errors
| Status | Code | When |
|---|---|---|
| 401 | missing_api_key, invalid_api_key, revoked_api_key, expired_api_key | The key doesn't work. See Authentication. |
| 403 | project_disabled | The project is disabled. |