cloadyDocs
API ReferenceEndpointsWorkspaces

List the workspace's AI keys

Every API token that can call the AI gateway in this workspace: those pinned to it and the unpinned ones of its members, with this month's spend, the last 24 hours' requests and their limits.

GET
/api/workspaces/{workspaceSlug}/ai/keys
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/ai/keys"
{  "keys": [    {      "id": "string",      "name": "string",      "prefix": "string",      "owner": {        "id": "string",        "name": "string",        "email": "string"      },      "mine": true,      "pinned": true,      "aiOnly": true,      "capabilities": [        "read"      ],      "sharedWith": "string",      "models": "all",      "budgetCents": 0,      "rpm": -9007199254740991,      "status": "active",      "reason": "string",      "spentMicros": 0,      "requests24h": 0,      "lastUsedAt": "string",      "expiresAt": "string",      "createdAt": "string",      "editable": true    }  ]}