Skip to content
Developer documentation

Send one telemetry event by subject or session

POST /v1/tracking/events · Authorization: Bearer

Send one telemetry event by subject or session

POST /v1/tracking/events · Authorization: Bearer

POST/v1/tracking/events

Send one telemetry event by subject or session

Ingests one telemetry event targeted at a tracked subject (subject_type + subject_ref) or an explicit session_id. Exactly one targeting mode per request. client_event_id is the idempotency key for retries. Response semantics are identical to POST /v1/tracking/sessions/{id}/locations. Requires tracking:write.

Credential
Authorization: Bearer
Plane
https://api.bardiyamap.com
Operation id
sendEvent

Parameters

This operation takes no parameters.

Request body

application/json · required

FieldTypeRequiredNotes
eventTrackingIngestEventCreateyesSingle-event ingest body (V1 device API, TRACKING-02B). client_seq is REQUIRED (positive BIGINT, monotonic per session). recorded_at is the device timestamp (timezone-aware; validated against the server clock by the ingest service). No arbitrary metadata JSON. Cross-field location rules (location requires coordinates; heartbeat forbids them) are enforced in the ingest service as `invalid_location` so the code is stable regardless of the global validation handler.
session_idstring (uuid) | nullnoTracking session id returned by POST /v1/tracking/sessions. A device credential from one session cannot write to another.uuid
subjectPublicSubjectRef | nullno
json
{
  "event": {
    "type": "location",
    "latitude": 30.0444,
    "longitude": 31.2357
  },
  "session_id": "ses_01HX9Z6Q3M",
  "subject": {
    "type": "vehicle",
    "id": "veh-1042"
  }
}
Minimal valid body

Request example

shell
curl -X POST "https://api.bardiyamap.com/v1/tracking/events" \
  -H "Authorization: Bearer $BARDIYA_TRACKING_KEY" \
  -H "Content-Type: application/json" \
  --data '{"event":{"type":"location","latitude":30.0444,"longitude":31.2357},"session_id":"ses_01HX9Z6Q3M","subject":{"type":"vehicle","id":"veh-1042"}}'

Response 200 · TrackingIngestResponse

FieldTypeRequiredNotes
acceptedbooleanyes
duplicatebooleannodefault false
history_writtenbooleannodefault false
position_updatedbooleannodefault false
received_atstring (date-time) | nullnodate-time
state_updatedbooleannodefault false
state_versioninteger | nullno
json
{
  "duplicate": false,
  "history_written": false,
  "position_updated": false,
  "state_updated": false
}
Example response

Errors

StatusMeaning
401Authentication failed
403Required scope is missing
404Resource not found or is not visible to this tenant
409Conflict or idempotency error
422Validation Error
503Public transport is temporarily unavailable

Error bodies use the shared envelope documented in Errors: { "error": { "code", "message", "details", "request_id" } }.

POST /v1/tracking/events is part of the Tracking group. Values on this page are generated from contract version 1.1.0.