/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
endevent carrying final status and token usage statistics. - Connection resilience: Supports turn reconnection via the standard
Last-Event-IDheader and non-streaming fallback (stream: false). - No API-Version header required: The version is baked into the path (
/v1).