List API tokens
/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
Case-insensitive substring match on the token's name. LIKE wildcards are matched literally. Max 200 characters.
Response Body
API token id (atok_…).
The single organization this token can address (org_…).
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())