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. Requiresservice: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 atranscriptionjob. PreferPOST /v1/summarize(canvas-first). Optionaloptions.presetisbrief,standard, ordetailed— 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.
| stage | Description |
|---|---|
download | Download source media |
transcribe | Top-level transcribe stage (wraps sub-stages below) |
extract_audio | Extract mono 16 kHz speech audio |
denoise_audio | Denoise + bandpass |
separate_vocals | Demucs vocal separation |
probe | Probe audio duration before chunking |
split_chunk | Split source into chunks (mp3 when input is audio-only after preprocessing, mp4 for video) |
compress_chunk | Compress chunk for upload |
transcribe_chunk | Transcribe one chunk |
merge | Merge chunk transcripts into one segment list |
transcribe_file | Transcribe whole file (non-chunked path) |
video_analysis | Visual frame analysis — GPT-4o mini vision samples frames and produces chunk summaries used downstream for summarization. Runs natively in every transcription job. |
upload_full_text | Upload full transcript text to the storage connection |
upload_segments | Upload segments JSON to the storage connection |
upload_transcript_srt | Upload SRT captions to the storage connection |
upload_transcript_vtt | Upload WebVTT captions to the storage connection |
Progress event stages — indexer
| stage | Description |
|---|---|
fetch_transcription | Fetch transcript segments from the API |
chunk | Split segments into overlapping text windows for embedding |
embed_sparse | BM25 sparse embedding (local, no API key) |
embed_dense | Dense embedding via OpenAI text-embedding-3-large |
index | Upsert new hybrid vectors (job-scoped point ids when re-indexing) |
cutover | After a successful upsert, remove prior index points for that transcription |
rollback | On failure, remove partial new vectors so the previous index stays searchable |
Progress event stages — clips
| stage | Description |
|---|---|
fetch_transcription | Load stored transcript segments from input.textSourceId (required) |
download | Fetch source video from storage connection |
ingest | Probe metadata, build proxy, extract audio |
detect_scenes | Scene boundary detection (PySceneDetect) |
analyze_scenes | GPT-4o vision per scene when enabled in platform settings; skipped otherwise |
build_timeline | Merge transcript, scenes, and vision into a timeline |
detect_category | Classify 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_candidates | Score and rank clip candidates |
render_clips | FFmpeg layout-aware reframe per candidate using the resolved job layout (vertical, widescreen, square, or landscape-in-vertical) |
upload_clips | Upload 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.
| stage | Description |
|---|---|
download | Fetch source video from storage connection |
fetch_transcription | Load transcript segments from input.transcriptionId (required) |
thumbnail_ingest | Probe metadata and validate video readability |
thumbnail_encode | Downscale proxy video for faster frame extraction |
thumbnail_analyze | Chunk video, sample frames, score moments with gpt-6.1-terra vision |
thumbnail_merge | Consolidate scored frames and apply confidence threshold |
thumbnail_audio | Build narrative context from transcript for image prompts |
thumbnail_generate | Render JPEG variants via gpt-image-2.5 (imageQuality from platform config) |
upload_thumbnail_1/2/3 | Upload generated JPEGs to customer S3 (one stage per variant) |
Progress event stages — metadata
| stage | Description |
|---|---|
load_transcription | Fetch transcript and attach visual analysis chunks from the linked transcription job |
generate_metadata | LLM generates title, description, categories, and chapters (model from platform config) |
save_metadata | Persist Metadata record and embed on the transcription |
Progress event stages — summarization
| stage | Description |
|---|---|
synthesis | Call 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).
| Field | When set | Shape | Use for |
|---|---|---|---|
error | status: failed (terminal) | { code, message } | Primary integration signal — read error.code when polling ends in failed |
lastError | After any failed worker attempt (retry or terminal) | { at, message } — no code | Latest attempt message while a job is queued for retry; also present on terminal failed |
progress[].error | A 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 failure | Array of attempt, failedAt, error, progress | Console-only via GET /v1/jobs/{jobId}/progress; use attemptCount and lastError when polling with API keys |
Retry lifecycle (retryable failures such as transient network errors):
- Worker attempt fails →
lastErroris set withat+message. - If retries remain:
statusreturns toqueued,attemptCountincrements, the failed attempt'sprogress[]is archived intoattemptHistory[], andprogress[]resets for the next run. Top-levelerrorstaysnulluntil the job is terminal. - Poll may show
status: queuedwith a non-nulllastError— the job is waiting to retry, not permanently failed. - After max retries or a non-retryable code (e.g.
duration_exceeded,unsupported_source_language):status: failed, botherrorandlastErrorare populated. - On
status: completed, botherrorandlastErrorarenull.
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
POST /v1/canvaseswithvideoSources, thenPOST /v1/canvases/:canvasId/versions, thenPOST /v1/transcribewithcanvasId,canvasVersionId, and requiredcanvasVideoId(media comes from the canvas pool)GET /v1/jobs/{jobId}— poll untilstatus: completedGET /v1/canvases/{canvasId}orGET /v1/transcriptions/{transcriptionId}— fetch the transcript (useresultSummary.textSourceIdfrom the completed job)- Optional: Transcripts edit/glossary endpoints if you build a review UI
Clips flow
- Complete a transcription on the canvas — note
canvasId POST /v1/clipswithcanvasId,canvasVersionId, requiredcanvasVideoId, and optionaloptions.maxClips,layout,fillStyle,categoryOverrideGET /v1/jobs/{jobId}— poll untilstatus: completedGET /v1/clip-generations/{clipGenerationId}— fetch per-clip metadata and segment spans (useresultSummary.clipGenerationIdfrom the completed job)
Thumbnail flow
- Complete a transcription on the canvas first.
POST /v1/thumbnailswithcanvasId,canvasVersionId, and requiredcanvasVideoId; setoptions.thumbnailCount(1–3, maximum 3 per job).GET /v1/jobs/{jobId}— poll untilstatus: completedGET /v1/transcriptions/{transcriptionId}(includesthumbnails) orGET /v1/thumbnails/{transcriptionId}— fetch per-image metadata
Metadata flow
- Complete a transcription on the canvas — note
canvasId POST /v1/metadatawithcanvasIdGET /v1/jobs/{jobId}— poll untilstatus: completedGET /v1/transcriptions/{transcriptionId}/metadata— fetch generated fields
Semantic search flow
- Complete a transcription on the canvas — note
canvasId POST /v1/indexwithcanvasId— poll untilstatus: completedPOST /v1/catalog/search— query across all indexed transcriptions in the project (requiresai:searchpermission)
Summarization flow
- Complete a transcription on the canvas. The transcription pipeline automatically generates video analysis chunks.
POST /v1/summarizewithcanvasIdand optionaloptions.preset(brief,standard, ordetailed)GET /v1/jobs/{jobId}— poll the summarization job untilstatus: completedGET /v1/summarizations/{summarizationId}— fetch the Summarization record usingresultSummary.summarizationIdfrom 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, ordubbing. - statusstring
pending(not yet on the queue),queued,processing,cancelling(graceful stop in progress),completed,failed, orcancelled.- prioritystring
- Queue lane:
low,normal, orhigh. 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 withGET /v1/jobs?pipelineId=…. - workspacePlanstring, optional
- Workspace plan snapshotted at job creation (
free,pro, etc.). Drives queuepriority. - inputobject
- Validated transcription input via a project storage connection —
connectionId,bucket,sourceKey, optionaloutputPrefix. The create response includesinput.textSourceIdand resolved output paths (resolvedOutputPrefix,resolvedOutputKeys). Accepts optionaloptions.languagefrom the platform transcription source-language allowlist (see job policy). Stored jobs also include platform-managedoptions.preprocessing. Resolved S3 output paths are returned on the jobinputat create. - resultSummaryobject | null, optional
- Shape depends on
serviceType:- Transcription —
nullat create and while the job is in flight. When complete:textSourceId,textPreview,segmentCount, anddurationSec.input.textSourceIdis already set at create (same id asresultSummary.textSourceIdafter success). SavejobIdfrom the create response and pollGET /v1/jobs/{jobId}(or use webhooks) to obtainresultSummary.textSourceIdonce 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, optionalchunkType. - Summarization — when complete:
summarizationIdandshortSynopsisPreview(first 100 characters of the short synopsis). Jobinput.options.presetechoesbrief,standard, ordetailedwhen the create call used a preset. Fetch the full Summarization record viaGET /v1/summarizations/{summarizationId}.
nullwhile pending, queued, processing, or cancelling. - Transcription —
- 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, orplatform_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
nulland 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) andmessage— nocodefield. Set while a job is retrying (status: queued) or on terminalfailed;nullon success and on jobs that never failed. See Job failures & retries. - errorobject | null
- Terminal failure reason when
statusisfailed:code(e.g.duration_exceeded,transcript_too_large,processing_failed) andmessage. Otherwisenull— including while retrying (queuedwith a non-nulllastError). Not the HTTP envelopeerrorfield. 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
/v1/jobs/{jobId}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
statusis terminal (completed,failed, orcancelled). Keep polling whilecancelling. - Lightweight polling — use
statusandcurrentStageuntil terminal. For a full stage timeline, callGET /v1/jobs/{jobId}/progress(console session only). - Job detail page — show attribution (
createdByLabel,apiKeyLabel), retry history, and terminalerror. - Does not return segment text — use
GET /v1/transcriptions/{transcriptionId}onceresultSummary.textSourceIdis set,GET /v1/clip-generations/{clipGenerationId}onceresultSummary.clipGenerationIdis set,GET /v1/thumbnails/{transcriptionId}onceresultSummary.thumbnailCountis set, orGET /v1/transcriptions/{transcriptionId}/metadataonceresultSummary.metadataIdis set.
Requires permission
job:read
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
See the the job object for attribute details.
Retrieve job progress
/v1/jobs/{jobId}/progressprogress[] 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
List all jobs
/v1/jobsWhen to use
- Jobs table / history in a custom dashboard — filter by
statuses, sort bycreated. - Operations monitoring — find stuck
processingjobs or recentfailedruns. - Search by creator (
user), source URL (input), job id substring, or your reference (customerJobRef). - Prefer retrieve when you already have a
jobIdfrom 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
/v1/jobs/{jobId}/cancelpending 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
completedorfailedjobs (409conflict). - Graceful stop — a
processingjob becomescancellinguntil the worker finishes the current stage, thencancelled.
Requires permission
job: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
Get job create policy
/v1/jobs/policyserviceType — 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, orromanize. Unsupported or missing values return 422validationError.
Returns
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
/v1/jobs/stats403.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, or90d.
Returns
total, pending, queued, processing, cancelling, completed, failed, cancelled.See the the job object for attribute details.