Get started

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:

200 OK
{
  "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

On this page