Headers
-
Contact team@reelables.com to get an api key.
-
Unique identifier for the API request. Example: f7ecf495-ca1c-4468-a6c2-6ee3f723fa00
Body
Required
Gateway label data payload
-
Identifier of the Gateway device. Example: 'd290f1ee-6c54-4b01-90e6-d701748f0851'
Maximum length is
50. Format should match the following pattern:^[-_A-Za-z0-9]*$. -
Cellular signal strength indicator, in decibels. Example: -30dBm
-
Temperature reported by the Gateway device, in degrees centigrade. Example: -2.1
Minimum value is
-200, maximum value is500. -
Location of the Gateway when data is sent
-
Timestamp at which the Gateway is sending the data, in UTC ISO format. Example: '2024-07-21T17:32:28Z'
-
Device battery charge level, as a percentage. Example: 42%
POST
/external/v1/label-data
curl \
--request POST 'https://api.reelables.com/gateway/external/v1/label-data' \
--header "Content-Type: application/json" \
--header "x-api-key: string" \
--header "request-id: string" \
--data '{"providerDeviceId":"d290f1ee-6c54-4b01-90e6-d701748f0851","data":{"labels":[{"bleId":34512,"macAddress":"80:EA:00:00:00:7B","data":[{"rssi":-70,"beaconPayload":"db0a03140000df91645d130004000000aabbcc016a0a717c00000001","temperature":-2.1,"battery":2832,"timestamp":"2019-07-21T17:32:28Z","rawTemperature":43558}]}]},"signalStrength":-30,"temperature":-2.1,"location":{"latitude":51.5074,"accuracy":18.5,"longitude":-0.1278},"timestamp":"2019-07-21T17:32:28Z","batteryLevel":42}'
Request examples
# Headers
x-api-key: string
request-id: string
# Payload
{
"providerDeviceId": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"data": {
"labels": [
{
"bleId": 34512,
"macAddress": "80:EA:00:00:00:7B",
"data": [
{
"rssi": -70,
"beaconPayload": "db0a03140000df91645d130004000000aabbcc016a0a717c00000001",
"temperature": -2.1,
"battery": 2832,
"timestamp": "2019-07-21T17:32:28Z",
"rawTemperature": 43558
}
]
}
]
},
"signalStrength": -30,
"temperature": -2.1,
"location": {
"latitude": 51.5074,
"accuracy": 18.5,
"longitude": -0.1278
},
"timestamp": "2019-07-21T17:32:28Z",
"batteryLevel": 42
}