تخطَّ إلى المحتوى
توثيق المطورين

Stream a session over authenticated SSE

GET /v1/tracking/sessions/{session_id}/stream · Authorization: Bearer

Stream a session over authenticated SSE

GET /v1/tracking/sessions/{session_id}/stream · Authorization: Bearer

GET/v1/tracking/sessions/{session_id}/stream

Stream 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

NameTypeRequiredDescription
session_idstring (uuid)yesTracking session id returned by POST /v1/tracking/sessions. A device credential from one session cannot write to another.uuid

Request example

shell
curl "https://read-api.bardiyamap.com/v1/tracking/sessions/ses_01HX9Z6Q3M/stream" \
  -H "Authorization: Bearer $BARDIYA_TRACKING_KEY"

Response 200

Errors

StatusMeaning
400Request is malformed or a parameter is out of range
401Authentication failed
403Required scope is missing
404Session not found or not visible to this tenant.
409Conflict or idempotency error
422Validation Error
429Rate limit or quota exceeded; honour `Retry-After`
503Realtime 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.