APIKeyService
API Keys

Grant an API key access to a workspace

Grants this API key access to the specified workspace. Idempotent — adding an already-associated workspace is a no-op. Returns the updated API key with refreshed workspace preview and total.

post/v1/account/api_keys/{id}/workspaces

Path parameters

idstring required

The API key being granted workspace access.

Request body

idstring

The API key being granted workspace access.

workspaceIdstring

The workspace to grant access to.

Response

OK

Changes