Introspect the authenticated API key

GET
/api/v1/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": {}
  }
}