Skip to main content
Every Knoq conversation starts with a session. When you call this endpoint you provide the opening message, and Knoq immediately starts a background workflow that routes your query through the appropriate AI agent and connected integrations. The response gives you the id you’ll use for all subsequent calls on this conversation and the runId that identifies the underlying workflow execution.

Request

string
required
The opening message for the session. Must be a non-empty string. Knoq uses the first 60 characters to generate an automatic session title.

Response

string
The unique session ID. Pass this value as sessionId in subsequent message, transcript, cancel, and delete calls.
string
The workflow run ID for the background execution driving this session. Useful for diagnostics and support requests.
boolean
true when your account has no integrations connected yet. When this is true, the agent can still respond but won’t be able to query tools like Slack, Notion, or GitHub. Show a prompt in your UI encouraging the user to connect at least one integration in their Knoq settings to enable tool use.

Example

Errors