API tokens
Create API token
Create an API token of a specific type: one of client, admin, frontend, backend.
post/api/admin/api-tokens
Request body
Example request
{
"expiresAt": "2023-07-04T11:26:24+02:00",
"type": "frontend",
"environment": "development",
"project": "project-851",
"projects": [
"project-851",
"project-852"
],
"tokenName": "token-64522"
}Response
The resource was successfully created.
Example response
{
"secret": "project:environment.xyzrandomstring",
"tokenName": "some-user",
"type": "client",
"environment": "development",
"project": "developerexperience",
"projects": [
"developerexperience",
"enterprisegrowth"
],
"expiresAt": "2023-04-19T08:15:14.000Z",
"createdAt": "2023-04-19T08:15:14.000Z",
"seenAt": "2023-04-19T08:15:14.000Z",
"alias": "randomid-or-some-alias",
"secure": true
}