v1.0.0OpenAPI 3.1.1

Platform API

Download OpenAPI Document

Credits, languages, your organization and its members, and analytics.

The Platform API covers what every integration shares: your organization's credits, the language keys every product takes, the company profile and members of your organization, and usage analytics. New here? Read Platform for how these fit together, 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_. The key acts in the organization it was created in, with the role of the member who created it, so you never send an organization ID. See Authentication and Rate limits.

A typical integration checks the balance and prices the work before it starts jobs in another API, then reconciles what was charged from the ledger. Organizations with child organizations follow their spend in the usage report.

Nothing in this API charges credits. Each endpoint page lists the permission it needs.

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

Organization

The company profile of your organization: industry, legal name, tax IDs and contact details.

Get the company profile

Members

The people in your organization.

List members

Credits

Your organization's balance, what each operation costs, quotes before you start work, and every credit movement.

Get your balance

List rates

Get a quote

Auth Required

Price up to 200 units of work exactly as their start would charge them, with your rates applied, and get your balance with it. Nothing is charged. Use it to show a cost or to check you have enough credits before you start jobs.

Permission: credits:read. An API key acts with the role of the member who created it.

Bodyrequiredapplication/json

itemsQuoteCreditsItemDto[]required

The work to price, 1 to 200 items. Send one item per unit the start would charge, for example one per target language.

Show child attributes
featurestringrequired

The feature of the operation, as List rates returns it.

Example: translate_video
operationstringrequired

The operation to price, as List rates returns it. For Video Dubbing it is the processType of the job.

Example: VIDEO_TO_SPEECH_TRANSLATION
quantitynumber

For an operation with metering per_unit (or none): how many units, in the unit of its price (words, characters, images …). Default 1. Ignored when the operation is priced from params.

Example: 1Min: 0
paramsobject

For an operation with metering total: what the price is computed from. Required for them. Video operations take seconds (length of the source video) and, for dubbing, speakers.

Example: {"seconds":120,"speakers":2}

Responses

200The price of each item, their total and your balance.
application/json
itemsQuoteItemPriceDto[]required

One price per item you sent, in the same order.

Show child attributes
creditsnumberrequired

Credits this item would be charged when it starts, rounded up to whole credits.

Example: 600
totalnumberrequired

Sum of every item, in credits.

Example: 600
balancenumberrequired

Your current balance, so you can compare it with total. Negative while your organization owes credits.

Example: 12480
owednumberrequired

Credits your organization owes (0 when nothing is owed). Paid requests are refused while it is above zero.

Example: 0
400Nothing was priced. A field failed validation, or: - `items[<i>]: unknown feature/operation <feature>.<operation>`: the pair is not in List rates. - `items[<i>]: <feature>.<operation> is priced from params — pass them`: send `params` for an operation with `metering` `total`. - `items[<i>]: <feature>.<operation> could not be priced from these params (…)`: `params` is missing a value the price needs.
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/credits/quote
curl '{{API_BASE_URL}}/v1/credits/quote' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "items": [
    {
      "feature": "translate_video",
      "operation": "VIDEO_TO_SPEECH_TRANSLATION",
      "quantity": 1,
      "params": {
        "seconds": 120,
        "speakers": 2
      }
    }
  ]
}'
{
  "items": [
    {
      "credits": 600
    }
  ],
  "total": 600,
  "balance": 12480,
  "owed": 0
}

List ledger entries

Get credit history

Languages

Languages are identified by keys such as english_united_states, not ISO codes. List languages returns the keys every product accepts.

Operations

List languages

Analytics

Usage and spend across your organization and its child organizations: reports for a period, month-by-month totals, monthly budgets and the work of your linguists. Call these from the parent organization.

Get a usage report

Get monthly usage

Get insights

List budgets

Get linguist activity

Models

AnalyticsDayDto
AnalyticsFeatureDto
AnalyticsHeatmapCellDto
AnalyticsMemberDto
AnalyticsMonthDto
AnalyticsOperationDto
AnalyticsOrgRefDto
AnalyticsOrgUsageDto
AnalyticsRangeDto
AnalyticsSummaryDto
BudgetOrgDto
CreditBalanceDto
CreditHistoryMonthDto
CreditQuoteDto
FlatPricingDto
InsightsFailureDto
InsightsMatrixCellDto
InsightsOrgDto
InsightsUnitCostDto
LanguageCapabilitiesDto
LanguageCatalogItemDto
LanguageListItemDto
LanguageListResponseDto
LanguagePairDto
LedgerActorDto
LedgerEntryDto
LedgerPageDto
LinguistDto
LinguistProductDto
OrgAnalyticsInsightsDto
OrgAnalyticsReportDto
OrganizationProfileResponseDto
OrgBudgetsDto
OrgLinguistsDto
OrgUserDto
PaginatedUsersResponseDto
PayTotalDto
PerUnitPricingDto
PricingTierDto
ProvidersDto
QuoteCreditsDto
QuoteCreditsItemDto
QuoteItemPriceDto
RateCatalogDto
RateEntryDto
RateGroupDto
SourceTargetLanguagesDto
SpeechCapabilityDto
TargetLanguageItemDto
TieredPricingDto
UsersPaginationDto
VoiceTypeProvidersDto