Jobs

Track async media work with a Job object. Create work via Services (POST /v1/transcribe, /v1/clips, etc.). Status APIs (GET /v1/jobs, cancel) are the source of truth for polling, or configure webhooks for HTTPS callbacks. Jobs are async — create returns with status: queued (or pending briefly). Poll until a terminal status (completed, failed, or cancelled), then fetch the result. Use POST /v1/jobs/{jobId}/cancel to stop in-flight work.

Available service types:

  • transcription — transcribe a media file from S3 into timestamped segments. Result is a Transcript record accessible via the Transcripts API.
  • clip_generation — analyze a long-form video and render short clips in a configurable layout (vertical, widescreen, square, or landscape-in-vertical) from an existing transcript. MP4s upload to your S3; Perchat stores clip metadata via the Clips API.
  • thumbnail — generate 1–3 AI cover-image JPEGs from a completed transcription (maximum 3 per job). Images upload to your S3; metadata is stored on the transcript via the Thumbnails API.
  • indexer — chunk, embed, and index a completed transcription into the Qdrant vector store so it can be searched via Semantic search. Requires service:index; the transcription must exist before submitting.
  • metadata — generate title, description, IAB categories, and chapter markers from a completed transcript and its visual analysis chunks (same notes summarization uses). Results are stored on the transcript via the Metadata API.
  • summarization — synthesize a complete Summarization record (short/long synopsis, 3 SEO descriptions, 3 social hooks, 5 keywords, classification) using the transcript and visual chunks natively generated by a transcription job. Prefer POST /v1/summarize (canvas-first). Optional options.preset is brief, standard, or detailed — or send custom min/max word counts, not both.

Progress event stages — transcription

Stage timelines are returned by GET /v1/jobs/{jobId}/progress (console session only), not on the Job object from retrieve or list. Each progress[] entry has stage, event (started | completed | failed | skipped), at, and optional details. Audio preprocessing stages (extract_audio, denoise_audio, separate_vocals) run automatically — not client-configurable.

stageDescription
downloadDownload source media
transcribeTop-level transcribe stage (wraps sub-stages below)
extract_audioExtract mono 16 kHz speech audio
denoise_audioDenoise + bandpass
separate_vocalsDemucs vocal separation
probeProbe audio duration before chunking
split_chunkSplit source into chunks (mp3 when input is audio-only after preprocessing, mp4 for video)
compress_chunkCompress chunk for upload
transcribe_chunkTranscribe one chunk
mergeMerge chunk transcripts into one segment list
transcribe_fileTranscribe whole file (non-chunked path)
video_analysisVisual frame analysis — GPT-4o mini vision samples frames and produces chunk summaries used downstream for summarization. Runs natively in every transcription job.
upload_full_textUpload full transcript text to the storage connection
upload_segmentsUpload segments JSON to the storage connection
upload_transcript_srtUpload SRT captions to the storage connection
upload_transcript_vttUpload WebVTT captions to the storage connection

Progress event stages — indexer

stageDescription
fetch_transcriptionFetch transcript segments from the API
chunkSplit segments into overlapping text windows for embedding
embed_sparseBM25 sparse embedding (local, no API key)
embed_denseDense embedding via OpenAI text-embedding-3-large
indexUpsert new hybrid vectors (job-scoped point ids when re-indexing)
cutoverAfter a successful upsert, remove prior index points for that transcription
rollbackOn failure, remove partial new vectors so the previous index stays searchable

Progress event stages — clips

stageDescription
fetch_transcriptionLoad stored transcript segments from input.textSourceId (required)
downloadFetch source video from storage connection
ingestProbe metadata, build proxy, extract audio
detect_scenesScene boundary detection (PySceneDetect)
analyze_scenesGPT-4o vision per scene when enabled in platform settings; skipped otherwise
build_timelineMerge transcript, scenes, and vision into a timeline
detect_categoryClassify content genre from transcript and vision (GPT-4o-mini); skipped when categoryOverride is set, category detection is disabled in platform settings (analysis.category), or OpenAI is unavailable
detect_candidatesScore and rank clip candidates
render_clipsFFmpeg layout-aware reframe per candidate using the resolved job layout (vertical, widescreen, square, or landscape-in-vertical)
upload_clipsUpload rendered MP4s to customer S3

