Base URL
All API requests should be made to:Authentication
Authenticate using your API key in theX-API-Key header:
Get Your API Key
Create an API key in the dashboard
Request Format
- Content-Type:
application/json - Accept:
application/json
Response Format
All responses are JSON with this structure:Error Responses
HTTP Status Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
429 | Rate Limited |
500 | Internal Error |
Rate Limits
| Tier | Requests/Minute |
|---|---|
| Free | 60 |
| Pro | 300 |
| Team | 1,000 |
| Enterprise | Custom |
Pagination
List endpoints support pagination:WebSocket Endpoints
Some endpoints use WebSocket for real-time data:API Sections
Sandboxes
Create, manage, and execute in sandboxes
Agents
Create and run AI agents
AIP
Sessions, context blocks, search, invoke
Tools
Manage and execute tools
Templates
Create custom environments
Code Execution
Run code in ephemeral sandboxes