What is your developer-dependent CMS actually costing you? Calculate your costs and get a full report
What is your developer-dependent CMS actually costing you? Calculate your costs and get a full report
APIs
Create, rename, disable and delete your Personal Access Tokens in Agility, from your profile menu. Copy a new token once, then use it with the CLI, scripts and CI.
A Personal Access Token (PAT) lets the Agility CLI, your own scripts and a CI pipeline call the Management API as you, without a browser sign-in. You can create, rename, disable, enable and delete your tokens in Agility, from your profile menu. For what a token can and can't do, see Personal Access Tokens.
The list shows every token you've created, whichever instance you open it from. Each token shows when it was created, when it expires and when it was last used, and its status: Enabled, Disabled or Expired. A token that expires within seven days says so.


CI pipeline or Nightly content sync. Names are up to 100 characters, and each of your tokens needs a different name.This is the only time Agility shows the token. If you lose it, delete the token and create a new one.


With the Agility CLI, pass the token as --token or set AGILITY_TOKEN:
AGILITY_TOKEN="<your token>" agility pull --sourceGuid="<instance guid>" --headless
Your own scripts and the Management SDK send it in the Authorization header, as Bearer <your token>. For pipelines, see the CLI CI/CD Integration Guide.
Renaming doesn't change the token's value or its expiry date, so anything using it keeps working.
Hover over the token and select Disable (the pause icon). Anything using the token stops working until you enable it again with Enable (the play icon).
Disabling is useful when you think a token may have leaked, or to check that nothing still uses it before you delete it. A disabled token doesn't count towards your limit of 10 active tokens.
An expired token can't be enabled again. Create a new one.
Anything using the token stops working straight away, and you can't undo it.

| Limit | Value |
|---|---|
| Active tokens per user | 10. Disabled and expired tokens don't count |
| Longest expiry | 2 years |
| Tokens created | 5 an hour |
When you have 10 active tokens, Create Token is unavailable. Disable or delete a token you don't need first.
| What you see | What to do |
|---|---|
| Personal Access Tokens isn't in your profile menu | You need the Develop or Manage permission on the instance you have open. Open another instance, or ask an admin |
| Create Token is greyed out | You have 10 active tokens. Disable or delete one |
| An error about too many requests when you create a token | You've created 5 tokens in the last hour. Wait, then try again |
A script gets 401 with a token that used to work | The token has expired, been disabled or deleted, or the user who created it has been suspended or removed. Check its status in the list |