{"uid":"cap_MO4fc2ojqnzQZqx8bwvqE","slug":"straits-live-premium-stream-session-a30db2ab","name":"Straits.live Premium Stream Session","description":"Buy a real-time stream session: one payment returns a short-lived signed token that authenticates a Server-Sent Events connection at /api/premium/stream, pushing Strait of Hormuz ticks, Hormuz Index moves, and events without polling.","url":"https://straits.live/api/premium/stream/session","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"token":"...","schema":"https://straits.live/api/premium/stream/session","expiresAt":"2026-07-09T12:15:00Z","streamUrl":"https://straits.live/api/premium/stream?token=..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5GoZHSGZfuFRtfMe_tbBE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases a short-lived signed token via micropayment that authenticates a real-time Server-Sent Events stream of Strait of Hormuz shipping, index, and event data.","exampleAgentPrompt":"Start a live Straits.live premium stream session for real-time Strait of Hormuz shipping ticks and Hormuz Index moves — go ahead and authorize the $0.05 USDC payment to get the signed token.","exampleUseCases":[{"title":"Oil trader real-time Hormuz feed","prompt":"I need a live Straits.live stream of Hormuz Index price moves and transit events right now — pay the 5-cent USDC fee and get me the authenticated SSE connection so I can track oil market signals."},{"title":"Geopolitical risk alert monitoring","prompt":"Set up a real-time Straits.live premium stream for Strait of Hormuz crisis events and shipping disruptions — authorize the micropayment and keep me updated as events are pushed through."},{"title":"Automated shipping intelligence pipeline","prompt":"Spin up a Straits.live premium stream session for live AIS vessel ticks and Hormuz closure events — pay the 0.05 USDC and pass the signed token to my SSE listener so it can ingest updates continuously."}],"resultDescription":"Returns a short-lived signed session token that the caller uses to authenticate a persistent Server-Sent Events connection at /api/premium/stream, which then pushes real-time Strait of Hormuz vessel ticks, Hormuz Index price moves, and geopolitical/shipping events without any further polling.","failureModes":["Payment failure or insufficient USDC balance returns a 402 Payment Required error","Expired or invalid signed token results in 401 Unauthorized on the SSE endpoint","Token used after its short TTL has elapsed returns 403 Forbidden","Malformed POST body (missing required type or method fields) returns 400 Bad Request","Network interruption drops the SSE connection, requiring a new session purchase"],"whenToPreferThis":"Choose this endpoint when you need a continuous, push-based real-time feed of Strait of Hormuz data (vessel ticks, index moves, events) without polling overhead. It is ideal for latency-sensitive trading systems, automated risk monitors, or any agent that must react to Hormuz crisis developments as they happen rather than on a scheduled pull basis. Prefer over the snapshot REST endpoints when sustained streaming and instant event delivery are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:37:53.264Z","isFirstParty":false}