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

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

Auth Required

Ask the AI for up to 10 new rules for a region, based on its name and avoiding its existing rules. Nothing is saved: review the candidates and add the ones you want with Add a rule. Waits for the model, so it can take several seconds.

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

Credits: Charged when you call it, for the count you ask for; lowered to the number of rules actually returned (nothing if none). Refunded in full if generation fails.

Rate What it covers Price
Region rule generation AI-generating candidate compliance rules for a region. Charged per generated rule. 20 credits per rule

Path Parameters

idstringrequired

ID of the region, from List regions.

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

Bodyrequiredapplication/json

countnumber

How many rules to propose, from 1 to 10. Defaults to 10.

Default: 10Example: 5Min: 1Max: 10

Responses

201The proposed rules.
application/json
candidatesRuleCandidateDto[]required

Proposed rules, without duplicates of the existing ones. Nothing is saved: add the ones you want with Add a rule.

Show child attributes
titlestringrequired

Short label for the rule.

Example: No pork products
descriptionstringrequired

What to check for.

Example: The content must not show or mention pork or pork-based products.
severitystringrequired

Proposed severity.

Enum values:lowmedhigh
Example: high
contentTypesstring[]required

The kinds of content the rule would apply to.

Enum values:imagevideoaudiotext
Example: ["image","text"]
400A field failed validation, or: `AI rule generation needs an OpenAI key — set one in Org settings (or the platform env).`, or `AI rule generation failed. Try again.` (refunded).
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 rules you asked for, or your organization owes credits. Nothing was generated.
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
404No region with this `id` in your organization (`Region <id> not found`).
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/{id}/rules/auto-generate
curl '{{API_BASE_URL}}/v1/galaxy/quality-control/region/5b8d1f3a-2c4e-4a6b-8d0f-3e5a7c9b1d2f/rules/auto-generate' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "count": 5
}'
{
  "candidates": [
    {
      "title": "No pork products",
      "description": "The content must not show or mention pork or pork-based products.",
      "severity": "high",
      "contentTypes": [
        "image",
        "text"
      ]
    }
  ]
}

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