Agents

Send chat message (synchronous)

Sends a message to a Daytona-backed chat runtime and returns the complete response as a single JSON body. Blocks until the assistant turn completes.

When to use this endpoint: Best for server-to-server integrations, background processing, or any context where you want the full response in one call without managing an SSE stream.

Alternatives:

  • POST /chat/:id/respond — streaming SSE with normalized events (recommended for custom chat UIs)
post/agent/v2/chat/{id}/message

Path parameters

idstring required

Chat session ID

Request body

modelstring nullable

Optional model override. When provided, the runtime bootstrap config is updated so subsequent turns use this model. Conversation history is preserved.

Response

Upstream OpenCode response with per-turn usage metadata when available

Changes