Scheduling Downlinks

This section provides instructions for scheduling downlinks using HTTP Webhooks.

You can schedule downlink messages using webhooks. This requires an API key with traffic writing rights, which can be created using the Console.

In your application, select API Keys on the left menu and click the + Add API Key button. Fill in the Name and the Rights of your API key.

API key creation screen

Click on the Create API Key button in order to create the API key. This will open the API key information screen.

API key created
Make sure to save your API key at this point, since it will no longer be retrievable after you leave the page.

You can now pass the API key as bearer token on the Authorization header.

The downlink queue operation paths are:

  • For push: /api/v3/as/applications/{application_id}/webhooks/{webhook_id}/devices/{device_id}/down/push
  • For replace: /api/v3/as/applications/{application_id}/webhooks/{webhook_id}/devices/{device_id}/down/replace

For example:

$ curl \
  -X POST \
  -H 'Authorization: Bearer NNSXS.VEEBURF3KR77ZR..' \
  --data '{"downlinks":[{"frm_payload":"vu8=","f_port":15,"priority":"NORMAL"}]}'

will push a downlink to the end device dev1 of the application app1 using the webhook wh1.

You can also save the API key in the webhook configuration page using the the Downlink API Key field. The Application Server will provide it to your endpoint using the X-Downlink-Apikey header and the push and replace operations paths using the X-Downlink-Push and X-Downlink-Replace headers.