Progress event stages — thumbnail

Each thumbnail job generates at most 3 JPEG variants. Set input.options.thumbnailCount to 1, 2, or 3 — values above 3 are rejected at validation. Outputs are written to your bucket via the job's storage connection.

Workers emit each row below in progress[]. A thumbnail_pipeline envelope event may also appear (started/completed); dashboards timeline the flat sub-stages, not the envelope.

stageDescription
downloadFetch source video from storage connection
fetch_transcriptionLoad transcript segments from input.transcriptionId (required)
thumbnail_ingestProbe metadata and validate video readability
thumbnail_encodeDownscale proxy video for faster frame extraction
thumbnail_analyzeChunk video, sample frames, score moments with gpt-6.1-terra vision
thumbnail_mergeConsolidate scored frames and apply confidence threshold
thumbnail_audioBuild narrative context from transcript for image prompts
thumbnail_generateRender JPEG variants via gpt-image-2.5 (imageQuality from platform config)
upload_thumbnail_1/2/3Upload generated JPEGs to customer S3 (one stage per variant)

Progress event stages — metadata

stageDescription
load_transcriptionFetch transcript and attach visual analysis chunks from the linked transcription job
generate_metadataLLM generates title, description, categories, and chapters (model from platform config)
save_metadataPersist Metadata record and embed on the transcription

Progress event stages — summarization

stageDescription
synthesisCall GPT-4o to synthesize chunk summaries and the full transcript into synopses, SEO descriptions, social hooks, keywords, and classification.

Job failures & retries

When a job fails asynchronously, GET /v1/jobs/{jobId} still returns HTTP 200 — read failure fields on the Job object in data, not the top-level envelope error (that shape is for request/auth validation failures). See Errors → Job failures (async).

FieldWhen setShapeUse for
errorstatus: failed (terminal){ code, message }Primary integration signal — read error.code when polling ends in failed
lastErrorAfter any failed worker attempt (retry or terminal){ at, message } — no codeLatest attempt message while a job is queued for retry; also present on terminal failed
progress[].errorA stage event with event: failed{ code, message }Console timeline UI — returned by GET /v1/jobs/{jobId}/progress, not on retrieve/list Job objects
attemptHistory[]When the worker requeues after a retryable failureArray of attempt, failedAt, error, progressConsole-only via GET /v1/jobs/{jobId}/progress; use attemptCount and lastError when polling with API keys
How failure signals flow from a worker attempt into Job fields.

Retry lifecycle (retryable failures such as transient network errors):

  1. Worker attempt fails → lastError is set with at + message.
  2. If retries remain: status returns to queued, attemptCount increments, the failed attempt's progress[] is archived into attemptHistory[], and progress[] resets for the next run. Top-level error stays null until the job is terminal.
  3. Poll may show status: queued with a non-null lastError — the job is waiting to retry, not permanently failed.
  4. After max retries or a non-retryable code (e.g. duration_exceeded, unsupported_source_language): status: failed, both error and lastError are populated.
  5. On status: completed, both error and lastError are null.
Job status transitions including retry, terminal failure, and cancel paths.

While retrying (error still null):

{
  "status": "queued",
  "attemptCount": 1,
  "lastError": {
  "at": "2026-05-18T12:40:12Z",
  "message": "Semantic search indexing could not connect to Qdrant. Configure the cluster in platform admin (Core → Qdrant): set the URL and API key, run Test connection, then save. Retry the job after Qdrant is reachable."
},
  "error": null
}

Terminal failure (error.code is the field to branch on):

{
  "status": "failed",
  "lastError": {
  "at": "2026-05-18T12:34:58Z",
  "message": "Video duration 7200.0s exceeds limit 3600s (checked at local_probe)"
},
  "error": {
  "code": "duration_exceeded",
  "message": "Video duration 7200.0s exceeds limit 3600s (checked at local_probe)"
}
}

Common error.code values and quotas: Plans & limits → Job failure codes. Full failed-job example on Retrieve a job.

