curl -X POST https://api.runtools.ai/v1/run/my-code-bot \ -H "X-API-Key: rt_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "message": "Create a React todo app with TypeScript" }'
{ "data": { "id": "run_abc123", "status": "completed", "output": "I've created a React todo app with TypeScript...", "devUrl": "https://sandbox-xyz.sandboxes.runtools.ai", "files": [ "/src/App.tsx", "/src/components/Todo.tsx", "/src/types.ts" ], "usage": { "inputTokens": 1234, "outputTokens": 5678 } } }
Execute an agent deployment
workspaceId
path
Show context properties
completed
failed
cancelled
stream: true
curl -X POST https://api.runtools.ai/v1/run/my-code-bot \ -H "X-API-Key: rt_live_xxx" \ -H "Content-Type: application/json" \ -H "Accept: text/event-stream" \ -d '{"message": "Create a todo app", "stream": true}'
event: thinking data: {"content": "I'll create a React todo app..."} event: tool_call data: {"tool": "bash", "input": {"command": "npm create vite"}} event: tool_result data: {"output": "Done"} event: file_edit data: {"path": "/src/App.tsx", "diff": "..."} event: dev_url data: {"url": "https://sandbox-xyz.sandboxes.runtools.ai"} event: complete data: {"output": "Your todo app is ready!"}