Pinflint BLE Developer API Reference

Base URL: https://pinflint.com · Operated by BioGrowth Merchants LLC (Tijeras, NM 87059).

90-day service period (2,160 hours); minimum order 5 units; website tracking up to 50 units; this REST API is available to accounts with 51 units or more. Orders of 500+ units use a manual quote.

All telemetry timestamps are ISO-8601 UTC. Typical BLE fix radius is ~15 m (50 ft). Values are data-field references, not hardware accuracy guarantees.

Authentication & Session Tokens

API key (51+ unit accounts): every request below uses X-API-Key: pfl_api_.... Only a SHA-256 hash of the key is stored at rest. You can create and revoke keys in My Devices.

All three endpoint groups — /api/tracking/*, /api/devices/* and /api/webhooks/* — are included with orders of 51 units or more. There is no separate platform licence.

curl -H "X-API-Key: pfl_api_your_key_here" \
  https://pinflint.com/api/tracking/location/{TAG_SERIAL}

GET /api/tracking/location/:sn

Latest deduplicated BLE fix (~15 m / 50 ft radius) in ISO-8601 UTC for a tag owned by your 51+ unit account. Requires read:location.

curl https://pinflint.com/api/tracking/location/{TAG_SERIAL} \
  -H "X-API-Key: pfl_api_your_key_here"

GET /api/tracking/trajectory/:sn — up to 200 recent points (read:trajectory).

GET /api/tracking/shipment/:shipmentId — up to 500 points, oldest first.

POST /api/devices/activate

Assigns paid, unclaimed inventory to the authenticated account and starts the 90-day service period. Batch writes keep large quantities within D1 query budgets.

curl -X POST https://pinflint.com/api/devices/activate \
  -H "X-API-Key: pfl_api_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"qty":51,"shipment_id":"SHP-9005"}'

GET /api/devices · GET /api/devices/:sn · POST /api/devices/:sn/deactivate

POST /api/webhooks

Registers an HTTPS callback for location_update, dwell_alert, route_deviation, or tamper. Registration returns a pfl_whsec_... signing secret.

curl -X POST https://pinflint.com/api/webhooks \
  -H "X-API-Key: pfl_api_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://tms.example.com/hooks/pinflint","events":["dwell_alert","location_update"]}'
Outbound POSTs include X-Timestamp and X-Pinflint-Signature: sha256=<hex>. Verify the HMAC-SHA256 signature over the timestamp and raw body before trusting an event.