Base URL
Authentication
The Polpo API uses two authentication methods:Session Auth (Control Plane)
Used for managing organizations, projects, and API keys. Requires a session token from Better Auth.API Key Auth (Data Plane)
Used for agent operations — completions, tasks, missions, events. Requires a project API key.Response Format
All responses return JSON. Successful responses return the resource directly. Errors return:Common Error Codes
| Code | Status | Description |
|---|---|---|
unauthorized | 401 | Missing or invalid authentication |
invalid_api_key | 401 | API key not found or revoked |
not_found | 404 | Resource doesn’t exist |
conflict | 409 | Resource already exists (duplicate slug) |
bad_request | 400 | Missing required parameter |
internal_error | 500 | Server error |