Handle Ingest Batch
POST /api/v1/tracking/sessions/{session_id}/locations/batch · Authorization: Bearer (session ingest token)
POST
/api/v1/tracking/sessions/{session_id}/locations/batchHandle Ingest Batch
Ingest a bounded batch with a session-scoped credential instead of an API key.
- Credential
Authorization: Bearer (session ingest token)- Plane
https://api.bardiyamap.com- Operation id
sendLocationBatchWithIngestCredential
Bounded batch for devices that buffer while offline. Events keep their own recorded_at, so ordering survives reconnects.
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 |
Header parameters
| Name | Type | Required | Description |
|---|---|---|---|
X-Tracking-Organization-Id | string | null | no |
Request body
application/json · required
| Field | Type | Required | Notes |
|---|---|---|---|
events | TrackingIngestEventCreate[] | yes |
json
{
"events": []
}Request example
shell
curl -X POST "https://api.bardiyamap.com/api/v1/tracking/sessions/ses_01HX9Z6Q3M/locations/batch" \
-H "Authorization: Bearer $BARDIYA_INGEST_TOKEN" \
-H "X-Tracking-Organization-Id: $BARDIYA_ORG_ID" \
-H "Content-Type: application/json" \
--data '{"events":[]}'Response 200 · TrackingBatchIngestResponse
| Field | Type | Required | Notes |
|---|---|---|---|
accepted_count | integer | yes | |
duplicate_count | integer | yes | |
history_written_count | integer | yes | |
rejected_count | integer | yes | |
results | TrackingBatchEventResult[] | yes |
Errors
| Status | Meaning |
|---|---|
401 | Missing or invalid credential |
422 | Validation Error |
Error bodies use the shared envelope documented in Errors: { "error": { "code", "message", "details", "request_id" } }.
POST /api/v1/tracking/sessions/{session_id}/locations/batch is part of the Tracking group. Values on this page are generated from contract version 1.1.0.
