FlaresendDocs
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 key

Returns 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

StatusCodeWhen
401missing_api_key, invalid_api_key, revoked_api_key, expired_api_keyThe key doesn't work. See Authentication.
403project_disabledThe project is disabled.