GET /ai/ai-api-key

List AI API keys for an organization

Responses

  • 403 application/json

    403

    Hide response attributes Show response attributes object
    • code string Required

      Machine-readable forbidden error code

      Value is forbidden_operation.

    • error string Required

      Forbidden error message

  • 200 application/json

    200

    Hide response attribute Show response attribute object
    • ai-api-keys array[object] Required
      Hide ai-api-keys attributes Show ai-api-keys attributes object

      AI API key metadata (without value)

      • updated-at string(date-time)

        Last update timestamp

      • name string

        Human-readable name for the AI API key

      • scope string

        Key scope: 'public' for all deployments, or a specific deployment UUID

      • id string(uuid)

        AI API key ID

      • org-uuid string(uuid)

        Organization UUID that owns this key

      • created-at string(date-time)

        Creation timestamp

GET /ai/ai-api-key
curl \
 --request GET 'https://api-ch-gva-2.exoscale.com/v2/ai/ai-api-key'
Response examples (403)
{
  "code": "forbidden_operation",
  "error": "string"
}
Response examples (200)
{
  "ai-api-keys": [
    {
      "updated-at": "2026-03-25T10:00:00Z",
      "name": "default-public-key",
      "scope": "public",
      "id": "11111111-1111-1111-1111-111111111111",
      "org-uuid": "22222222-2222-2222-2222-222222222222",
      "created-at": "2026-03-25T10:00:00Z"
    }
  ]
}