Python
import requests url = "https://platform.ankra.app/api/v1/org/account/tokens" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
[ { "id": "<string>", "name": "<string>", "expires_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "revoked_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z", "revoked": true } ]
List user API tokens (CLI access with bearer token).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response