API returns 'Not Found' even when I can see it in Spark build [SOLVED]


I have just connected my first spark core and it was a breeze to make it work with my Android and to see it in spark build.

I can see it ‘breezing’ cyan also.

Next I wanted to check the API so I did:

curl ‘https://api.spark.io/v1/devices/121323131’ -d ‘access_token=1123123123123123’

Where the device_id and the access_token are copy/pasted from spark build
And I always get:
Not Found

I’ve tried reseting the access token, using the device name instead of id, not use single quotes in the command. Nothing worked.

Any idea of what I am missing?

Try this instead:
curl ‘https://api.spark.io/v1/devices/121323131?access_token=1123123123123123

This is using the wildcard ‘?’ Instead of ‘-d’ and also including it in the string. Best of luck!

1 Like

Right on.
Thank you very much. This works perfectly!

1 Like