Skip to main content
POST
/
api
/
v1
/
org
/
account
/
tokens
Create User Api Token Endpoint
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Body

application/json
name
string
required
Required string length: 1 - 100
expires_at
string<date-time> | null

Response

Successful Response

id
string<uuid4>
required
token
string
required
expires_at
string<date-time>
required
type
string
default:Bearer