Skip to content
UneeqUneeqUneeq Docs

Authentication

Every request needs two things: an API key and the ID of the organization the key belongs to.

Send the key as a bearer token in the Authorization header:

Authorization: Bearer <your API key>

Write the word Bearer exactly like that, with a capital B.

An Organization admin creates and deletes keys in Uneeq under Organization, in the API Keys section. Each organization can hold up to 10 keys. Create one key per integration, so you can delete one without breaking the others. Keys do not expire: a key works until it is deleted.

A key acts with the permissions of an Organization admin, for its own organization only. Treat it like a password: keep it on your servers, never in a browser or a mobile app, and delete it in Uneeq if it leaks.

Call the API from a server. If a web page on another site sends a request, we refuse it with 403 and no body.

The organization ID is part of every path:

/external/v1/organization/{organizationID}/...

You’ll find it next to your API keys in Uneeq. A key only works with the ID of the organization it was created in.

We check authentication before a request reaches an endpoint. If the check fails, we respond with 401 and this body:

Cause Response body
No Authorization header {"error": "No api key provided"}
The key is wrong, deleted, or belongs to another organization {"error": "Invalid API key for this organization"}

These errors use an error field. Errors returned by an endpoint itself use message instead. See Errors.