How to Create an API Token
Instructions on how to create an API token
Last updated
Was this helpful?
Instructions on how to create an API token
Last updated
Was this helpful?
Choose "API Tokens", under API Tools in the left-hand navigation in the WebApp. The first time you create a token you will see the screen below.
Enter the name for your token and click "Create Token".
In the next screen choose "Copy Token". This copies the token to the clipboard. You can now paste it into another application.
Remember: You MUST save the token somewhere such as in a password manager, as you won't be able to see it again.
Now that you have an API token, you can call the API. See PredictHQ Technical documentation for more details.
In the guides where you see Authorization: Bearer $ACCESS_TOKEN
replace $ACCESS_TOKEN
with your token. For example, see our API Quickstart.
You can also use the API Explorer feature of Control Center to explore the capabilities of the API.
Once you've created a token you will see the screen below that lists shows a list of tokens. From this screen, you can delete tokens, view token scopes, and edit the token name.
To delete click on the delete icon
To edit a tokens name click on the edit icon
To create another token click on "Create New Token"
We previously supported the concept of API Clients. These were removed in July 2024. We found that API Clients weren't being used, weren't necessary for using PredictHQ's APIs, and added complexity to the process of creating a token.
For users who previously created API clients, these will be listed in the tokens screen. In the name of each token if the token was created before the change to remove the API Clients option then the API Client name displays in the token name field. The API Client displays in a regular font before the "|" character. Then the API Token name displays in the 2nd part of the API Token name field after the "|" character. Like this:
API Client name | API Token name
The API Clients are still present in the database. Please contact us if you have any issues with this change to remove API Clients.