Set the following environment variables:
export API_KEY=<your-nrf-cloud-api-key>
export DEVICE_ID=<your-device-id>
On-target tests use the same key as NRFCLOUD_API_KEY. For more information, see tests/on_target/README.md.
The FOTA endpoints use the legacy nRF Cloud API key. To get your API key, complete the following steps:
- Log in at nRF Cloud.
- Go to
https://app.memfault.com/organizations/<org_slug>/nrfcloud-api-key, where<org_slug>is your organization slug. You find the slug under Project Settings > General. - Copy the API key.
- Use the key as
Authorization: Bearer $API_KEYin the following curl examples.
For more information, see the nRF Cloud REST API reference.