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

Get durable tracking history

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

Get durable tracking history

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

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

Get durable tracking history

Returns bounded keyset-paginated location history for recovery and playback. Requires tracking:read. History older than the hot retention window is served from the verified immutable archive once source reclamation is active; a page is never partially returned. Archive failures use history_archive_unavailable (503), history_archive_incomplete (503), history_archive_scan_limit (503) or history_archive_corrupt (502); retry only the first three.

Credential
Authorization: Bearer
Plane
https://read-api.bardiyamap.com
Operation id
getHistory

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

Query parameters

NameTypeRequiredDescription
cursorstring | nullnoOpaque cursor taken from a previous page. Do not build or decode it.
fromstring | nullnoStart of the window, ISO 8601 with an explicit UTC offset.
limitintegernoPage or result size. Omitting it uses the documented default, which is not “unlimited”.1 to 500 / default 200
tostring | nullnoEnd of the window, ISO 8601 with an explicit UTC offset.

Request example

shell
curl "https://read-api.bardiyamap.com/v1/tracking/sessions/ses_01HX9Z6Q3M/history?cursor=eyJwYWdlIjoxfQ&limit=200" \
  -H "Authorization: Bearer $BARDIYA_TRACKING_KEY"

Response 200 · HistoryPage

FieldTypeRequiredNotes
has_morebooleanyes
itemsHistoryPoint[]yes
next_cursorstring | nullno
retention_daysinteger | nullno

Errors

StatusMeaning
400Request is malformed or a parameter is out of range
401Authentication failed
403Required scope is missing
404Resource not found or is not visible to this tenant
409Conflict or idempotency error
422Validation Error
429Rate limit or quota exceeded; honour `Retry-After`
503Public 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}/history is part of the Tracking group. Values on this page are generated from contract version 1.1.0.