Skip to main content

Create a token for a service account.

POST 

<your-unleash-url>/api/admin/service-account/:id/token

Creates a new token for the service account identified by the id.

Request

Responses

The resource was successfully created.
Response Headers
  • location string
    The location of the newly created resource.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/service-account/:id/token' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"description": "user:xyzrandomstring",
"expiresAt": "2023-04-19T08:15:14.000Z"
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "description": "user:xyzrandomstring",
  "expiresAt": "2023-04-19T08:15:14.000Z"
}
ResponseClear

Click the Send API Request button above and see the response here!