curl --request POST \
--url http://0.0.0.0:3000/v1/webhooks/smartthings \
--header 'Content-Type: application/json' \
--data '
{
"messageType": "EVENT",
"events": [
{
"deviceEvent": {
"deviceId": "device-uuid-123",
"componentId": "main",
"capability": "switch",
"attribute": "switch",
"value": "on"
}
}
]
}
'{
"status": "ok"
}Receives events from SmartThings cloud. Handles CONFIRMATION challenge-response and EVENT messages.
curl --request POST \
--url http://0.0.0.0:3000/v1/webhooks/smartthings \
--header 'Content-Type: application/json' \
--data '
{
"messageType": "EVENT",
"events": [
{
"deviceEvent": {
"deviceId": "device-uuid-123",
"componentId": "main",
"capability": "switch",
"attribute": "switch",
"value": "on"
}
}
]
}
'{
"status": "ok"
}