[SOLVED] Registered core is not returned in API list call

I received my Spark core last night. I spent two hours to add it to my account manually. Now the console shows the core, but I don’t see it in the list API response. Did I miss anything in the manual setup?

curl https://api.spark.io/v1/devices -d access_token=xxxx
“ok”: false,
“errors”: [
“arg.deviceID is empty”

curl https://api.spark.io/v1/devices/55ff74065075555353381887 -d access_token=xxxx
Not Found

I order the u.FL version and used a paper clip as the antenna. At first the core did not connect to wifi with a flashing green light. I then flashed the latest firmware via USB and manually added it to the console. The tinker app works great, but I can’t access the core via API calls…

By the way, the status of the core as shown in the console is “connected”.

To get the list of devices, you’ll want to do an HTTP GET request. When you pass the -d flag to curl, it assumes you want to make a POST request. Try curl https://api.spark.io/v1/devices/55ff74065075555353381887?access_token=xxxx instead and see if that helps.

It works. Thank you!