Authentication & scopes
Every call except /v1/health carries your API key.
Sending the key
Use the Authorization header. This is the recommended way.
Authorization: Bearer hhk_live_AbCd…
If your HTTP client makes that hard, X-API-Key works too. Do not send both with different values.
X-API-Key: hhk_live_AbCd…
Key format
Keys start with hhk_live_ or hhk_test_, followed by 43 letters, digits, - or _.
Hehllo stores only a fingerprint of the key, which is why it can be shown only once.
Scopes
Each key has a list of things it may do. Keys made in Developer Settings get the three partner scopes.
| Scope | Allows |
|---|---|
schedules:read | List meetings and read one meeting |
schedules:write | Create, update and cancel meetings |
guests:invite | Create guest links and host links |
A call outside the key's scopes is refused:
HTTP/1.1 403 Forbidden
{ "success": false,
"error": { "code": "INSUFFICIENT_SCOPE", "message": "This API key lacks the \"schedules:write\" scope." },
"meta": { "request_id": "…" } }
Need a key with fewer rights, for example a read-only reporting job? Ask Hehllo support to create one for you.
Allowed sites (browser calls)
Calls from your server are the normal case and are not affected by this section.
Hehllo can restrict a key to the website domains you name, for example streammedia.be
(no https:// or www.: the www. form is included, other subdomains are listed separately).
When a browser calls the API with such a key, the site it is on must use https:// and be on the list, otherwise
the call fails with 403 ORIGIN_NOT_ALLOWED. Ask Hehllo support to set the list for a key.
For development on the Hehllo dev server, a test key can also allow localhost (any port).
This never works on the production API.
When authentication fails
| Status | Code | Meaning |
|---|---|---|
| 401 | UNAUTHORIZED | No key was sent. |
| 401 | INVALID_API_KEY | Wrong, revoked or expired key. Hehllo does not say which, on purpose. |
| 403 | INSUFFICIENT_SCOPE | The key may not do this. |
| 403 | ORIGIN_NOT_ALLOWED | Browser call from a site not on the key's list. |
| 403 | FORBIDDEN | The Hehllo account that owns the key is no longer active. |
HTTP/1.1 401 Unauthorized
{ "success": false,
"error": { "code": "UNAUTHORIZED",
"message": "Missing API key. Send \"Authorization: Bearer hhk_…\" or \"X-API-Key: hhk_…\"." },
"meta": { "request_id": "e2258736-32c7-4715-a5b1-39c3161ad2b1" } }