The TTN API documentation gives the following example of a downlink to the end device dev1 of the application app1 using the webhook wh1.
curl --location \
--header 'Authorization: Bearer NNSXS.XXXXXXXXX' \
--header 'Content-Type: application/json' \
--header 'User-Agent: my-integration/my-integration-version' \
--request POST \
--data '{"downlinks":[{
"frm_payload":"vu8=",
"f_port":15,
"priority":"NORMAL"
}]
}' \
'https://thethings.example.com/api/v3/as/applications/app1/webhooks/wh1/devices/dev1/down/push'
I've tried to enter that information into my ThingHTTP, using my own parameters for dev1, app1, wh1 etc, including the Authorisation header with the bearer key from TTN and the Content-Type header. I do not know what to insert for the User-Agent header, so left that out.
I tried sending the command from a CMD window in Windows 11, using curl as below, but I get a "-1" response, indicating a failure, and TTN does not receive the downlink either...
Maybe the User-Agent header is essential .
Any suggestions?
curl "https://api.thingspeak.com/apps/thinghttp/send_request?api_key=my-api-key"