Duplo supports two kinds of API tokens, temporary API tokens and permanent API tokens. For normal use cases, we recommend using a temporary API token. For CI/CD or other DevOps automation, a permanent API token is warranted.
Every time a user logs in to Duplo, a temporary API token is created for that user that only lasts for the duration of their session.
Any user can retrieve their own temporary API token from Duplo. Navigate to the User -> Profile page. Click the copy icon
in the Temporary API Token pane
Only administrators can create permanent API tokens. Permanent tokens are always associated with a specific Duplo user.
Navigate to the Administrator -> Users page. Click the username in the list, to go to a specific user's page. Click the Tokens tab.
Click the blue + Add button. Give your token a memorable name and click Create.
Click the Copy button to copy your token to the clipboard. Save it somewhere safe, you will not be able to retrieve it from Duplo later.