Skip to content
Last updated

Bearer Token

Bearer Token authentication involves using a token generated via the Token endpoint. This token carries permissions that may restrict access to certain resources. For a detailed list of available permissions, refer to the Token Permissions section.

Info

Note: Initial access to the Token endpoint requires Basic Auth as outlined in Basic Authentication. However, you can generate a token with permissions to create tokens for other users thereafter.

Tokens come with an expiry date, which can be set during their creation. By default, tokens expire after 365 days. Make sure to renew the token before it expires to maintain uninterrupted access.

Example

curl -H "Authorization: Bearer dddbb31e-1af0-4ddb-aa03-72b682375522" https://api.mailjet.com/v1/rest/templates