API Keys
APIKeyService manages workspace-scoped API Keys. Each API key belongs to a single workspace, ensuring isolation between environments.
Authentication: Bearer token (JWT) Scope: Workspace-level operations
List API keys
client.apiKeys.list(APIKeyListParams { cursor, includeInfo, limit, 2 more } query?, RequestOptionsoptions?): CursorPagination<APIKey { metadata, spec, info } >
GET/v1/api_keys
Create a new API key
client.apiKeys.create(APIKeyCreateParams { metadata, spec } body, RequestOptionsoptions?): APIKey { metadata, spec, info }
POST/v1/api_keys
Get an API key by ID
client.apiKeys.retrieve(stringid, RequestOptionsoptions?): APIKey { metadata, spec, info }
GET/v1/api_keys/{id}
Delete an API key
client.apiKeys.delete(stringid, RequestOptionsoptions?): void
DELETE/v1/api_keys/{id}
Update an API key
client.apiKeys.update(stringid, APIKeyUpdateParams { metadata, spec, updateMask } body, RequestOptionsoptions?): APIKey { metadata, spec, info }
PATCH/v1/api_keys/{id}
Rotate an API key
client.apiKeys.rotate(stringid, RequestOptionsoptions?): APIKey { metadata, spec, info }
PUT/v1/api_keys/{id}/rotate