Skip to main content
POST
Create Agent Session
Create a new agent session running the Claude Agent SDK inside the sandbox. Events stream over the exec session WebSocket transport.
string
required
Sandbox ID
string
Initial prompt
string
Claude model name
string
System prompt
string[]
Restrict available tools
string
Permission mode
integer
Maximum turns
string
Working directory
object
MCP server configuration
string
Session ID to resume