Skip to main content
POST
/
v1
/
delivery
Observe a delivery
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    rightId: '<string>',
    spatialAnchorId: '<string>',
    dwellMs: 1,
    spatialPlacementId: '<string>',
    correlationId: '<string>',
    telemetry: {
      speedMph: 123,
      remoteIdActive: true,
      bvlosWaiverId: '<string>',
      voicePromptActive: true
    }
  })
};

fetch('https://sandbox.api.enfinitos.com/v1/delivery', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "receipt": {
      "version": "<string>",
      "receiptId": "<string>",
      "correlationId": "<string>",
      "spatialAnchorId": "<string>",
      "spatialPlacementId": "<string>",
      "issuedAt": "2023-11-07T05:31:56Z",
      "renderedAt": "2023-11-07T05:31:56Z",
      "dwellMs": 123,
      "nonce": "<string>",
      "witness": "<string>"
    }
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Body

application/json
rightId
string
required

The ACTIVE right being exercised (prefixed rgh_).

spatialAnchorId
string
required
Minimum string length: 1
dwellMs
number
required

Milliseconds of dwell on the surface (non-negative).

Required range: x >= 0
spatialPlacementId
string | null

Optional placement within the anchor.

correlationId
string | null

Optional correlation id for upstream tracing.

telemetry
object

Optional substrate-specific telemetry passed opaquely to the constraint evaluator. Known fields below; additional fields are accepted.

Response

The signed receipt payload and the substrate it landed on.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"