Base URL
polpo deploy. Every request targets this base URL.
Authentication
All endpoints require a project API key passed as a Bearer token.Bearer token using your project API key. Keys start with
sk_live_ (production) or sk_test_ (sandbox).Project API keys are scoped to a single project. Generate them from the Dashboard or via the Platform API. Live keys access production resources; test keys access the sandbox environment.
Response format
All responses return JSON. Successful responses return the resource directly:Common error codes
| Code | Status | Description |
|---|---|---|
unauthorized | 401 | Missing or invalid API key |
invalid_api_key | 401 | API key not found or revoked |
not_found | 404 | Resource does not exist |
bad_request | 400 | Missing or invalid parameter |
conflict | 409 | Resource already exists |
rate_limited | 429 | Too many requests |
internal_error | 500 | Server error |
Streaming
Endpoints that support streaming (chat completions, task execution, mission execution) return Server-Sent Events (SSE) whenstream: true is set. The stream follows the OpenAI convention:
Accept: text/event-stream in your request headers when streaming.
OpenAI compatibility
The chat completions endpoint (POST /v1/chat/completions) follows the OpenAI API format exactly. You can use any OpenAI-compatible client library by pointing it at your Polpo base URL.