A completed transcription job exposes resultSummary.textSourceId, segmentCount, and textPreview. A completed clips job exposes resultSummary.clipGenerationId and resultSummary.clipCount. A completed thumbnail job exposes resultSummary.textSourceId and resultSummary.thumbnailCount and resultSummary.nonAiThumbnailCount. A completed metadata job exposes resultSummary.metadataId and resultSummary.chapterCount. Use the Transcripts API for full text, segments, word timings, and editing — not the Job object itself. Use the Clips API for per-clip metadata after clip jobs complete. Use the Thumbnails API for per-image metadata after thumbnail jobs complete. Use the Metadata API for title, description, categories, and chapters after metadata jobs complete. A completed indexer job exposes resultSummary with textSourceId, collection, and indexedChunks. Use the Catalog API to search indexed chunks after indexer jobs complete.

Create work with Services; use the endpoints below to poll status and cancel.

Transcription flow

  1. POST /v1/canvases with videoSources, then POST /v1/canvases/:canvasId/versions, then POST /v1/transcribe with canvasId, canvasVersionId, and required canvasVideoId (media comes from the canvas pool)
  2. GET /v1/jobs/{jobId} — poll until status: completed
  3. GET /v1/canvases/{canvasId} or GET /v1/transcriptions/{transcriptionId} — fetch the transcript (use resultSummary.textSourceId from the completed job)
  4. Optional: Transcripts edit/glossary endpoints if you build a review UI

Clips flow

  1. Complete a transcription on the canvas — note canvasId
  2. POST /v1/clips with canvasId, canvasVersionId, required canvasVideoId, and optional options.maxClips, layout, fillStyle, categoryOverride
  3. GET /v1/jobs/{jobId} — poll until status: completed
  4. GET /v1/clip-generations/{clipGenerationId} — fetch per-clip metadata and segment spans (use resultSummary.clipGenerationId from the completed job)

Thumbnail flow

  1. Complete a transcription on the canvas first.
  2. POST /v1/thumbnails with canvasId, canvasVersionId, and required canvasVideoId; set options.thumbnailCount (1–3, maximum 3 per job).
  3. GET /v1/jobs/{jobId} — poll until status: completed
  4. GET /v1/transcriptions/{transcriptionId} (includes thumbnails) or GET /v1/thumbnails/{transcriptionId} — fetch per-image metadata

Metadata flow

  1. Complete a transcription on the canvas — note canvasId
  2. POST /v1/metadata with canvasId
  3. GET /v1/jobs/{jobId} — poll until status: completed
  4. GET /v1/transcriptions/{transcriptionId}/metadata — fetch generated fields

Semantic search flow

  1. Complete a transcription on the canvas — note canvasId
  2. POST /v1/index with canvasId — poll until status: completed
  3. POST /v1/catalog/search — query across all indexed transcriptions in the project (requires ai:search permission)

Summarization flow

  1. Complete a transcription on the canvas. The transcription pipeline automatically generates video analysis chunks.
  2. POST /v1/summarize with canvasId and optional options.preset (brief, standard, or detailed)
  3. GET /v1/jobs/{jobId} — poll the summarization job until status: completed
  4. GET /v1/summarizations/{summarizationId} — fetch the Summarization record using resultSummary.summarizationId from the completed job

Requires a project API key (sk_prj_…) with job:list, job:read, and job:cancel to poll and cancel. Create work with the matching service:* permission on Services generate routes. Queue priority is set from your workspace plan — do not pass it on create.

See also: How jobs work for polling vs list, cancel, and reading results. Quotas, max video length (1 hour), and failure codes: Plans & limits.

The Job object

