POST

Authorization

string
required
Bearer token. Bearer API_key, can be found in Settings > API Keys.

Request Body

string
required
The task or question for the coding agent.
string
Session ID to continue an existing coding session.
enum
default:"magma"
Model to use. Default: magma.
string
Sandbox ID for code execution. If not provided, a new sandbox will be created.
integer
Maximum number of agent loop iterations. Default: 25.

Response

Returns Server-Sent Events with the agent’s reasoning, tool calls, and code execution results.