---
title: "Create a 'moderate' job"
method: POST
path: "/robots/v0/jobs/moderate"
tags: ["Moderate (v0)"]
deprecated: true
---

# Create a 'moderate' job

`POST /robots/v0/jobs/moderate`

## Request

- Base URL: `https://api.mux.com`
- URL: `https://api.mux.com/robots/v0/jobs/moderate`
- Auth: one of:
  - HTTP basic
  - HTTP bearer

> **Deprecated.**

Deprecated: use `POST /robots/v1/jobs/moderate` instead. Creates a new job that uses AI to analyze a Mux Video asset for inappropriate content. Optional output steering can restrict execution to a time scope in seconds.

## Request body

- CreateModerateJobRequestV0
  - `passthrough` string: Arbitrary string stored with the job and returned in responses. Useful for correlating jobs with your own systems.
  - `parameters` ModerateJobParametersV0, required
    - `asset_id` string, required: The Mux asset ID of the video to moderate.
    - `language_code` string: BCP 47 language code of the caption track to moderate. Used only for audio-only assets; ignored for video assets. When omitted, an English subtitles track is preferred and otherwise the first ready text track is used.
    - `thresholds` object: Score thresholds that determine whether content is flagged. When combined with sampling_interval or max_samples, the exceeds_threshold flag reflects whether any category's highest observed score exceeds its configured threshold. Defaults to {sexual: 0.7, violence: 0.8}.
      - `sexual` number: Score threshold for sexual content. Content scoring above this value triggers exceeds_threshold.
      - `violence` number: Score threshold for violent content. Content scoring above this value triggers exceeds_threshold.
    - `sampling_interval` integer: Interval, in seconds, between sampled thumbnails. Minimum 5 seconds. When max_samples is also set, the actual sampling density is the more restrictive of the two constraints.
    - `max_samples` integer: Maximum number of thumbnails to sample. Acts as a cap — if sampling_interval produces fewer samples than this limit, the interval is respected; otherwise samples are evenly distributed with first and last frames pinned.
    - `output_steering` ModerateOutputSteeringV0: Curated controls that optionally restrict moderation to an asset time range.
      - `scope` object: Optional execution window in seconds on the original asset timeline. Omit start_time to begin at the asset start and omit end_time to continue through the asset end. Moderation is restricted to media within this window, while returned timestamps remain absolute asset timestamps.
        - `start_time` number: Start of the execution window in seconds from the beginning of the media. When omitted, the window starts at the beginning.
        - `end_time` number: End of the execution window in seconds from the beginning of the media. When omitted, the window extends to the end.
    - `on_flagged` ActionOnFlaggedV0: Optional action taken automatically when exceeds_threshold is true. When omitted, the job only reports scores and takes no action. Note: in a directive run that targets the same asset with other workflows, deleting playback IDs can break sibling workflows that need a playback ID.
      - `action` 'delete_playback_ids', required: Action to take when exceeds_threshold is true. "delete_playback_ids" deletes every playback ID on the asset, making it unplayable while preserving the underlying asset so it can be re-published or reviewed.

## Response `202`

Moderation job queued

