API ReferenceAPI Keys
Introspect the authenticated API key
Returns metadata for the Bearer-authenticated API key, including scopes and allowed organizations.
Authorization
bearerAuth AuthorizationBearer <token>
Bearer token using a Clai API key secret (clai_live_*).
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://app.goclai.com/api/v1/key"{
"keyId": "468bcefd-6536-4844-8249-aff3ecb2ef7b",
"name": "string",
"environment": "live",
"expiresAt": "2019-08-24T14:15:22Z",
"scopes": [
"string"
],
"allowedOrgIds": [
"string"
]
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}GETGet the Public API OpenAPI document
Returns the committed OpenAPI 3.1 specification for Public API v1. No authentication required.
GETList organizations the API key may call
Returns id and name for each organization on the authenticated API key allowlist. Omits organizations the bound user has left. Name is null when the organization row is missing or deleted.