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

Image fixes

Make an edited version of a flagged image that addresses one region's concerns. A fix runs in the background; poll it for the new image.

Fix an image

Auth Required

Make an edited version of a checked image that addresses one region's flagged rules and findings. Image decisions only. Returns a jobId straight away; poll Get an image fix (it usually takes 15 to 60 seconds). The decision and region are checked once the job runs: if the decision is not an image, the region was not part of it, or it has nothing flagged, the job fails and is refunded.

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

Credits: A flat price per fix, charged when you start it. Refunded in full if the fix fails.

Rate What it covers Price
Image Fix Generating a compliant version of a flagged image. 300 credits

Path Parameters

idstringrequired

Decision ID: result.decisionId of a finished check, or decisionId from List decisions.

Example: 8d2e4f6a-1b3c-4d5e-9f7a-2b4c6d8e0f1a

Bodyrequiredapplication/json

regionIdstringrequired

ID of a region in the decision whose flagged rules and findings the fix should address.

Example: 5b8d1f3a-2c4e-4a6b-8d0f-3e5a7c9b1d2f
concernTitlesstring[]

Titles of the rules or findings to fix, from per_rule and additional_findings of that region. Leave it out to fix every flagged concern of the region.

Example: ["No alcohol shown"]
additionalInstructionsstring

Extra guidance for the edit (up to 2,000 characters).

Example: Keep the brand colours and the logo unchanged.

Responses

201The fix was charged and queued.
application/json
jobIdstring · uuidrequired

ID of the image-fix job. Poll it with Get an image fix.

Example: 2a4c6e8f-1b3d-4f5a-8c7e-9d1f3a5c7e9b
statusstringrequired

Always queued.

Enum values:SCHEDULED
Example: SCHEDULED
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
402Not enough credits for the fix, or your organization owes credits. Nothing was created.
application/json
statusCodenumberrequired

HTTP status code.

Example: 402
errorstringrequired

Always InsufficientCredits.

Example: InsufficientCredits
messagestringrequired

What happened, in plain words.

Example: You don't have enough credits to start this. It needs 120; you have 45.
requirednumberrequired

Credits this request needs.

Example: 120
availablenumberrequired

Credits your organization can spend now.

Example: 45
owednumberrequired

Credits your organization owes from earlier jobs (0 when nothing is owed). While anything is owed, every paid request is refused until it is repaid.

Example: 0
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
404The resource does not exist, or you cannot see it.
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/classification/decisions/{id}/fix
curl '{{API_BASE_URL}}/v1/galaxy/quality-control/classification/decisions/8d2e4f6a-1b3c-4d5e-9f7a-2b4c6d8e0f1a/fix' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "regionId": "5b8d1f3a-2c4e-4a6b-8d0f-3e5a7c9b1d2f",
  "concernTitles": [
    "No alcohol shown"
  ],
  "additionalInstructions": "Keep the brand colours and the logo unchanged."
}'
{
  "jobId": "2a4c6e8f-1b3d-4f5a-8c7e-9d1f3a5c7e9b",
  "status": "SCHEDULED"
}

Get an image fix

List image fixes

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