Until recently, Particle users were able to access their User Access Token from the Web IDE. In the interest of security, we have removed this display. We encourage our users to generate and manage access tokens using the Particle CLI or directly via our Cloud API.
- Using the Particle CLI.
First, install the Particle CLI if you have not already done so. For macOS, open a terminal and run:
bash <( curl -sL https://particle.io/install-cli )For Windows, download the installer here: Windows CLI Installer
Further, more detailed instructions can be found here: https://docs.particle.io/tutorials/developer-tools/cli/.
Once you have the CLI installed, open up your command line (for macOS, the Terminal, for Windows, cmd.exe) and use the following command to log in:
particle loginYou can then list your current tokens with:
particle token listand create a new token with:
particle token create
- Using the Cloud API
Follow the instructions here: Cloud API Reference.
For controlling your user access token, pass particle:particle as your authorization header. See the cURL example below:
$ curl https://api.particle.io/oauth/token \and pass your Particle Username and Password as request arguments.
-u particle:particle \
-d grant_type=password \
-d "email@example.com" \
Note, users can still quickly grab an access token by going to https://console.particle.io/events and selecting the "View Events from a Terminal" button. However, this token will expire in 15 minutes.