I’m trying to work out the flow of data when creating a new OTAA device via the API.
So far, it seems to be that I should call
GET /devices to confirm that the device name/devEui is unique, then
POST /devices to create the device.
I then need to add the AppKey for that particular device, so should I be calling
POST /devices/<DEV EUI>/keys?
I’ve got a Python script that should do this, however it fails at the final step saying that it can’t find the device, even though the
GET /devices shows the device as existing.