Authorization header. There are no sessions or cookies. Each request is authenticated on its own, so keeping your key secret is essential.
Get your key
Create and manage your API keys in the Kyara dashboard. Keys start withkai_. When you generate a new key, it is shown to you only once, so copy it immediately and store it somewhere secure such as a password manager or a secrets vault.
If you ever need to rotate a key, you can regenerate it from the dashboard at any time. Regenerating immediately revokes every key on your account, including keys created through the onboarding flow, so update any services using them before you rotate.
Send the token
Pass your API key in theAuthorization header as a bearer token on every request. The value must be the string Bearer followed by your key.
apiKey parameter:
Let users bring their own key
If you’re building an application for other people, use the hosted onboarding flow instead of collecting keys manually. Send users to:redirect URL. The key is not appended to the redirect, so the user copies it and pastes it into your app to finish connecting. This keeps your users in control of their own credentials. See the onboarding API reference for full details on the redirect parameter and the flow.
Error reference
Errors use the OpenAI error envelope:{ "error": { "message", "type", "param", "code" } }.
If you receive a
401, check that the key has not been regenerated or deleted in the dashboard. If you receive a 400 on a request you expect to authenticate, check that the header is formatted exactly as Bearer <key>. If you receive no_active_plan, subscribe or fix the payment method in the dashboard. Top-up credits you already own keep requests working without an active subscription.