cURL
curl --request POST \ --url https://api.example.com/api-tokens \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>" } '
{ "id": "<string>", "name": "<string>", "prefix": "<string>", "created_at": "<string>", "token": "<string>", "last_used_at": "<string>" }
Create a new API token. The raw token is returned once — store it securely.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response
Returned only on creation — includes the raw token, shown once.