Workspaces
A workspace API key is a service-account credential scoped to one workspace. Use
GET /v1/workspace for metadata plus embedded usage, or GET /v1/workspace/usage for usage only. Grant balances and billing overrides are applied server-side — responses only include used, limit, and remaining per service. Create keys in the dashboard (Workspace → Workspace keys). Optional expiration is set at create time; after that instant the key stays active but authenticates as 401 invalid api key. Expiration cannot be changed later.Workspace key permissions
Permissions are fixed when the workspace key is created. Omit permissions to grant every workspace scope.
| Permission | Allows |
|---|---|
workspace:read | GET /v1/workspace |
project:create | POST /v1/projects |
project:list | GET /v1/projects |
project:read | GET /v1/projects/{projectId} |
project:update | PATCH /v1/projects/{projectId} |
project:delete | DELETE /v1/projects/{projectId} |
project_api_key:create | POST /v1/project-api-keys (with projectId in body) |
project_api_key:list | GET /v1/project-api-keys (with projectId query param) |
project_api_key:read | Included in list responses |
project_api_key:update | PATCH /v1/project-api-keys/{apiKeyId} — rename (name) or revoke (status: revoked) |
project_api_key:delete | DELETE /v1/project-api-keys/{apiKeyId} — permanent removal |
voices:list | GET /v1/voices |
voices:create | POST /v1/voices |
voices:read | GET /v1/voices/{voiceId} |
voices:update | PATCH /v1/voices/{voiceId} |
voices:delete | DELETE /v1/voices/{voiceId} |
The Workspace object
- workspaceIdstring
- Stable workspace identifier (wsp_…).
- namestring
- Display name.
- descriptionstring
- Optional description (may be an empty string).
- planstring
- Billing plan: free or enterprise.
- usageobject
- Monthly usage per billable service (see Usage object).
- enabledServicesstring[]
- Resolved workspace allowlist (transcription is always included). Defaults follow the workspace plan and reset when that plan column is saved or the workspace plan changes. Project keys cannot call this endpoint — use GET /v1/services for the full catalog and enabled flags.
Usage object
- planstring
- Billing plan for this workspace.
- resetsAtstring
- UTC ISO instant when monthly allowances reset.
- servicesarray
- One entry per billable service.
- services[].servicestring
- transcription, indexer, ai_search, clip_generation, thumbnail, metadata, or summarization.
- services[].usednumber
- Credits consumed this billing period.
- services[].limitnumber | null
- Monthly cap. null = unlimited (enterprise).
- services[].remainingnumber | null
- Credits still available (includes any bonus capacity; not itemized). null when unlimited.
Retrieve workspace
GET
/v1/workspaceReturns workspace metadata and the embedded
usage object for quota checks before jobs or catalog searches.Requires permission
workspace:read
Authenticate with
Authorization: Bearer sk_wsp_…. No X-Workspace-Id header. Project API keys cannot call this route — use GET /v1/services for the catalog and enabled flags.Retrieve workspace usage
GET
/v1/workspace/usageReturns only the
usage object — same shape as the usage field on GET /v1/workspace. Use when you do not need workspace name or description.Requires permission
workspace:read