Here is a screenshot to show you the simplest way to get your token, which is a hex number, from the web IDE or Build. First you click on the little gear icon on the bottom left and this panel comes up. You then can copy the access token to use in other programs. Here I have painted over my actual token with “1234abcf…”
You can and probably do have many access tokens, not just one. If the one from the Build web IDE is not working, then it is likely that something else is wrong. A way that lots of people have had problems is by accidentally having two Particle accounts with two different emails or a typo in their email when they set it up. You can end up with you logging into to one Particle account but your devices belong to a different account.
Can you flash code from the Build web IDE over the air? If so, the web IDE token should work.
The Particle CLI is a great way to interact with your devices and manages tokens behind the scenes but you have to login with your Particle account email/password. Again if you have problems with accounts that could cause what you are seeing.
Finally the underlying web-based interface to Particle is doc’ed here:
To make sure your device works in the first place, and you can call the functions you’re trying to reach, you can give this page a try: http://jordymoors.nl/interface That’ll show you your devices, and allows you to call/request functions and variables. If that doesn’t work, then it’s probably something other than the accesstoken.