Hi all,
I started working with Smart things a couple of days ago so I am not fully on it yet!
I am trying to connect my dryer to start/stop it through Cloud smart things. Therefore I am trying to register a webhook by operating a POST at api . smartthings. com / v1 / apps
My headers are Authorisation: Bearer token
and Content-type: application/json; charset=utf-8
The body is:
{
"appName": "ecohome",
"displayName": "ecohome",
"description": "ecohome",
"appType": "WEBHOOK_SMART_APP",
"webhookSmartApp": {
"targetUrl": "https://5a87f490.ngrok.io"
}
}
The post request returns the following:
{
"requestId": "7758B79A-8743-484D-95C0-473C8CF546BB",
"error": {
"code": "ConstraintViolationError",
"message": "The request is malformed.",
"details": [
{
"code": "TargetTimeoutError",
"target": "https://5a87f490.ngrok.io",
"message": "Upstream target timed out",
"details": []
}
]
}
}
I am not sure what is happening really. Should the post return the PING challenge? And if yes why isn’t it? Apologies if I am doing some obvious mistake but I would appreciate the help!