Run Agent

Chat with a Coda AI agent and receive a streamed response. Two modes are available — build (write, debug, optimise circuits) and learn (explain quantum computing concepts).

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