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-pathstring or nullOptional

Request

This endpoint expects an object.
messageslist of objectsRequired
Conversation messages
thread_idstring or nullOptional
Thread ID for conversation continuity
fastbooleanOptionalDefaults to false
Use fast model for lower latency
modeenumOptionalDefaults to build

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