Platform API
Download OpenAPI DocumentCredits, 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.
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
What every billable operation costs your organization, by category. A product's prices are listed when the product is enabled for your organization. Prices include your organization's own rates where it has them (overridden: true). Each operation's feature and operation are what you send to Get a quote.
Permission: credits:read. An API key acts with the role of the member who created it.
Responses
200The rate catalogue, priced for your organization.
The billable operations, by category.
Show child attributes
Category key.
Category name, for display.
The operations in this category.
Show child attributes
The product area that charges it. With operation, it is what you send to Get a quote.
The operation charged, within feature.
The category it is listed under (the group it is in).
Name of the operation, for display.
What the operation is and how it is measured.
What the usage is measured in.
The price. kind says which shape it is: flat, per_unit or tiered.
How Get a quote prices it. per_unit (the default when absent): send quantity. total: send the params the price is computed from, such as { "seconds": 120, "speakers": 2 } for video.
Present (and true) when your organization has its own price for this operation; pricing then shows that price.
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
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.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
curl '{{API_BASE_URL}}/v1/credits/rates' \
--header 'x-api-key: YOUR_API_KEY'{
"groups": [
{
"group": "translate_video",
"label": "Video Dubbing",
"rates": [
{
"feature": "translate_video",
"operation": "VIDEO_TO_SPEECH_TRANSLATION",
"group": "translate_video",
"label": "Video Dubbing",
"description": "Dubbing a video, with or without instant voice cloning. Per minute of source video; a multi-speaker run is charged a third more, since each speaker is separately transcribed, voice-matched and synthesized.",
"unit": "minutes",
"metering": "total",
"pricing": {},
"overridden": true
}
]
}
]
}Get a quote
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.
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.