Service Accounts
Create a token for a service account.
Enterprise feature
Creates a new token for the service account identified by the id.
post/api/admin/service-account/{id}/token
Path parameters
idstring required
Request body
Example request
{
"description": "user:xyzrandomstring",
"expiresAt": "2023-04-19T08:15:14.000Z"
}Response
The resource was successfully created.
Example response
{
"id": 1,
"secret": "user:xyzrandomstring",
"createdAt": "2023-04-19T08:15:14.000Z",
"seenAt": "2023-04-19T08:15:14.000Z",
"userId": 1337,
"description": "user:xyzrandomstring",
"expiresAt": "2023-04-19T08:15:14.000Z"
}