Personal access tokens
Create a new personal access token (PAT) for the current user.
Creates a new [personal access token](https://docs.getunleash.io/concepts/api-tokens-and-client-keys#personal-access-tokens (PAT) belonging to the current user.
post/api/admin/user/tokens
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"
}