For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
DocsDashboardAPI ReferenceFAQ
DocsDashboardAPI ReferenceFAQ
  • Overview
    • Welcome
    • How Does Mertani Work?
    • Integration Method
    • Authentication
    • Struktur Data
    • Daftar Sensor ID
  • External API
    • GETGet list devices
    • GETGet device sensor data
  • Webhook API
    • POSTReceive Sensor Data
Dashboard
LogoLogo
Webhook API

Receive Sensor Data

||View as Markdown|
POST
https://yourdomain.co.id/external/v1/webhook/sensor-data
POST
/external/v1/webhook/sensor-data
$curl -X POST https://yourdomain.co.id/external/v1/webhook/sensor-data \
> -H "X-API-KEY: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "event": "sensor.data",
> "device_id": "MTI-002",
> "timestamp": "2025-01-01T00:00:00Z",
> "data": {
> "sensors": [
> {
> "id": "temp",
> "value": 28.5
> },
> {
> "id": "humidity",
> "value": 80
> }
> ]
> },
> "metadata": {
> "source": "iot-device"
> }
>}'
1{
2 "message": "Data received successfully"
3}
Endpoint simulasi untuk webhook. Digunakan untuk testing payload sebelum integrasi sebenarnya.
Was this page helpful?
Previous

Get device sensor data

Built with

Authentication

X-API-KEYstring
API Key authentication via header

Request

This endpoint expects an object.
eventstringRequired
device_idstringRequired
timestampdatetimeRequired
datamap from strings to anyRequired
Flexible payload
metadatamap from strings to anyOptional

Response

Success
messagestring

Errors

401
Unauthorized Error
429
Too Many Requests Error