Quickstart
Create an API key and make your first request in a few minutes.
You need an organization in the Universe app and permission to create API keys in it. The owner, admin, editor and member roles have it by default.
Create an API key
Sign in to the Universe app and open Settings → API keys. Select Create API key, give it a name you'll recognize later (for example ci-pipeline), and choose when it expires.
Copy the key straight away. It starts with uvk_ and is shown only once.
Treat the key like a password
Store it in a secret manager or an environment variable. Never commit it, put it in front-end code or share it in a screenshot.
Make your first request
Check your organization's credit balance. It's a read-only call, so it's a safe way to confirm the key works.
curl {{API_BASE_URL}}/v1/credits/balance \
-H "x-api-key: uvk_YOUR_API_KEY"A 200 means you're connected:
{
"balance": 12480,
"expiringCredits": 10000,
"nonExpiringCredits": 2480,
"lifetimeGranted": 50000,
"lifetimeSpent": 37520,
"lowBalanceThreshold": null,
"owed": 0
}Choose a product
The same key works for every product your organization has access to. Pick one from the API reference, or read how long-running jobs work first if you're dubbing video or translating files.
If something goes wrong
The key is missing, mistyped, expired or deleted. Send it in the x-api-key header exactly as it was shown when you created it.
The person who created the key doesn't have permission for this action. Ask an admin to create the key, or to give that person the role they need. The response lists the permission that was missing in required.
The request exceeded the rolling limit for the key or its organization. Wait the number of seconds in the Retry-After header, then retry. See Rate limits.