API Reference
Create an Agent
Deploy a new agent to production.
Request example:
{ "model": "anthropic/claude", "fallback": "openai/gpt-4o", "tools": ["postgres", "slack"], "approvals": [{ "action": "spend", "condition": ">100" }], "budget": "500/mo" }
Response:
{ "id": "agt_4b81", "status": "deploying", "endpoint": "https://api.scalar.ai/v1/agents/agt_4b81", "created_at": "2026-01-14T09:22:00Z" }
Errors table:
400 Invalid config
401 Missing or invalid API key
429 Rate limit exceeded
