Workspaces

Regenerate workspace API key

Regenerates the API key for a workspace. Sets 24-hour expiration on existing active keys and creates a new key. Cannot be used on protected workspaces. Rate limited to 1 request per minute.

post/workspaces/{id}/api-key/regenerate

Path parameters

idstring uuid required

Workspace ID

Request body

key_type'live' | 'test'

Which key type to regenerate ('live' or 'test'). Defaults to 'live'. Regenerating one type does not expire or affect the other.

Response

API key regenerated successfully

key_type'live' | 'test' required

The key type that was regenerated

workspace_idstring uuid required

Changes

No recorded changes to this endpoint across all 1 revision of this API.