API Overview

The KiBee REST API powers the browser SDK, the Admin Console, and any server-side integrations you build. All endpoints are served over HTTPS and return JSON.

Base URL

Production
https://api.kibee.ai

Route groups

PrefixAuth requiredDescription
/flows/:idPublishable keyFetch a flow definition by ID. Called by the browser SDK when starting a guided flow.
/sessionsPublishable keyCreate and track user sessions.
/intent/resolvePublishable keyMatch a free-text query to the best available flow.
/eventsPublishable keyTrack step completions, page visits, and custom events.
/recovery/resolvePublishable keyResume a stalled session at the correct step.
/admin/*Admin key or Auth0 JWTManage flows, sessions, contacts, API keys, and workspace settings.

Request format

POST and PUT endpoints accept application/json bodies. Always set Content-Type: application/json on requests with a body.

Error responses

All errors follow the same shape:

JSON
{ "error": "Invalid publishable key" }

HTTP status codes

CodeMeaning
200Success
201Resource created
204Success, no body (e.g. delete)
400Bad request — malformed body or missing field
401Unauthorized — missing or invalid credentials
403Forbidden — origin not in the allowed domains list
404Resource not found
429Rate limited
500Internal server error

Rate limits

SDK and admin endpoints are limited to 100 requests per minute per API key by default. Contact support to increase limits for high-traffic workspaces.

Next: Authentication — learn how to sign requests with publishable keys, secret keys, and Auth0 JWTs.