HTTP API not finding Core

Hi there,

I’m new to playing with the HTTP API and am having trouble getting a response from my Core. I can see it is active in the web IDE and flash it from there as well. When I make a request for a list of devices (https://api.spark.io/v1/devices), I get “Not Found”. When I append either of my Core ids to the same, I get the same.

Thinking I was doing something wrong, I attempted to use the following web ui (http://jflasher.github.io/spark-helper/) and get errors as well.

Any suggestions would be appreciated.

Thanks,
-P

@penumbra,

Using the Web IDE, do you see the core listed in your account?

I do - and it notes it as currently active.

Can you try: https://api.spark.io/v1/devices?access_token=xxxxxx

Or even: http://api.spark.io/v1/devices/device_id?access_token=core_access_token

Which should return a JSON output, but only if the Core is turned on and connected.

2 Likes