English
cURL
curl --request POST \ --url https://{base_url}/v1/account/token \ --header 'Content-Type: application/json' \ --data ' { "revoke_existing": false, "valid_until": "2050-09-22T12:56:40Z" } '
{ "hashed_token": "<string>", "token_email": "<string>", "last_used_at": "<string>", "created_at": "<string>", "valid_until": "<string>", "name": "<string>", "token": "<string>" }
Create a new API token for the current user. Only the hash of the token is stored in the database. The token in the response will be shared as clear text only once as the responseof this operation.
The details of the API token to create
The created API token