How to publish downlink payload on ttn using API

Hi Everyone,

I want to send downlink payload via TTN. I am using the downlink_url received in uplink payload as follows,

(https://integrations.ttn.thingsconnected.net/ttn/api/v2/down/test-device/test-receive?key=ttn-account-v2.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)

The sample payload I am sending is as follows,

{“port”:1,“payload_raw”:“MDE=”,“confirmed”:true,“dev_id”:“1111111111111111”}

I am getting following response in return,

{“code”:405,“error_description”:“Method Not Allowed”};

How can I submit downlink payload to TTN successfully.

Thanks

Make sure you are doing a HTTP POST or PUT. you may be invoking a ‘GET’

RE: https://www.thethingsnetwork.org/docs/applications/http/

1 Like

I had already tried HTTP POST and PUT both. I also tried changing URL to
https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/test-device/test-receive?key=ttn-account-v2.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

but it returns me
{“code”:404,“error_description”:“Not Found”};