Access
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
client.APIKeys.Access.Add(ctx, id, body) (*APIKey, error)
POST/v1/account/api_keys/{id}/workspaces
Revoke an API key's access to a workspace
client.APIKeys.Access.Remove(ctx, id, workspaceID) error
DELETE/v1/account/api_keys/{id}/workspaces/{workspaceId}
List the workspaces an API key has access to
client.APIKeys.Access.List(ctx, id, query) (*CursorPagination[Workspace], error)
GET/v1/account/api_keys/{id}/workspaces