List organizations the API key may call

GET
/api/v1/orgs

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.

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/orgs"
{
  "organizations": [
    {
      "id": "string",
      "name": "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": {}
  }
}