Project API keys
sk_prj_…) with a workspace API key (sk_wsp_…). Each key is a credential for a service account — API writes are attributed to that identity, not a human console user. Project keys authenticate canvases, generate routes (/v1/transcribe, /v1/clips, /v1/narrate, and the other Services POSTs), job status (/v1/jobs), /v1/transcriptions, /v1/narrations, /v1/storage-connections, /v1/glossary, /v1/voices (workspace-scoped; the bound projectId is not used to filter voices), and catalog search — the project is bound to the key automatically. When minting or listing keys with a workspace key, send projectId in the request body (create) or query string (list). Update and delete routes derive the project from apiKeyId. You need a projectId from the Projects API first. Optional expiresAt is set only on create; after that instant the key stays active but requests return 401 invalid api key.Project key permissions
Permissions are fixed when the project key is created. Omit permissions to grant every project scope. Create work with a service:* permission per generate route (service:transcribe, service:metadata, service:scene-analysis, …). job:list, job:read, and job:cancel cover job status only. Legacy job:create still works as an umbrella for every service:* permission.
| Permission | Allows |
|---|---|
job:list | GET /v1/jobs |
job:read | GET /v1/jobs/{jobId} and GET /v1/jobs/{jobId}/webhook-deliveries |
job:cancel | POST /v1/jobs/{jobId}/cancel |
service:transcribe | POST /v1/transcribe |
service:narrate | POST /v1/narrate |
service:clips | POST /v1/clips |
service:thumbnails | POST /v1/thumbnails |
service:metadata | POST /v1/metadata |
service:summarize | POST /v1/summarize |
service:translate | POST /v1/translate |
service:romanize | POST /v1/romanize |
service:dub | POST /v1/dub |
service:moderate | POST /v1/moderate |
service:scene-analysis | POST /v1/scene-analysis |
service:index | POST /v1/index |
service:pipelines | POST /v1/pipelines, POST /v1/pipelines/preview, and POST /v1/pipelines/{pipelineId}/retry |
job:create | Legacy umbrella still accepted on existing keys. Same as granting every service:* permission. A service:* grant on the key is not enough if the workspace does not have that service enabled — check GET /v1/services. |
canvas:list | GET /v1/canvases and GET /v1/canvases/{canvasId}/versions |
canvas:create | POST /v1/canvases and POST /v1/canvases/{canvasId}/versions |
canvas:read | GET /v1/canvases/{canvasId}, version retrieve, and active-versions |
canvas:update | PATCH /v1/canvases/{canvasId} and version update |
canvas:delete | DELETE /v1/canvases/{canvasId} |
transcript:list | GET /v1/transcriptions |
transcript:read | GET /v1/transcriptions/{transcriptionId}, export routes, and GET …/storage sync status. Existing keys with this permission still satisfy artifact :read until they are rotated. |
transcript:edit | PATCH /v1/transcriptions/{id} (display name), PATCH …/segments, glossary preview/apply, revert, and POST …/storage/sync. Existing keys with this permission still satisfy artifact :update until they are rotated. |
transcript:delete | DELETE /v1/transcriptions/{transcriptionId} |
metadata:read | GET /v1/transcriptions/{id}/metadata |
metadata:update | PATCH /v1/transcriptions/{id}/metadata |
summarization:read | GET /v1/summarizations/{summarizationId} |
summarization:update | PATCH /v1/summarizations/{id} and DELETE /v1/summarizations/{id} |
translation:read | GET /v1/transcriptions/{id}/translations and GET /v1/translations/{translationId} |
translation:update | PATCH …/translations/{lang}/segments |
romanization:read | GET /v1/transcriptions/{id}/romanizations |
romanization:update | PATCH …/romanizations/{variantKey}/segments |
live-transcription:create | GET /v1/live-transcription/sessions |
narration:list | GET /v1/narrations |
narration:read | GET /v1/narrations/{narrationId} |
storage_connection:list | GET /v1/storage-connections |
storage_connection:read | Read a connection, browse buckets, discover buckets, job usage |
storage_connection:create | POST /v1/storage-connections |
storage_connection:update | PATCH /v1/storage-connections/{connectionId}, test, probe, activate |
storage_connection:delete | DELETE /v1/storage-connections/{connectionId} |
glossary:list | GET /v1/glossary |
glossary:read | Included in list responses |
glossary:create | POST /v1/glossary |
glossary:update | PATCH /v1/glossary/{entryId} |
glossary:delete | DELETE /v1/glossary/{entryId} |
ai:search | POST /v1/catalog/search, GET /v1/catalog/indexed-transcriptions, and DELETE /v1/catalog/indexed-transcriptions/{transcriptionId} |
webhook:read | GET /v1/project-webhooks/settings and GET /v1/project-webhooks/deliveries |
webhook:update | PATCH /v1/project-webhooks/settings, POST /v1/project-webhooks/rotate-secret, and POST /v1/project-webhooks/test |
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 Project API key object
- apiKeyIdstring
- Stable key identifier (key_…).
- workspaceIdstring
- Owning workspace.
- scopestring
- Always
projectfor keys under a project. - projectIdstring
- Project this key is bound to.
- namestring
- Key label (defaults to the service account name).
- serviceAccountUserIdstring
- User id of the service account this key authenticates as.
- serviceAccountUsernamestring | null, optional
- Username of the service account (shown as @username on jobs).
- serviceAccountDisplayNamestring | null, optional
- Display name of the service account.
- statusstring
activeorrevoked. Revoked keys cannot authenticate or be reactivated.- secretMaskedstring
- Masked secret prefix/suffix for display. Full secret only on create.
- secretstring, optional
- Full sk_prj_… secret. Returned only in the create response.
- expiresAttimestamp | null, optional
- When the key stops authenticating.
nullmeans it never expires. Expired keys stayactivebut requests return401. Set only on create — PATCH cannot change it. - permissionsstring[]
- Granted permissions (e.g.
service:transcribe,transcript:read,storage_connection:create,webhook:update). Cannot be changed after revoke. - lastUsedAttimestamp | null, optional
- Last successful authentication time.
- createdBystring
- User id of the human or provisioning actor who minted the key.
- updatedBystring
- Last updater.
- createdByUsernamestring | null, optional
- Username when created by a user session.
- updatedByUsernamestring | null, optional
- Username when last updated by a user session.
- createdAttimestamp
- Creation time.
- updatedAttimestamp
- Last update time.
Create a project API key
/v1/project-api-keysdata.secret — store it immediately. API writes using this key are attributed to the service account.Requires permission
project_api_key:create
Parameters
- projectIdstring
- Target project (prj_…).
- serviceAccountNamestring
- Display name for the service-account user created with this key (1–120 characters). API writes are attributed to this identity.
- namestring, optional
- Optional key label. Defaults to serviceAccountName. If serviceAccountName is omitted, name is used for both (legacy).
- permissionsstring[], optional
- Subset of project permissions (e.g.
service:transcribe,transcript:read,storage_connection:create,webhook:update). Omit to grant all project permissions. - expiresAtstring | null, optional
- Optional ISO-8601 datetime. Omit or
nullfor no expiration. Must be in the future. After this instant the key returns401invalid api key. Cannot be changed later.
Returns
secret (only on create).See the the project api key object for attribute details.
List project API keys
/v1/project-api-keysRequires permission
project_api_key:list
Query parameters
- projectIdstring
- Required. Project to list keys for (prj_…).
- pageinteger
- Page number (default 1).
- limitinteger
- Page size (default 20, max 100).
- searchstring, optional
- Filter by key name.
- statusesstring, optional
- Comma-separated: active, revoked.
- sortstring, optional
- name, status, lastUsed, or created (default).
- sortDirstring, optional
- asc or desc. Default desc.
Retrieve a project API key
/v1/project-api-keys/{apiKeyId}status: active and a past expiresAt.Requires permission
project_api_key:read
Parameters
- apiKeyIdstring
- Key to retrieve.
Update a project API key
/v1/project-api-keys/{apiKeyId}name only. The full secret is never returned again. expiresAt cannot be changed after create — mint a new key instead.Requires permission
project_api_key:update
name, status, or permissions must be sent.Parameters
- apiKeyIdstring
- Key to update.
- namestring, optional
- New label (1–120 characters).
- statusstring, optional
- Only
revokedis accepted. Sendingactivereturns 422. See also the revoke endpoint. - permissionsstring[], optional
- Replace permission list on an active key. Returns 422 on revoked keys.
Returns
See the the project api key object for attribute details.
Rotate a project API key
/v1/project-api-keys/{apiKeyId}/rotatedata.secret.Requires permission
project_api_key:update
Parameters
- apiKeyIdstring
- Key to rotate.
Returns
secret.See the the project api key object for attribute details.
Revoke a project API key
/v1/project-api-keys/{apiKeyId}{ "status": "revoked" }. Revocation is permanent.Requires permission
project_api_key:update
Parameters
- apiKeyIdstring
- Key to revoke.
- statusstring
- Must be
revoked.
Returns
status: "revoked". Requests with that secret fail authentication immediately.See the the project api key object for attribute details.
Delete a project API key
/v1/project-api-keys/{apiKeyId}Requires permission
project_api_key:delete
Parameters
- apiKeyIdstring
- Key to delete.
Returns
{ "apiKeyId", "deleted": true }.See the the project api key object for attribute details.