Content moderation
Moderation results are stored in the moderationresults collection — one document per producing job. The inline transcription gate (source: gate) runs on every transcription when enabled; a standalone content_moderation job (source: standalone) is started via POST /v1/jobs or POST /v1/moderate.
When the gate flags content above the configured threshold, the transcription job continues and progress events include a warned flag. The stored blocked field means "would have blocked under the old hard gate" — it is informational, not a job failure.
For jobs that use a project storage connection, visual evidence frames are uploaded to your bucket as JPEGs. Pass includeEvidenceUrls=true on read routes to receive short-lived presigned frameUrl values on visual evidence rows (not persisted).
Create: start content moderation with POST /v1/moderate after creating a canvas and a named version (Create a canvas version). Send canvasId, canvasVersionId (omit = latest cut), and required canvasVideoId from the pool. That POST writes the result onto the canvas. Pass overwrite: true to replace the current result instead of adding another. Poll GET /v1/jobs/:jobId, then use the endpoints below for the stored result. Requires an active transcript on the canvas version.
The Moderation result object
- moderationIdstring
- Unique moderation record id (mod_…).
- jobIdstring
- Producing job (transcription gate or standalone scan).
- transcriptionIdstring
- Linked transcription when available (txt_…).
- sourcestring
- gate (inline transcription gate) or standalone (on-demand scan).
- severitystring
- safe | low | medium | high — derived from overall confidence.
- blockedboolean
- True when confidence met the gate flag threshold. Informational only — jobs are not failed.
- flaggedCategoriesarray
- Policy categories above the review threshold (strings).
- categoriesarray
- Per-category scores and timestamped
evidence. Visual evidence may includebucket,key, and (when requested)frameUrl. Transcript evidence may includesegmentIdandtextPreview. - visualobject, optional
- Snapshot of the visual-only scan (when persisted).
- transcriptobject, optional
- Snapshot of the transcript text scan (when persisted).
Retrieve moderation for a transcription
/v1/transcriptions/{transcriptionId}/moderationtranscriptionId.Requires permission
transcript:read
includeEvidenceUrls=true):{
"timestampSec": 88.0,
"score": 0.72,
"source": "visual",
"bucket": "my-bucket",
"key": "perchat-media-results/txt_…/moderation/job_…/evidence/violence/t88.000_score0.7200.jpg",
"frameUrl": "https://my-bucket.s3.amazonaws.com/…?X-Amz-Signature=…"
}Parameters
- transcriptionIdstring
- Transcription identifier (txt_…).
- includeEvidenceUrlsboolean, optional
- When true, presigns GET URLs for visual evidence frames stored in S3 (response-only frameUrl).
Returns
See the the moderation result object for attribute details.
Retrieve moderation by id
/v1/moderations/{moderationId}content_moderation job's full report by moderationId (from resultSummary.moderationId after the job completes).Requires permission
project
Parameters
- moderationIdstring
- Moderation record id (mod_…).
- includeEvidenceUrlsboolean, optional
- When true, presigns GET URLs for visual evidence frames stored in S3 (response-only frameUrl).
Returns
See the the moderation result object for attribute details.