Chat and conversation APIs
Send governed questions, stream responses, preserve conversations, and inspect answer metadata.
Chat and conversation APIs
The conversation APIs expose the same governed answer lifecycle used by the Answerplane app.
Integration flow
- Authenticate with a server-side key.
- Create or reuse a conversation in the intended organization.
- Send the user's question and any explicit source or tenant context.
- Stream or wait for the answer.
- Store the conversation identifier, not source credentials.
- Render supported answer blocks and expose provenance.
Use the live API reference for current paths and schemas. The OpenAPI document is the source of truth for request fields.
Render defensively
Treat assistant content as untrusted output. Sanitize links and markup, validate chart blocks, and ignore unsupported block types. Preserve the distinction between narrative, tables, charts, and provenance.
Reliability
Handle authentication, validation, limit, timeout, and upstream source failures separately. Retry only idempotent requests with backoff. Keep an application request ID for correlation.
Tenant safety
Derive tenant context on your server from the authenticated product user. Never accept an arbitrary browser-supplied tenant identifier without authorization.