Base URL
All API requests are made to the following base URL:Content type
All request bodies must be sent as JSON. Set theContent-Type header on every POST and DELETE request:
error field describing what went wrong.
Authentication
The Knoq API authenticates requests using session cookies issued when you sign in to Knoq. There is no standalone API key system — every request must carry a valid session cookie alongside the correctOrigin header to pass CSRF checks on mutating routes.
For full details on obtaining a session, constructing authenticated requests, and handling 401/403 responses, see the Authentication guide.
Rate limits
Knoq enforces per-user rate limits to protect platform stability. Requests that exceed a limit receive a429 Too Many Requests response. The Retry-After header on that response tells you how many seconds to wait before retrying.
Error codes
The API uses standard HTTP status codes. When a request fails, the response body contains anerror field with a human-readable description.
Available endpoints
Sessions
Create, list, and delete AI agent sessions. A session represents a
persistent conversation thread.
Messaging
Send follow-up messages to an active session and retrieve the full
transcript of a conversation.
SCIM
Provision and deprovision users and groups in Knoq from your identity
provider using the SCIM 2.0 protocol.