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

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

Auth Required

Add a region (a market or audience) with a pass mark. Then add its rules. Content is checked against the regions you name in regionIds.

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

Bodyrequiredapplication/json

namestringrequired

Name of the region, such as a country or market (up to 120 characters).

Example: Saudi Arabia
descriptionstring

What the region covers (up to 2,000 characters).

Example: Campaigns shown in the Kingdom of Saudi Arabia.
thresholdnumber

Pass mark from 0 to 100. Content that scores below it is flagged. Defaults to 95.

Default: 95Example: 90Min: 0Max: 100

Responses

201The new region.
application/json
idstring · uuidrequired

ID of the region. Pass it in regionIds when you start a check.

Example: 5b8d1f3a-2c4e-4a6b-8d0f-3e5a7c9b1d2f
namestringrequired

Name of the region.

Example: Saudi Arabia
descriptionstring | nullrequired

What the region covers, or null.

Example: Campaigns shown in the Kingdom of Saudi Arabia.
thresholdnumberrequired

Pass mark from 0 to 100. Content that scores below it is flagged.

Example: 95
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
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
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
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/region
curl '{{API_BASE_URL}}/v1/galaxy/quality-control/region' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Saudi Arabia",
  "description": "Campaigns shown in the Kingdom of Saudi Arabia.",
  "threshold": 90
}'
{
  "id": "5b8d1f3a-2c4e-4a6b-8d0f-3e5a7c9b1d2f",
  "name": "Saudi Arabia",
  "description": "Campaigns shown in the Kingdom of Saudi Arabia.",
  "threshold": 95
}

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