Agility CMS documentationAgility CMS documentation
OverviewEditorsDevelopersOwners & AdminsTraining GuideApps
Sign inLet's Chat
Developers
Content Fetch APIContent Sync APIContent Management APIGraphQL APICLI - Push / Pull / CloneCLI - CI/CD Integration GuideTesting on SwaggerGraphQL & Rest API FilteringAgilityCLI (Command Line Interface)Personal Access TokensContent Delivery & CDN Architecture

APIs

Personal Access Tokens

Agility presents Personal Access Tokens that allow developers to access our Management API programatically without needing OAuth credentials.

Personal Access Tokens (PATs) provide a secure way to authenticate with the Management API without requiring OAuth login flows. They're ideal for automated scripts, CI/CD pipelines, and other programmatic access scenarios. Each PAT is tied to the user who created it and inherits that user's permissions and access levels to all of that users Agility instances. 

Creating and Managing PATs

Personal Access Tokens are created and managed using the management API which are documented in the "Personal Access Tokens" section of our Management API Swagger documentation found here: https://mgmt.aglty.io/index.html

PAT Usage Rules and Limitations

Token Creation

  • Personal Access Tokens can only be created by users authenticated via OAuth.
  • A Personal Access Token cannot be used to create additional personal access tokens.
  • The token secret is displayed only once during creation and cannot be retrieved afterward.
  • Token names and expiration dates remain viewable after creation.

Token Scope and Permissions

  • Each token operates on behalf of the user who created it.
  • Tokens inherit the same permissions as the creating user.
  • Personal Access Tokens do not have separate role-based access controls.
  • If the user's permissions change, the token's access changes accordingly.

Restricted Operations

  • Personal Access Tokens cannot be used to create or update users.

Token Lifecycle

  • Maximum token lifetime is 2 years from creation date.
  • Tokens automatically expire after their expiration date.
  • Tokens can be manually invalidated by the user.
  • Expired or revoked tokens cannot be restored or renewed.

Security Considerations

  • Token secrets are sensitive credentials and should be stored securely.
  • Use environment variables or secure secret management systems to store PATs.
  • Never commit tokens to version control.
  • Regularly rotate tokens for enhanced security.
  • Revoke unused or unnecessary tokens.

Best Practices

  • Create separate tokens for different applications or purposes.
  • Use descriptive names that indicate the token's purpose.
  • Set appropriate expiration dates based on your use case.
  • Monitor token usage and revoke any tokens showing suspicious activity
← Previous
AgilityCLI (Command Line Interface)
Next →
Content Delivery & CDN Architecture
On this page
Creating and Managing PATsPAT Usage Rules and LimitationsBest Practices
Agility CMS documentationAgility CMS documentation

Documentation for the CMS built for editors, developers, and AI agents.

Docs
  • Overview
  • Editors
  • Developers
  • Owners & Admins
  • Training Guide
  • Changelog
Resources
  • Get Support
  • MCP Server
  • System Status
  • llms.txt
Agility
  • agilitycms.com
  • Start Free Trial
  • Sign in
  • Blog
© 2026 Agility Inc. All rights reserved.
Privacy PolicyTerms of Service