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-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