Create a new admin access token
Action:POSTEndpoint:
/credentials/apikeys/applications/self/accesstokens
This endpoint enables you to create a new admin access token for the application provided in the header. You can create a maximum of 20 admin access tokens per application.
You must assign roles when creating a new admin access token. You can also assign an expiration date other than the 90-day default value using the expires_at field.
- Roles - You must assign one or more roles to your admin access tokens to control their permissions. You cannot create admin access tokens with roles that are not currently assigned to the admin access token you are using to call this endpoint.
-
Expiration - When creating a new admin access token, you can set an expiration date using the
expires_atparameter. Theexpires_atfield is optional, and accepts a value between one and 365 days in the future. If you do not provide theexpires_atfield, the expiration of the new admin access token is set to 90 days in the future by default.
Request body
Response body
List all admin access tokens
Action:GETEndpoint:
/credentials/apikeys/applications/self/accesstokens
Retrieves a paginated list of all admin access tokens for the currently authenticated application, and only includes metadata for categories such as roles, expiration, and timestamps.
Note
The secret values of admin access tokens are never returned in list operations.
The secret values of admin access tokens are never returned in list operations.
URL query parameters
Response body
Retrieve details of the current admin access token
Action:GETEndpoint:
/credentials/apikeys/applications/self/accesstokens/self
Retrieves detailed information about the currently authenticated admin access token.
Note
The secret values of admin access tokens are never returned in list operations.
The secret values of admin access tokens are never returned in list operations.
Response body
Delete current admin access token
Action:DELETEEndpoint:
/credentials/apikeys/applications/self/accesstokens/self
Deletes the currently authenticated admin access token.