Get started
Updated
API keys
Create, check, rotate and revoke the sk_ API keys that authenticate every request, and what each failure looks like.
Every /v1 request authenticates with an API key sent as a bearer token:
Authorization: Bearer sk_…Keys are managed in the app at app.helping.io, under
Dashboard → API Keys, not through /v1. Owners and admins of the
organization can create, rotate and revoke keys. Members see the keys issued to
them and can revoke those.
Create a key
Section titled “Create a key”-
Open Dashboard → API Keys.
-
Under Create a key, enter a Name of at least three characters that says which integration will use it, then select Create key.
-
Copy the secret with Copy. It starts with
sk_and is shown once: it cannot be recovered after you select Dismiss or leave the page. -
Store it where your code reads it, for example:
export HELPINGIO_API_KEY="sk_…"
The key is issued to you and belongs to your organization. Spend is attributed per key, so give each integration its own.
Check a key
Section titled “Check a key”Listing models proves a key works without running a model, so it costs nothing and is not rate limited.
curl https://api.helping.io/v1/models \ -H "Authorization: Bearer $HELPINGIO_API_KEY"A working key answers 200 with the list of models. A key the API does not
accept, because it is mistyped, incomplete, revoked or expired, answers 401:
{ "error": { "message": "invalid API key", "type": "invalid_request_error", "param": null, "code": "invalid_api_key" }}A request with no Authorization header, or one that is not Bearer
followed by a key, gets the same 401 with the message
missing or malformed Authorization header.
Rotate a key
Section titled “Rotate a key”Rotating a key gives it a new secret. The key keeps its name, its spend history and its conversations.
- Open Dashboard → API Keys and find the key in the list.
- Open the key’s actions menu and select Rotate.
- Under Keep the current secret working for, choose Stop it now, 1 hour, 24 hours or 7 days. A grace period lets your clients switch to the new secret without downtime.
- Select Rotate key, then copy the new secret. It is shown once.
Revoke a key
Section titled “Revoke a key”Revoking a key stops it immediately and cannot be undone. Its spend history stays visible in the app, conversations it started can no longer be continued by anyone, and no request can read or add to its memory. An owner or admin can still forget a memory id in the app.
- Open Dashboard → API Keys and find the key in the list.
- Open the key’s actions menu and select Revoke.
- Select Revoke key to confirm.
A key never expires unless you give it a date under Expires when you
create it. From the start of that day, in your local time, the key answers
401 like a revoked key.
Conversation ownership
Section titled “Conversation ownership”A conversation is bound to the API key that started it. Only that key can
continue, retrieve, or delete it, and a different key in the same
organization gets the same 404 as an unknown id. Plan for this when you
have several keys: the key that starts a conversation is the key that must
finish it.
Authentication failures
Section titled “Authentication failures”401invalid_api_key: the header is missing or malformed, or the key is unknown or revoked. Check the key as in Check a key.403access_denied: the key is valid but is not entitled to what the request asked for. Ask an administrator of your organization.503auth_unavailable: the key could not be validated for a moment. It comes withRetry-After: 1, never as a401, and the SDKs retry503automatically, so a short outage never looks like a bad key.