Overview
The Polimorf public runtime API — base URL, conventions, and the runtime endpoints for ad-hoc generations and deployed assistants.
The public runtime API is the API-key-authenticated HTTP surface for running generations. The SDK is the recommended integration path, but every operation is a plain HTTPS request you can make from any language.
The dashboard/management API (assistants, workspaces, deployments, …) is a separate, session-authenticated surface for the Polimorf UI and is not part of this reference.
Base URL
All paths are relative to your instance's base URL, with no global prefix:
https://api.polimorf.appThe execute endpoint, for example, is
https://api.polimorf.app/runtime/execute.
Authentication
Send your workspace API key as a bearer token on every request:
Authorization: Bearer csk_live_xxxxxxxxxxxxxxxxxxxxxxxxThe runtime endpoints require the runtime:execute scope. See
Authentication.
Conventions
- Request and response bodies are JSON (
Content-Type: application/json). - Timestamps are ISO-8601 UTC.
- Non-2xx responses use the error envelope (
code,status,message, optionalfields). - Streaming endpoints return Server-Sent Events.
Endpoints
| Method & path | Purpose |
|---|---|
POST /runtime/execute | Run an ad-hoc, non-streaming generation |
POST /runtime/stream | Stream an ad-hoc generation (SSE) |
POST /runtime/assistants/:slug | Run a deployed assistant by slug |
POST /runtime/assistants/:slug/stream | Stream a deployed assistant (SSE) |