Polar
Cada llamada de Polar para una clave.
- POST
/api/v1/messagesAnthropic Messages API, answered by PolarPoint Claude Code at Polaris with ANTHROPIC_BASE_URL set to the origin plus /api. Needs polar.use. The model can be a tier (fable, opus, sonnet, haiku), provider/model, or automatic; your routing decides the rest. - POST
/api/v1/messages/count_tokensCount the tokens of a Messages request - POST
/api/v1/chat/completionsOpenAI Chat Completions, answered by PolarFor OpenAI-compatible clients: base URL is the origin plus /api/v1. Needs polar.use. - POST
/api/v1/responsesOpenAI Responses API, answered by PolarWhat Codex speaks: base URL is the origin plus /api/v1. Needs polar.use. Responses are not stored. - GET
/api/v1/modelsThe models this key can address - GET
/api/v1/sessionsList agent sessionsNewest first, 50 to a page. Needs agents.read. - POST
/api/v1/sessionsStart an agent sessionThe prompt is its first turn. When every slot is taken it waits in line, and queuedAt is its place. Needs agents.manage. - GET
/api/v1/sessions/{id}Read an agent sessioncursor is where its event stream is now: pass it as after to follow only what comes next. - POST
/api/v1/sessions/{id}/promptPrompt an agent session - POST
/api/v1/sessions/{id}/abortStop the turn an agent is onThe session stays up for the next prompt. - POST
/api/v1/sessions/{id}/stopEnd an agent sessionIts work is kept the way Stop on the screen keeps it. - GET
/api/v1/sessions/{id}/eventsFollow an agent sessionServer-Sent Events: session, event, message and, once it ends, end. Every frame's id is a cursor; reconnect with Last-Event-ID and nothing is sent twice.