Project API keys

Mint and manage 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.

PermissionAllows
job:listGET /v1/jobs
job:readGET /v1/jobs/{jobId} and GET /v1/jobs/{jobId}/webhook-deliveries
job:cancelPOST /v1/jobs/{jobId}/cancel
service:transcribePOST /v1/transcribe
service:narratePOST /v1/narrate
service:clipsPOST /v1/clips
service:thumbnailsPOST /v1/thumbnails
service:metadataPOST /v1/metadata
service:summarizePOST /v1/summarize
service:translatePOST /v1/translate
service:romanizePOST /v1/romanize
service:dubPOST /v1/dub
service:moderatePOST /v1/moderate
service:scene-analysisPOST /v1/scene-analysis
service:indexPOST /v1/index
service:pipelinesPOST /v1/pipelines, POST /v1/pipelines/preview, and POST /v1/pipelines/{pipelineId}/retry
job:createLegacy 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:listGET /v1/canvases and GET /v1/canvases/{canvasId}/versions
canvas:createPOST /v1/canvases and POST /v1/canvases/{canvasId}/versions
canvas:readGET /v1/canvases/{canvasId}, version retrieve, and active-versions
canvas:updatePATCH /v1/canvases/{canvasId} and version update
canvas:deleteDELETE /v1/canvases/{canvasId}
transcript:listGET /v1/transcriptions
transcript:readGET /v1/transcriptions/{transcriptionId}, export routes, and GET …/storage sync status. Existing keys with this permission still satisfy artifact :read until they are rotated.
transcript:editPATCH /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:deleteDELETE /v1/transcriptions/{transcriptionId}
metadata:readGET /v1/transcriptions/{id}/metadata
metadata:updatePATCH /v1/transcriptions/{id}/metadata
summarization:readGET /v1/summarizations/{summarizationId}
summarization:updatePATCH /v1/summarizations/{id} and DELETE /v1/summarizations/{id}
translation:readGET /v1/transcriptions/{id}/translations and GET /v1/translations/{translationId}
translation:updatePATCH …/translations/{lang}/segments
romanization:readGET /v1/transcriptions/{id}/romanizations
romanization:updatePATCH …/romanizations/{variantKey}/segments
live-transcription:createGET /v1/live-transcription/sessions
narration:listGET /v1/narrations
narration:readGET /v1/narrations/{narrationId}
storage_connection:listGET /v1/storage-connections
storage_connection:readRead a connection, browse buckets, discover buckets, job usage
storage_connection:createPOST /v1/storage-connections
storage_connection:updatePATCH /v1/storage-connections/{connectionId}, test, probe, activate
storage_connection:deleteDELETE /v1/storage-connections/{connectionId}
glossary:listGET /v1/glossary
glossary:readIncluded in list responses
glossary:createPOST /v1/glossary
glossary:updatePATCH /v1/glossary/{entryId}
glossary:deleteDELETE /v1/glossary/{entryId}
ai:searchPOST /v1/catalog/search, GET /v1/catalog/indexed-transcriptions, and DELETE /v1/catalog/indexed-transcriptions/{transcriptionId}
webhook:readGET /v1/project-webhooks/settings and GET /v1/project-webhooks/deliveries
webhook:updatePATCH /v1/project-webhooks/settings, POST /v1/project-webhooks/rotate-secret, and POST /v1/project-webhooks/test
voices:listGET /v1/voices
voices:createPOST /v1/voices
voices:readGET /v1/voices/{voiceId}
voices:updatePATCH /v1/voices/{voiceId}
voices:deleteDELETE /v1/voices/{voiceId}

The Project API key object

apiKeyIdstring
Stable key identifier (key_…).
workspaceIdstring
Owning workspace.
scopestring
Always project for 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
active or revoked. 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. null means it never expires. Expired keys stay active but requests return 401. 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

POST/v1/project-api-keys
Creates a project-scoped API key and a service-account user. The full secret is returned once in data.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 null for no expiration. Must be in the future. After this instant the key returns 401 invalid api key. Cannot be changed later.

Returns

Returns the API key metadata plus secret (only on create).

See the the project api key object for attribute details.

List project API keys

GET/v1/project-api-keys
Paginated list of API keys for a project (secrets are never returned).

Requires 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

GET/v1/project-api-keys/{apiKeyId}
Returns one project API key. The full secret is never included. Expired keys are still returned with status: active and a past expiresAt.

Requires permission

project_api_key:read

Parameters

apiKeyIdstring
Key to retrieve.

Update a project API key

PATCH/v1/project-api-keys/{apiKeyId}
Updates metadata for a project API key. Typical use: rename with 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

At least one of name, status, or permissions must be sent.

Parameters

apiKeyIdstring
Key to update.
namestring, optional
New label (1–120 characters).
statusstring, optional
Only revoked is accepted. Sending active returns 422. See also the revoke endpoint.
permissionsstring[], optional
Replace permission list on an active key. Returns 422 on revoked keys.

Returns

Returns the updated Project API key object (no secret).

See the the project api key object for attribute details.

Rotate a project API key

POST/v1/project-api-keys/{apiKeyId}/rotate
Replaces the secret for the same key and service account. The previous secret stops working immediately. The new secret is returned once in data.secret.

Requires permission

project_api_key:update

Parameters

apiKeyIdstring
Key to rotate.

Returns

Returns the API key metadata plus a new secret.

See the the project api key object for attribute details.

Revoke a project API key

PATCH/v1/project-api-keys/{apiKeyId}
Revokes a key so it can no longer authenticate. Same route as update — send { "status": "revoked" }. Revocation is permanent.

Requires permission

project_api_key:update

Parameters

apiKeyIdstring
Key to revoke.
statusstring
Must be revoked.

Returns

Returns the API key with status: "revoked". Requests with that secret fail authentication immediately.

See the the project api key object for attribute details.

Delete a project API key

DELETE/v1/project-api-keys/{apiKeyId}
Permanently removes the key record. Prefer revoke when you need an audit trail.

Requires permission

project_api_key:delete

Parameters

apiKeyIdstring
Key to delete.

Returns

Returns { "apiKeyId", "deleted": true }.

See the the project api key object for attribute details.