Projects
Create a project API token.
Endpoint that allows creation of project API tokens for the specified project.
post/api/admin/projects/{projectId}/api-tokens
Path parameters
projectIdstring required
Request body
Example request
{
"type": "frontend",
"environment": "development",
"expiresAt": "2023-10-01T00:00:00Z",
"tokenName": "some-user"
}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
}