Python
import requests url = "https://platform.ankra.app/api/v1/org/account/tokens" payload = { "name": "<string>" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "id": "<string>", "token": "<string>", "expires_at": "2023-11-07T05:31:56Z", "type": "Bearer" }
Create a new API token (CLI access with bearer token).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1 - 100
Successful Response