Pinter provides a dedicated, versioned REST and SSE streaming API designed specifically for mobile clients (React Native, Flutter, iOS, and Android) under /api/mobile/v1.

Key principles

  • Independent contract: Mobile endpoints are isolated from desktop web refactors to avoid breaking mobile releases.
  • Optimized payloads: Strips large internal trace spans and server logs, transmitting only essential message and activity chunks.
  • Guaranteed terminal SSE event: Streams always conclude with exactly one end event carrying final status and token usage statistics.
  • Connection resilience: Supports turn reconnection via the standard Last-Event-ID header and non-streaming fallback (stream: false).
  • No API-Version header required: The version is baked into the path (/v1).

Authentication endpoints


Chat and streaming endpoints


Budget and quota endpoints


SSE event taxonomy

Mobile stream consumers receive standard SSE events formatted as:

Standard error codes