Skip to main content

Managing API tokens

API tokens can be used as an authentication mechanism for Infrahub's REST- and GraphQL API, the Python SDK and infrahubctl.

  1. Login to Infrahub's web interface as an administrator.
  2. Click on the user in the left side menu.
  3. Navigate to the Account settings.
  4. In the user profile page, click on Tokens tab. Profile Tokens
  5. Click + Add Account Token. Creating an API Token
  6. Fill in the details and click Save.
  7. Copy the generated token and store in a safe location. Copy API Token
  8. Deleting a token can be achieved by selecting the trash icon on the token table item.