Skip to main content
GET
/
v1
/
api-keys
Listar API Keys activas del usuario
curl --request GET \
  --url https://agents.studio.getsupervisor.ai/v1/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'x-workspace-id: <x-workspace-id>'
[
  {
    "id": "4d4d48e8-9b7a-4d0e-9b9c-52f927c8f0af",
    "name": "Backend Integration",
    "description": "Servicio interno para sincronizar métricas",
    "scopes": [
      "agents:read",
      "workspaces:read"
    ],
    "environment": "production",
    "keyPreview": "sk_live_4d4d...c8f0",
    "createdAt": "2025-10-10T12:00:00.000Z",
    "updatedAt": "2025-10-12T08:15:42.000Z",
    "lastUsedAt": "2025-10-14T21:03:11.000Z"
  },
  {
    "id": "9fe96b51-7b4d-4ad2-819c-246708fa8e52",
    "name": "QA Sandbox",
    "description": null,
    "scopes": [
      "agents:read"
    ],
    "environment": "sandbox",
    "keyPreview": "sk_sbox_9fe9...8e52",
    "createdAt": "2025-09-30T17:45:00.000Z",
    "updatedAt": "2025-09-30T17:45:00.000Z",
    "lastUsedAt": null
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-workspace-id
string<uuid>
required

Identificador del workspace multi-tenant.

Response

Colección de API Keys activas

id
string<uuid>
required
name
string
required
scopes
string[]
required

Lista de scopes autorizados para esta credencial.

Minimum array length: 1
environment
enum<string>
required
Available options:
production,
sandbox,
staging,
development
keyPreview
string
required

Prefijo y sufijo visibles de la API Key (el valor completo no se expone después de la creación).

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
description
string | null
Maximum string length: 255
lastUsedAt
string<date-time> | null

Fecha/hora del último uso registrado.

revokedAt
string<date-time> | null

Fecha/hora en que se revocó la credencial (si aplica).