jobIdstring
Unique identifier (job_…).
serviceTypestring
Service to run: transcription, clip_generation, thumbnail, metadata, indexer, summarization, translation, romanize, ai_narration, content_moderation, scene_analysis, or dubbing.
statusstring
pending (not yet on the queue), queued, processing, cancelling (graceful stop in progress), completed, failed, or cancelled.
prioritystring
Queue lane: low, normal, or high. Set from workspace plan at creation — not client-controlled.
workspaceIdstring
Owning workspace.
projectIdstring
Project the job belongs to.
pipelineIdstring | null, optional
Set when this job was created as a step of a pipeline (POST /v1/pipelines). Filter with GET /v1/jobs?pipelineId=….
workspacePlanstring, optional
Workspace plan snapshotted at job creation (free, pro, etc.). Drives queue priority.
inputobject
Validated transcription input via a project storage connection — connectionId, bucket, sourceKey, optional outputPrefix. The create response includes input.textSourceId and resolved output paths (resolvedOutputPrefix, resolvedOutputKeys). Accepts optional options.language from the platform transcription source-language allowlist (see job policy). Stored jobs also include platform-managed options.preprocessing. Resolved S3 output paths are returned on the job input at create.
resultSummaryobject | null, optional
Shape depends on serviceType:
  • Transcription — null at create and while the job is in flight. When complete: textSourceId, textPreview, segmentCount, and durationSec. input.textSourceId is already set at create (same id as resultSummary.textSourceId after success). Save jobId from the create response and poll GET /v1/jobs/{jobId} (or use webhooks) to obtain resultSummary.textSourceId once the transcript record exists.
  • Clips — when complete: clipGenerationId, clipCount, sourceDurationSec, transcriptPreview.
  • Thumbnail — when complete: textSourceId, thumbnailCount (accumulated total), newThumbnailCount (added by this run), nonAiThumbnailCount, generated.
  • Metadata — when complete: textSourceId, metadataId, title, chapterCount, generated.
  • Indexer — when complete: textSourceId, collection, indexedChunks, denseEngine, sparseEngine, optional chunkType.
  • Summarization — when complete: summarizationId and shortSynopsisPreview (first 100 characters of the short synopsis). Job input.options.preset echoes brief, standard, or detailed when the create call used a preset. Fetch the full Summarization record via GET /v1/summarizations/{summarizationId}.
null while pending, queued, processing, or cancelling.
cancelRequestedAttimestamp | null, optional
When cancellation was requested; null until a cancel call.
cancelRequestedByLabelstring | null, optional
Who requested cancel (@user, API key name, or Console).
cancelRequestedByKindstring | null, optional
user, api_key, console, or platform_admin (cancelled from the internal admin console) when cancel was requested.
cancelRequestedByUserIdstring | null, optional
User id when cancel was requested from the dashboard.
cancelRequestedByApiKeyIdstring | null, optional
API key id when cancel was requested with a project key.
cancelModestring | null, optional
Currently graceful — processing jobs stop after the current pipeline stage.
sourceDisplayNamestring, optional
Human-readable source label derived from input (e.g. filename without extension). Used in job list search and dashboards.
webhookUrlstring | null, optional
Per-job HTTPS webhook override from create, when set. Otherwise null and the project default from Webhooks applies.
currentStagestring | null, optional
Worker stage in flight (e.g. transcribe); null when idle or finished.
attemptCountinteger, optional
Failed attempts before this run; 0 on first try. Incremented on retry.
lastErrorobject | null, optional
Snapshot of the most recent failed worker attempt: at (timestamp) and message — no code field. Set while a job is retrying (status: queued) or on terminal failed; null on success and on jobs that never failed. See Job failures & retries.
errorobject | null
Terminal failure reason when status is failed: code (e.g. duration_exceeded, transcript_too_large, processing_failed) and message. Otherwise null — including while retrying (queued with a non-null lastError). Not the HTTP envelope error field. See Job failures & retries.
createdByLabelstring, optional
Human-readable creator (@user, API key name, or Console). On retrieve/list.
createdByKindstring, optional
One of user, api_key, console.
apiKeyLabelstring | null, optional
Name of the API key that created the job, when applicable.
apiKeyIdstring, optional
API key or console pseudo-key that owns the job.
isConsoleKeyboolean, optional
True when submitted from the dashboard browser session.
createdAttimestamp
Creation time.
updatedAttimestamp
Last update time.
startedAttimestamp | null, optional
When processing began.
completedAttimestamp | null, optional
When the job finished (success, failure, or cancel).
userMetadataobject, optional
Caller-defined metadata from job creation. Transcription jobs typically include customerJobRef (your reference string).

Retrieve a job