- ModerateJobResponseV0
  - `data` ModerateJobV0, required
    - `id` string, required: Unique job identifier.
    - `passthrough` string: Arbitrary string supplied at creation, returned as-is.
    - `units_consumed` integer, required: Number of Mux AI units consumed by this job.
    - `directive` JobDirectiveContextV0: The directive run that dispatched this job. Absent for jobs created via direct API POST.
      - `id` string, required: ID of the directive that dispatched this job.
      - `run_id` string, required: ID of the specific directive run that dispatched this job.
    - `created_at` integer, required: Unix timestamp (seconds) when the job was created.
    - `updated_at` integer, required: Unix timestamp (seconds) of the job's last state transition (e.g. when it started processing or reached a terminal state).
    - `workflow` 'moderate', required
    - `parameters` ModerateJobParametersV0, required
      - `asset_id` string, required: The Mux asset ID of the video to moderate.
      - `language_code` string: BCP 47 language code of the caption track to moderate. Used only for audio-only assets; ignored for video assets. When omitted, an English subtitles track is preferred and otherwise the first ready text track is used.
      - `thresholds` object: Score thresholds that determine whether content is flagged. When combined with sampling_interval or max_samples, the exceeds_threshold flag reflects whether any category's highest observed score exceeds its configured threshold. Defaults to {sexual: 0.7, violence: 0.8}.
        - `sexual` number: Score threshold for sexual content. Content scoring above this value triggers exceeds_threshold.
        - `violence` number: Score threshold for violent content. Content scoring above this value triggers exceeds_threshold.
      - `sampling_interval` integer: Interval, in seconds, between sampled thumbnails. Minimum 5 seconds. When max_samples is also set, the actual sampling density is the more restrictive of the two constraints.
      - `max_samples` integer: Maximum number of thumbnails to sample. Acts as a cap — if sampling_interval produces fewer samples than this limit, the interval is respected; otherwise samples are evenly distributed with first and last frames pinned.
      - `output_steering` ModerateOutputSteeringV0: Curated controls that optionally restrict moderation to an asset time range.
        - `scope` object: Optional execution window in seconds on the original asset timeline. Omit start_time to begin at the asset start and omit end_time to continue through the asset end. Moderation is restricted to media within this window, while returned timestamps remain absolute asset timestamps.
          - `start_time` number: Start of the execution window in seconds from the beginning of the media. When omitted, the window starts at the beginning.
          - `end_time` number: End of the execution window in seconds from the beginning of the media. When omitted, the window extends to the end.
      - `on_flagged` ActionOnFlaggedV0: Optional action taken automatically when exceeds_threshold is true. When omitted, the job only reports scores and takes no action. Note: in a directive run that targets the same asset with other workflows, deleting playback IDs can break sibling workflows that need a playback ID.
        - `action` 'delete_playback_ids', required: Action to take when exceeds_threshold is true. "delete_playback_ids" deletes every playback ID on the asset, making it unplayable while preserving the underlying asset so it can be re-published or reviewed.
    - `status` 'pending' | 'processing' | 'completed' | 'errored' | 'cancelled', required: Current job status.
    - `errors` JobErrorV0[]: Error details. Present when status is 'errored'.
      - `type` string, required: Stable public error category identifier.
      - `message` string, required: Human-readable public error message.
      - `retryable` boolean: Whether retrying this job may resolve the error.
    - `resources` ResourcesV0: Related Mux resources linked to this job.
      - `assets` SlimlineAssetV0[], required: Mux assets associated with this job.
        - `id` string, required: Mux asset ID.
        - `meta` object: Mux asset metadata, if available.
          - `title` string: Asset title from Mux metadata.
          - `creator_id` string: Creator identifier from Mux metadata.
          - `external_id` string: External identifier from Mux metadata.
        - `passthrough` string: Passthrough string from the Mux asset.
        - `_links` object, required: Hypermedia links for the asset.
          - `self` object, required
            - `href` string, required: URL to the Mux asset resource.
    - `outputs` ModerateJobOutputsV0: Workflow results. Present when status is 'completed'.
      - `thumbnail_scores` object[], required: Per-thumbnail moderation scores.
        - `time` number: Time in seconds of the thumbnail within the video. Absent for transcript moderation.
        - `sexual` number, required: Sexual content score from 0.0 to 1.0.
        - `violence` number, required: Violence content score from 0.0 to 1.0.
      - `max_scores` object, required: Highest scores across all thumbnails for each category.
        - `sexual` number, required
        - `violence` number, required
      - `exceeds_threshold` boolean, required: True if any category's max score exceeds its configured threshold.
      - `flagged_action` object: Present only when on_flagged was set and exceeds_threshold was true. Records the action taken and which playback IDs were deleted.
        - `action` 'delete_playback_ids', required
        - `deleted_playback_ids` string[], required: Playback IDs that were deleted from the asset because it exceeded the threshold.

## Other responses

- `400`: Malformed or missing JSON request body, or invalid request parameters
- `401`: Missing or invalid Mux credentials
- `403`: Robots is not enabled for this environment (accept the Robots beta terms in the Mux Dashboard to enable access), or a free-plan limit has prevented job creation.
- `409`: A job with the same workflow and parameters is already pending or processing for this environment.
- `422`: Asset not found or missing public or signed playback ID
- `500`: Server error

## Changes

- **2026-10-26** `151835caff06`: 3 warning, 1 info
  - removed the optional property `data/outputs/thumbnail_moderation` from the response with the `202` status
  - removed the optional property `data/outputs/transcript_moderation` from the response with the `202` status
  - removed the optional property `data/outputs/transcript_scores` from the response with the `202` status
  - endpoint deprecated
- **2026-10-23** `ed6cb570d60c`: 5 info
  - the `language_code` request property default value `en` was removed
  - added the optional property `data/outputs/thumbnail_moderation` to the response with the `202` status
  - added the optional property `data/outputs/transcript_moderation` to the response with the `202` status
  - added the optional property `data/outputs/transcript_scores` to the response with the `202` status
  - …1 more
- **2026-10-19** `7e2e5079412d`: 1 breaking, 1 warning, 5 info
  - added `#/components/schemas/OutputSteeringScopeV0` to the `parameters/output_steering/scope` request property `allOf` list
  - removed `#/components/schemas/OutputSteeringScope` from the `parameters/output_steering/scope` request property `allOf` list
  - api operation id `create-moderate-job` removed and replaced with `create-moderate-job-v0`
  - api tag `Moderate (v0)` added
  - …3 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/muxinc/apis/mux-api/changes/robots/v0/jobs/moderate/post.md)

---

[API](https://skmtc.dev/muxinc/apis/mux-api.md) - [All operations](https://skmtc.dev/muxinc/apis/mux-api/llms.txt) - [OpenAPI document](https://skmtc.dev/muxinc/apis/mux-api/revisions/75b4251a1d96?raw)
