API Keys
List API Keys
GET/v1/keys
Retrieve a list of all API keys in your organization. Returns key metadata including name, prefix, scopes, and last usage timestamp. For security, the full key and hash are never returned from this endpoint.
Authentication: JWT token. Any authenticated team member can list API keys.
Error Responses
401unauthorized
JWT is missing or expired.
List API Keys
curl https://api.cali-br.com/v1/keys \
-H #a5d6ff">"Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."Response200
{
"keys": [
{
"id": "key_m8Xp2nQw",
"name": "Production Scoring - LOS Integration",
"prefix": "sk_live_abc1",
"scopes": ["score", "read"],
"environment": "production",
"last_used_at": "2026-03-26T14: 28: 55Z",
"created_at": "2026-03-20T10: 00: 00Z"
},
{
"id": "key_j4Rt7vBz",
"name": "Staging - QA Testing",
"prefix": "sk_test_xyz9",
"scopes": ["score"],
"environment": "staging",
"last_used_at": "2026-03-25T16: 45: 00Z",
"created_at": "2026-03-18T14: 30: 00Z"
}
]
}