GET/v1/jobs/{jobId}
Returns one job with live status, currentStage, retry counters, errors, and — when complete — a service-specific resultSummary (transcription, clips, thumbnail, or metadata). Stage timelines are not included — use GET /v1/jobs/{jobId}/progress from a console session for progress[] and attemptHistory[].

When to use

  • Polling loop after create — call every few seconds until status is terminal (completed, failed, or cancelled). Keep polling while cancelling.
  • Lightweight polling — use status and currentStage until terminal. For a full stage timeline, call GET /v1/jobs/{jobId}/progress (console session only).
  • Job detail page — show attribution (createdByLabel, apiKeyLabel), retry history, and terminal error.
  • Does not return segment text — use GET /v1/transcriptions/{transcriptionId} once resultSummary.textSourceId is set, GET /v1/clip-generations/{clipGenerationId} once resultSummary.clipGenerationId is set, GET /v1/thumbnails/{transcriptionId} once resultSummary.thumbnailCount is set, or GET /v1/transcriptions/{transcriptionId}/metadata once resultSummary.metadataId is set.

Requires permission

job:read

Terminal failure example (duration_exceeded on download):
{
  "jobId": "job_01HX2K9V3JEK4WYZN6F0XQ2W8M",
  "serviceType": "transcription",
  "status": "failed",
  "priority": "low",
  "workspaceId": "wsp_01HX2K9V3JEK4WYZN6F0XQ2W8M",
  "projectId": "prj_01HX2K9V3JEK4WYZN6F0XQ2W8M",
  "input": {
    "connectionId": "e7b2c4d8-0000-4000-a000-000000000001",
    "bucket": "my-bucket",
    "sourceKey": "media/clips/demo.mp4",
    "options": {
        "language": "en"
      }
  },
  "resultSummary": null,
  "currentStage": null,
  "attemptCount": 1,
  "lastError": {
  "at": "2026-05-18T12:34:58Z",
  "message": "Video duration 7200.0s exceeds limit 3600s (checked at local_probe)"
},
  "error": {
  "code": "duration_exceeded",
  "message": "Video duration 7200.0s exceeds limit 3600s (checked at local_probe)"
},
  "createdAt": "2026-05-18T12:34:56Z",
  "updatedAt": "2026-05-18T12:34:58Z",
  "startedAt": "2026-05-18T12:34:57Z",
  "completedAt": "2026-05-18T12:34:58Z",
  "userMetadata": null
}

Parameters

jobIdstring
Job identifier.

Returns

Returns a Job object.

See the the job object for attribute details.

Retrieve job progress

GET/v1/jobs/{jobId}/progress
Returns the append-only progress[] timeline, currentStage, and attemptHistory[] for one job. Console session only — project API keys receive 403. Use this from the Perchat console or other browser-authenticated tooling; API integrations should poll GET /v1/jobs/{jobId} for status and currentStage instead.

When to use

  • Job detail timeline in the console — render per-stage events and prior failed attempts.
  • Not for API-key polling — unavailable to project keys by design.

Requires permission

job:read

Parameters

jobIdstring
Job identifier.

Returns

Returns progress, currentStage, and attemptHistory.

See the the job object for attribute details.

List all jobs

GET/v1/jobs
Paginated jobs for the project bound to your API key. Returns full Job objects (same shape as retrieve).

When to use

  • Jobs table / history in a custom dashboard — filter by statuses, sort by created.
  • Operations monitoring — find stuck processing jobs or recent failed runs.
  • Search by creator (user), source URL (input), job id substring, or your reference (customerJobRef).
  • Prefer retrieve when you already have a jobId from create — list is for browse/search, not polling a single in-flight job.

Requires permission

job:list

Query parameters

