cURL
curl --request POST \ --url https://control.green.us-east-1.aws.prod.archil.com/api/tokens \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>" } '
{ "success": true, "data": { "id": "<string>", "name": "<string>", "description": "<string>", "tokenSuffix": "<string>", "createdAt": "2023-11-07T05:31:56Z", "lastUsedAt": "2023-11-07T05:31:56Z", "token": "key-abc123..." } }
Creates a new API token for programmatic access. The full token value is only returned once at creation time.
API key (format key-{API_KEY})
key-{API_KEY}
Token name
1 - 100
Token description
500
Token created successfully
true
Show child attributes
Was this page helpful?