Send one telemetry event by subject or session
POST /v1/tracking/events · Authorization: Bearer
POST
/v1/tracking/eventsSend 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
| Field | Type | Required | Notes |
|---|---|---|---|
event | TrackingIngestEventCreate | yes | Single-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_id | string (uuid) | null | no | Tracking session id returned by POST /v1/tracking/sessions. A device credential from one session cannot write to another.uuid |
subject | PublicSubjectRef | null | no |
json
{
"event": {
"type": "location",
"latitude": 30.0444,
"longitude": 31.2357
},
"session_id": "ses_01HX9Z6Q3M",
"subject": {
"type": "vehicle",
"id": "veh-1042"
}
}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
| Field | Type | Required | Notes |
|---|---|---|---|
accepted | boolean | yes | |
duplicate | boolean | no | default false |
history_written | boolean | no | default false |
position_updated | boolean | no | default false |
received_at | string (date-time) | null | no | date-time |
state_updated | boolean | no | default false |
state_version | integer | null | no |
json
{
"duplicate": false,
"history_written": false,
"position_updated": false,
"state_updated": false
}Errors
| Status | Meaning |
|---|---|
401 | Authentication failed |
403 | Required scope is missing |
404 | Resource not found or is not visible to this tenant |
409 | Conflict or idempotency error |
422 | Validation Error |
503 | Public 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.
