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
Agility presents Personal Access Tokens that allow developers to access our Management API programatically without needing OAuth credentials.
Personal Access Tokens (PATs) let you authenticate with the Management API without a browser sign-in. They're meant for scripts, CI/CD pipelines and other automation, including the Agility CLI. Each PAT acts as the user who created it, with that user's permissions on every Agility instance they can reach. A token expires on the date you set, at most two years after you create it, and each user can have up to 10 active tokens. A token is tied to the user who created it: when that user is suspended or removed, their tokens stop working.
Create and manage your tokens in Agility: select your avatar in the top-right corner, then Personal Access Tokens. You need the Develop or Manage permission on the instance you have open to see it. Step by step: Manage Personal Access Tokens in Agility.
To do it from a terminal instead, see Create a Personal Access Token with the API. The endpoints are also listed under Personal Access Tokens in the Management API reference.
Send the token in the Authorization header as Bearer <your token>. The Agility CLI takes it as --token or the AGILITY_TOKEN environment variable, and the Management SDKs take it as the access token. Store it as a secret: anyone who has it can act as you.