Skip to main content

Create API token

POST 

<your-unleash-url>/api/admin/api-tokens

Create an API token of a specific type: one of client, admin, frontend.

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/api-tokens' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"expiresAt": "2023-07-04T11:26:24+02:00",
"type": "admin",
"tokenName": "token-64522"
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Body required
{
  "expiresAt": "2023-07-04T11:26:24+02:00",
  "type": "admin",
  "tokenName": "token-64522"
}
ResponseClear

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