Authentication

Keep the intruders out!

In order to securely send the data to the API, when you create a device, it is automatically assigned a Device ID as well as a Device Token (keep this one secret!).

To authenticate your device, you'll need to send the Device Token as the Bearer Token when sending the request.

If you're using The Things Network, first create a webhook to POST the data to the API (under Integrations > Webhooks), with the following configuration (replace "device-id" with the device's ID).

Then scroll down and click on "+ Add header entry", then copy the following configuration:

Webhook authentication header

Make sure to replace DEVICE_TOKEN with your device's token.

That's all for authentication! Simple yet powerfully secure!

Last updated