v1.0.0OpenAPI 3.1.1

Quality Control API

Download OpenAPI Document

Automated checks on video, audio and text before delivery.

Check images, text, audio and video against the rules of the markets you publish in, before the content goes out. New here? Read Quality Control for the whole flow, then make your first call with the Quickstart.

Every request

Send your organization API key in the x-api-key header; it starts with uvk_. Create one in the Universe app under Settings → API keys. The key and organization limits count requests over a rolling minute. See Authentication and Rate limits.

A check runs against one or more regions: a market, such as a country, with a pass mark and a set of rules. List regions to see yours, and add rules with Add a rule. Then start a check, for example Check an uploaded image or Check video, with the regions in regionIds.

Checks run in the background: every start call returns a jobId straight away. Poll Get a check until status is succeeded or failed. A finished check leaves a decision with a verdict of APPROVED, REVIEW or BLOCKED. Flagged decisions wait in the review queue for a person to rule on.

Your organization also limits how many checks of each kind it can start per minute (see Get settings); over that limit a start call returns 429. Endpoints that charge credits say so on their page, with the current price; without enough credits they return 402 and nothing is created. See Credits.

Server
{{API_BASE_URL}}
Your API environment
Authentication RequiredApiKeyAuth
Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys.
x-api-key:
Client Libraries
Shell

Get an upload URL

Auth Required

Put a file in storage before you check it, instead of sending it in a multipart form. Send the file's fileName, contentType and exact size, and kind: image, audio or video. PUT the file to uploadUrl with exactly the headers returned, within 10 minutes and without your API key. Then send uploadKey, with the other fields, in a JSON body to Check an uploaded image, Check audio or Check video. An upload can be used once; one not used within a day is deleted.

Permission: quality_control.classification:create. An API key acts with the role of the member who created it.

Free. The check you send the upload to is charged when it starts.

Bodyrequiredapplication/json

fileNamestringrequired

Name of the file you will upload. Its extension must be one this step takes.

Example: catalogue.csv
contentTypestringrequired

The file's type, sent again as the Content-Type of the PUT (the URL is signed over it). application/octet-stream is accepted when the type is unknown.

Example: text/csv
sizenumberrequired

Exact size of the file in bytes. It is part of the signed URL: storage refuses a PUT of any other length.

Example: 524288
kindstringrequired

Which check the file is for: image for Check an uploaded image (up to 8 MB), audio for Check audio (up to 128 MB), video for Check video (up to 512 MB). The key works only for that check.

Enum values:imageaudiovideo
Example: video

Responses

201Where to `PUT` the file, and the key to send to the check.
application/json
uploadUrlstringrequired

Presigned URL. PUT the file bytes to it within expiresInSeconds, with exactly the headers in headers, without your API key.

uploadKeystringrequired

The upload key. Send it as uploadKey to the step the file is for once the PUT has finished. It can be used once, and an upload not used within a day is deleted.

Example: 1f0c…/staged-uploads/7b9e….csv
headersobjectrequired

Headers the PUT must send exactly (the URL is signed over them).

Example: {"Content-Type":"text/csv","Content-Disposition":"attachment"}
expiresInSecondsnumberrequired

Seconds the URL stays valid for starting the PUT.

Example: 600
maxBytesnumberrequired

The largest file this step takes, in bytes.

Example: 26214400
400A field failed validation, the file is empty or over the limit of its check (an image 8 MB, audio 128 MB, video 512 MB), or it is not a file that check takes: an image `.png`, `.jpg`, `.jpeg`, `.webp` or `.avif`; audio `.mp3`, `.wav`, `.m4a`, `.aac`, `.ogg`, `.oga`, `.opus`, `.flac`, `.weba` or `.wma`; video `.mp4`, `.m4v`, `.mov`, `.webm`, `.mkv`, `.avi`, `.wmv`, `.mpg`, `.mpeg` or `.3gp`.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
429You asked for 300 upload URLs in the last hour, or have 5 GB of uploads not used yet.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
POST/v1/galaxy/quality-control/classification/upload/presign
curl '{{API_BASE_URL}}/v1/galaxy/quality-control/classification/upload/presign' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "fileName": "catalogue.csv",
  "contentType": "text/csv",
  "size": 524288,
  "kind": "video"
}'
{
  "uploadUrl": "string",
  "uploadKey": "1f0c…/staged-uploads/7b9e….csv",
  "headers": {
    "Content-Type": "text/csv",
    "Content-Disposition": "attachment"
  },
  "expiresInSeconds": 600,
  "maxBytes": 26214400
}

Check an image from a URL

Check an uploaded image

Check text

Check audio

Check video

Check a file from your assets

Get a check

Move a check to a project

Count billable words

Regions

A region is a market or audience, such as a country, with a pass mark from 0 to 100. Content is checked against the regions you name when you start a check.

List regions

Create a region

Get a region

Update a region

Rules

The rules of a region say what content must not show or say there. Each rule has a severity, which sets its weight in the region score, and the kinds of content it applies to. The AI can suggest rules for you to review.

List rules

Add a rule

Update a rule

Suggest rules with AI

Settings

Organization-wide settings for checks: the default AI provider, the NSFW block threshold and how many checks of each kind can start per minute.

Get settings

Review

Decisions with a REVIEW or BLOCKED verdict wait here for a person. A ruling is stored next to the model's verdict and does not replace it.

List the review queue

Rule on a decision

Models

AdditionalFindingDto
AdjudicateDto
AdjudicationDto
AutoGenerateRulesDto
CheckResponseDto
ClassifyFromAssetDto
ClassifyImageUrlDto
ClassifyResultDto
ClassifyTextDto
CountTextWordsDto
CreateRegionDto
CreateRuleDto
DecisionDetailDto
DecisionFrameDto
DecisionFramesResponseDto
DecisionImageUrlResponseDto
DecisionListResponseDto
DecisionMediaUrlResponseDto
DecisionRegionSummaryDto
DecisionSummaryDto
FixImageDto
ImageFixConcernDto
ImageFixJobResponseDto
ImageFixListResponseDto
ImageFixResultDto
ImageFixSummaryDto
InsufficientCreditsErrorDto
MoveCheckToProjectBodyDto
MoveCheckToProjectResponseDto
MovedProjectDto
NsfwSummaryDto
PerRuleResultDto
QcSettingsResponseDto
QcUploadPresignDto
RegionDto
RegionScoringDto
RegionWithRuleCountDto
ReviewQueueItemDto
ReviewQueueResponseDto
RuleCandidateDto
RuleCandidatesResponseDto
RuleDto
StagedUploadTicketDto
StartCheckResponseDto
StartImageFixResponseDto
TextWordCountResponseDto
UpdateRegionDto
UpdateRuleDto