curl --request POST \
--url https://yourdomain.co.id/external/v1/webhook/sensor-data \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"event": "sensor.data",
"device_id": "MTI-001",
"timestamp": "2026-05-05T10:00:00Z",
"data": {
"temperature": 28.5
}
}
'{
"message": "Data received successfully"
}Webhook API
Receive Realtime Data
Endpoint ini digunakan untuk simulasi webhook di playground. Dalam produksi, Mertani akan mengirim data ke endpoint Anda.
POST
/
webhook
/
sensor-data
curl --request POST \
--url https://yourdomain.co.id/external/v1/webhook/sensor-data \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"event": "sensor.data",
"device_id": "MTI-001",
"timestamp": "2026-05-05T10:00:00Z",
"data": {
"temperature": 28.5
}
}
'{
"message": "Data received successfully"
}Authorizations
Body
application/json
Response
Success response
Example:
"Data received successfully"
Last modified on July 27, 2026