Agents
Chat with a Coda AI agent and receive a streamed response.
Two modes are available: build helps write, debug, and optimise quantum
circuits; learn explains quantum computing concepts. Responses are
streamed as server-sent events (SSE). Pass a thread_id to continue a
previous conversation.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
x-api-path
Request
This endpoint expects an object.
messages
Conversation messages
thread_id
Thread ID for conversation continuity
fast
Use fast model for lower latency
mode
Agent mode: ‘build’ for circuit building, ‘learn’ for quantum computing education
Allowed values:
Response
Server-sent event stream. Each event is a JSON object with a type field.
Errors
422
Unprocessable Entity Error