Issue a session-scoped device ingest token
POST /v1/tracking/sessions/{session_id}/ingest-token · Authorization: Bearer
/v1/tracking/sessions/{session_id}/ingest-tokenIssue a session-scoped device ingest token
PROD-04 producer flow: exchanges an organization API key (tracking:write) for a session-scoped ingest credential intended for a mobile PRODUCER device. The plaintext token is returned exactly once; it authorizes ingest to THIS session only and grants no read, management, or cross-session capability. Delegates to the existing credential service.
- Credential
Authorization: Bearer- Plane
https://api.bardiyamap.com- Operation id
issueIngestToken
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 |
Request example
curl -X POST "https://api.bardiyamap.com/v1/tracking/sessions/ses_01HX9Z6Q3M/ingest-token" \
-H "Authorization: Bearer $BARDIYA_TRACKING_KEY"Response 200 · TrackingCredentialResponse
| Field | Type | Required | Notes |
|---|---|---|---|
ingest_credential | string | yes |
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/sessions/{session_id}/ingest-token is part of the Client Tokens group. Values on this page are generated from contract version 1.1.0.
