> For the complete documentation index, see [llms.txt](https://doc.apirodata.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.apirodata.io/integration/http-api.md).

# HTTP API

**MQTT API**

This API is used to push the data to the mqtt topic for the given device. The device should be configured as http otherwise it will throw an error

API URL : <https://apiv.apirodata.io/v0/protocol/http>

```
// Sample Payload

{
    "message": <http_msg>,
    "device_imei": <device_imei>, 
    "device_uid": <device_uid>, 
    "added_at": added_at
}
```

Explanation:

**mqtt\_msg**: This is the actual message emitted by the sensor or IoT device

**device\_imei**: Device Imei number entered while creating the device

**device\_uid**: Device UID. Get this value from the device detail section (Refer here)

**added\_at (Optional)**: Used to push the previous data. If not passed by default it will take current time
