Upload BLE scan packets
POST/api/v1/gateways/:gatewayId/packets
Accepts a batch of BLE scan packets and queues them for async processing. The backend does not validate packet content synchronously — it checks only schema validity and authentication. Deduplication, anomaly detection, and storage happen asynchronously.
A required field that is missing or null fails the whole batch with 400
invalid_payload. A field that is present but unusable drops only that
packet, and the batch is still accepted with 202: an rssi of 0, a
latitude or longitude of 0, or a packet or location timestamp that
is 0 or out of range. Dropped packets are not reported back to the
gateway.
A gateway an administrator has disabled is refused with 403
gateway_disabled. Disabling also revokes its tokens, so it normally
sees 401 token_revoked first; the 403 is what it gets if a token
survived. Uploads can still be accepted for up to 30 seconds
after a disable.
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 429
- 500
- 503
Batch accepted and queued for processing.
Invalid request.
Invalid or expired credentials.
Gateway is disabled.
Gateway not found (gateway_not_found): the path gatewayId is not a
UUID, does not match the gateway the bearer token was issued to, or has
no registration. Not retryable.
Rate limited.
Unexpected server fault.
Service temporarily unavailable.