Skip to content
GET /api-token

Metadata only — raw tokens are never returned after creation. Shows your own tokens; with `api_token:view` or `api_token:manage` it shows every token in the organization. Requires one of `api_token:create`, `api_token:view` or `api_token:manage`, and an interactive human session.

Query Parameters

qstring

Case-insensitive substring match on the token's name. LIKE wildcards are matched literally. Max 200 characters.

Response Body

next_cursorstring,null
prev_cursorstring,null
resultobject[]
created_atstring · date-time
idstring

API token id (atok_…).

last_used_atstring,null · date-time
namestring
organization_idstring

The single organization this token can address (org_…).

updated_atstring · date-time
user_idstring

Member (usr_…) the token acts as. It carries that member's permissions, live.

curl -X GET 'https://api.elaichi.ai/api-token' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.elaichi.ai/api-token', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import os
import requests

url = "https://api.elaichi.ai/api-token"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

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