Skip to content
Last updated

List of Tokens

Endpoint

GET https://api.mailjet.com/v1/REST/tokens/

To effectively manage and monitor your tokens, you can retrieve a comprehensive list of all tokens created. This allows for easy oversight and management of token permissions and statuses.

Query Parameters

Sort is available for Name.

NameTypeDescription
NamestringWill only return an exact match.

Example Request

curl --request GET \
  --url https://api.mailjet.com/v1/rest/tokens \
  --header 'Authorization: Bearer 612d5125131d406081abb9cd2afdc4e3' \

Status code: 200

Response Data Field Structure

NameTypeDescription
IDintegerThe ID of the token.
NamestringRequired. A unique identifier for the token.
Permissionsarray of stringsList of permissions assigned to the token. See full list of permissions.
ExpiresAtDate RFC3339Date at which the token expires.
CreatedAtDate RFC3339Date on which the token was created.
UpdatedAtDate RFC3339Date on which the token was last updated.

API Response Example

{
    "Count": 1,
    "Total": 1,
    "Data": [
        {
            "ID": 1,
            "UserID": 2,
            "OrganisationID": 2,
            "AccessToken": null,
            "Name": "marketing team",
            "Permissions": [
                "read_template_marketing",
                "create-template_marketing",
                "update_template_marketing"
            ],
            "CreatedAt": "2024-03-19T10:19:37.911136Z",
            "UpdatedAt": "2024-03-19T10:19:37.911136Z"
        }
    ]
}