Skip to main content

Generate and use access token

  1. Generate access token

    Go to the URL:https://<domain_name>/<realm_code>/<space_code>/api/v1/auth-tokens/personal-access-token/create-token/
    Fill out the form and click POST.
    Copy the "access_token" field from the response.
  2. Use examples
curl -H "Authorization: Bearer <access_token>" \
     https://<domain_name>/<realm_code>/<space_code>/api/v1/...


import requests

url = "https://<domain_name>/<realm_code>/<space_code>/api/v1/..."
headers = {
    "Authorization": "Bearer <access_token>"
}

response = requests.get(url, headers=headers)

if response.status_code == 200:
    print("Response:", response.json())
else:
    print("Error:", response.status_code, response.text)