pageinteger, optional
1-indexed page. Default 1.
limitinteger, optional
Page size. Default 20, max 100.
jobIdstring, optional
Filter by job ID substring.
customerJobRefstring, optional
Filter by exact userMetadata.customerJobRef value from job creation.
pipelineIdstring, optional
Filter by exact pipelineId (jobs created via POST /v1/pipelines).
canvasVersionIdstring, optional
Filter by canvas version the job is stamped with.
canvasVideoIdstring, optional
Filter by pool video (cva_…) the job is stamped with.
userstring, optional
Filter by creator (@username, API key name, or key id substring).
inputstring, optional
Filter by source URL or input metadata substring.
statusesstring, optional
Comma-separated statuses (e.g. pending,queued,processing,cancelling,cancelled).
serviceTypesstring, optional
Comma-separated service types (e.g. transcription,clip_generation,indexer).
sortstring, optional
jobId, service, status, user, completed, or created (default).
sortDirstring, optional
asc or desc. Default asc.

Returns

data array of Job objects; pagination in metadata.pagination.

See the the job object for attribute details.

Cancel a job

POST/v1/jobs/{jobId}/cancel
Cancels a job that has not finished. pending and queued jobs become cancelled immediately. A processing job enters cancelling first; the worker stops after the current pipeline stage, then the job becomes cancelled. Attribution fields record who requested cancellation. Idempotent for cancelling and cancelled.

When to use

  • User abandons work while pending, queued, or mid-run.
  • Cannot cancel completed or failed jobs (409 conflict).
  • Graceful stop — a processing job becomes cancelling until the worker finishes the current stage, then cancelled.

Requires permission

job:cancel

Immediate cancel (pending / queued) returns status: cancelled with completedAt set.

Graceful cancel while processing returns status: cancelling first — poll retrieve until cancelled:
{
  "jobId": "job_01HX2K9V3JEK4WYZN6F0XQ2W8M",
  "serviceType": "transcription",
  "status": "cancelling",
  "priority": "low",
  "workspaceId": "wsp_01HX2K9V3JEK4WYZN6F0XQ2W8M",
  "projectId": "prj_01HX2K9V3JEK4WYZN6F0XQ2W8M",
  "input": {
    "connectionId": "e7b2c4d8-0000-4000-a000-000000000001",
    "bucket": "my-bucket",
    "sourceKey": "media/clips/demo.mp4",
    "options": {
        "language": "en"
      }
  },
  "resultSummary": null,
  "currentStage": "separate_vocals",
  "attemptCount": 0,
  "lastError": null,
  "error": null,
  "cancelRequestedAt": "2026-05-18T12:35:05Z",
  "cancelRequestedByUserId": "usr_01HX2K9V3JEK4WYZN6F0XQ2W8M",
  "cancelRequestedByApiKeyId": null,
  "cancelRequestedByLabel": "@vishnu · Console",
  "cancelRequestedByKind": "console",
  "cancelMode": "graceful",
  "createdAt": "2026-05-18T12:34:56Z",
  "updatedAt": "2026-05-18T12:35:05Z",
  "startedAt": "2026-05-18T12:34:57Z",
  "completedAt": null,
  "userMetadata": null
}

Parameters

jobIdstring
Job identifier.

Returns

Returns the Job with status cancelled or cancelling.

See the the job object for attribute details.

Get job create policy

GET/v1/jobs/policy
Returns the platform's per-plan limits and options for one serviceType — the same numbers create-time validation enforces (plan tiers, supported layouts/languages/engines, defaults). No authentication required.

When to use

  • Render available options (layouts, languages, engines) in a job create form before submitting.
  • Validate a value client-side against the current plan's limits ahead of the actual create call.

Query parameters

serviceTypestring
One of clip_generation, transcription, thumbnail, translation, or romanize. Unsupported or missing values return 422 validationError.

Returns

Shape depends on serviceType — always includes serviceType plus a plans object (free / enterprise) for clip_generation, transcription, and thumbnail; targetLanguages and a language catalog for translation; sourceLanguages, enabledEngines, engines, and recommendations for romanize.

See the the job object for attribute details.

Job stats

GET/v1/jobs/stats
Counts of jobs by status for the project, over a time range. Console session only — project and workspace API keys receive 403.

When to use

  • Dashboard summary tiles (queued / processing / failed today).
  • Not for API integrations — use GET /v1/jobs?statuses=… with pagination instead.

Requires permission

job:list

Query parameters

rangestring, optional
24h (default), 7d, 30d, or 90d.

Returns

Returns counts: total, pending, queued, processing, cancelling, completed, failed, cancelled.

See the the job object for attribute details.