List all API keys for your organization.
GEThttps://api.aitronos.com/v1/organizations/{org_id}/api-keys
org_id string required
The organization ID.
skip integer optional
Number of items to skip for pagination. Default is 0.
take integer optional
Number of items to return. Default is 20, max is 100.
page integer optional
Page number for pagination. Default is 1.
page_size integer optional
Number of items per page. Default is 20, max is 100.
A paginated list of API key objects.
Bash
- Bash
- Python
- JavaScript
curl "https://api.aitronos.com/v1/organizations/org_123abc/api-keys" \
-H "X-API-Key: $FREDDY_API_KEY"Response:
{
"api_keys": [
{
"id": "ak_123abc456def789",
"key_prefix": "oak_live_a1b2",
"organization_id": "org_123abc",
"key_name": "Production API Key",
"is_active": true,
"usage_limit_chf": 500.0,
"scopes": ["read:usage", "write:projects"],
"created_by": "usr_456def",
"created_at": "2025-11-05T10:00:00Z",
"expires_at": "2026-01-01T00:00:00Z"
},
{
"id": "ak_987fed654cba321",
"key_prefix": "oak_live_c3d4",
"organization_id": "org_123abc",
"key_name": "Development API Key",
"is_active": false,
"usage_limit_chf": null,
"scopes": ["read:usage"],
"created_by": "usr_456def",
"created_at": "2025-10-15T08:30:00Z",
"expires_at": null
}
],
"pagination": {
"page": 1,
"page_size": 20,
"total_count": 2,
"total_pages": 1
}
}