Code
Code Agent Stream
Stream an AI-powered coding agent session. The agent can read, write, search, and execute code with tool calling in a loop.
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.