TF Hub API Token
Table of Contents
Generate an API Token
To generate an API Token on the TF Hub, follow those steps:
- Go to the ThreeFold Hub
- Open the top right drop-down menu
- Click on
Generate API Token
- Take note of the token and keep it somewhere safe
Verify the Token Validity
To make sure the generated token is valid, in the terminal write the following with your own API Token:
curl -H "Authorization: bearer <API_Token>" https://hub.grid.tf/api/flist/me
You should see the following line with your own 3BotID
{"status": "success", "payload": {"username": "<3BotID>.3bot"}}
You can then use this API Token in the terminal to get and update information through the API.