Stream a session over authenticated SSE
GET /v1/tracking/sessions/{session_id}/stream · Authorization: Bearer
/v1/tracking/sessions/{session_id}/streamStream a session over authenticated SSE
Server-sent events for one session. Frames are event: + data: pairs:
snapshot, location, heartbeat, limit and closed. Each location
frame carries an id of the form <session_id>:<state_version>; resume
is not supported, so reconnect and re-read the snapshot instead.
- Credential
Authorization: Bearer- Plane
https://read-api.bardiyamap.com- Operation id
streamSession
Server-sent events. Reconnect with Last-Event-ID; the stream is resumable and does not replay events you already acknowledged.
Parameters
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
session_id | string (uuid) | yes | Tracking session id returned by POST /v1/tracking/sessions. A device credential from one session cannot write to another.uuid |
Request example
curl "https://read-api.bardiyamap.com/v1/tracking/sessions/ses_01HX9Z6Q3M/stream" \
-H "Authorization: Bearer $BARDIYA_TRACKING_KEY"Response 200
Errors
| Status | Meaning |
|---|---|
400 | Request is malformed or a parameter is out of range |
401 | Authentication failed |
403 | Required scope is missing |
404 | Session not found or not visible to this tenant. |
409 | Conflict or idempotency error |
422 | Validation Error |
429 | Rate limit or quota exceeded; honour `Retry-After` |
503 | Realtime transport is temporarily unavailable. |
Error bodies use the shared envelope documented in Errors: { "error": { "code", "message", "details", "request_id" } }.
GET /v1/tracking/sessions/{session_id}/stream is part of the Tracking Realtime group. Values on this page are generated from contract version 1.1.0.
