univoozAPI

API keys

A key belongs to an organization, and its prefix decides the mode.

Authorization: Bearer uv_live_YOUR_KEY

A key authenticates an organization, not a user. There are no scopes: a key can use the complete API of its organization.

Make a key

Open Developers → API keys in the dashboard.

You see the secret one time only. Keep it before you close the window.

You can give a key an expiry date. If you do, set a reminder. If you revoke a key, it stops immediately and you cannot undo this.

The prefix decides the mode

PrefixCreatesReads
uv_live_Live ordersLive orders
uv_test_Test ordersTest orders

No field in a request can change this.

A key reads its own mode only. A test key that reads a live order gets order_not_found. See Test mode.

A key is not sufficient

The request also needs an active subscription, and a plan with features_standardApi or features_advancedApi.

A correct key with an unpaid subscription gives subscription_inactive, not an authentication error. See Plans and payment.

Keep keys safe

  • Never put a key in a mobile app or a web page.
  • Keep live and test keys in different configuration.
  • To replace a key: make the new key, install it, then revoke the old one. In that sequence.
  • If a key becomes public, revoke it immediately.

Errors

CodeStatusCause
invalid_api_key401Missing, incorrect or unknown
api_key_revoked401Somebody revoked it
api_key_expired401It passed its expiry date
test_mode_required403A test endpoint with a live key

On this page