API Keys
Issue, rotate, and revoke API keys for the account, and grant or revoke each key’s access to individual workspaces.
List API keys
api_keys.list(**kwargs) -> CursorPagination<APIKey { metadata, spec, info } >
GET/v1/account/api_keys
Create a new API key
api_keys.create(**kwargs) -> APIKey { metadata, spec, info }
POST/v1/account/api_keys
Get an API key by ID
api_keys.retrieve(id) -> APIKey { metadata, spec, info }
GET/v1/account/api_keys/{id}
Update an API key
api_keys.update(id, **kwargs) -> APIKey { metadata, spec, info }
PATCH/v1/account/api_keys/{id}
Rotate an API key
api_keys.rotate(id) -> APIKey { metadata, spec, info }
PUT/v1/account/api_keys/{id}/rotate
API KeysAccess
Issue, rotate, and revoke API keys for the account, and grant or revoke each key’s access to individual workspaces.
Grant an API key access to a workspace
api_keys.access.add(id, **kwargs) -> APIKey { metadata, spec, info }
POST/v1/account/api_keys/{id}/workspaces
Revoke an API key's access to a workspace
api_keys.access.remove(workspace_id, **kwargs) -> void
DELETE/v1/account/api_keys/{id}/workspaces/{workspaceId}
List the workspaces an API key has access to
api_keys.access.list(id, **kwargs) -> CursorPagination<Workspace { metadata, spec, status } >
GET/v1/account/api_keys/{id}/workspaces