Skip to navigation

Create a moderation job

This endpoint creates a moderation job that applies a moderation rule to a selected set of videos. The job starts a separate moderation workflow for each selected media item. You can use the job endpoints to track progress and retrieve results.

How it works

  1. Send a POST request with a name, the ruleId of the rule to apply, and a videoSource.

  2. Set videoSource.type to specify which videos to moderate:

    • specific: Moderate the videos listed in videoIds.
    • tags: Moderate all media associated with the specified tags.
    • all: Moderate all media in your account.
  3. Set scanNewUploads to true to also moderate media uploaded after the job is created.

  4. The response returns the id of the created job, which you use to track progress and fetch results.

Example

A platform applies its “strict” moderation rule to all videos tagged user-generated and sets scanNewUploads to true. The job also moderates newly uploaded videos that match the configured source.

Authentication

AuthorizationBasic

FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request.

  • Username: Access Token ID
  • Password: Secret Key

Activate your FastPix account to generate your API credentials. See the guide here

Request

This endpoint expects an object.
namestringRequired<=255 characters

A human-readable name for the job.

ruleIdstringRequiredformat: "uuid"
The id of the moderation rule to apply.
videoSourceobjectRequired

Where a job pulls its videos from. tags applies only when type is tags; videoIds applies only when type is specific; for all, both are ignored.

scanNewUploadsbooleanOptionalDefaults to false
When true, media uploaded after the job is created are also moderated.

Response

Moderation job created successfully
successbooleanOptional
Shows the request status. Returns true for success and false for failure.
dataobjectOptional