Creating PATs in Dynamic Content
Release date: 9th April 2025
Personal access tokens (PATs) are a self service alternative to using an API key and secret for authorizing access to the Dynamic Content Management API and GraphQL Asset Management API. You can now create and manage PATs using Dynamic Content, even if you are not an organization admin.
In this release we've also updated the CLI Tool so that PATs can be used instead of an API Key and secret.
Creating a PAT in Dynamic ContentLink copied!
To create a PAT in Dynamic Content, choose "Personal Access Tokens" from the Development menu, give the token a name, and click "Create token".
There is a limit of 5 PATs per user per organization. If you are an organization admin and don't already have 5 tokens added in this account, then the token will be created immediately and be available for use in API requests. If you're not an organization admin, then the token creation request will be sent to your admin for approval.
Ensure that you copy the token because you won't be able to access it again. (Note that the token shown in the image below is not an active token).
Approving a token creation requestLink copied!
If a user who is not an organization admin creates a token, the request is sent for approval. When the organization admin logs into Account Management, the request is shown under the approvals tab.
Once approved, the token is shown in the list, together with any tokens you previously created, and is available to use with the Dynamic Content Management API, Graph QL Asset Management API or the CLI tool.
Using PATs in the CLI toolLink copied!
You now have a choice of how to authenticate commands using the CLI tool, either using an API key and secret, or a PAT.
To use a PAT instead of an API key and secret, include the token in a command using the --patToken
parameter, as shown in the content type schema export command below. The PAT shown in this example is truncated.
The PAT can either be included on the command line or read from the configuration file. You can write the PAT to a configuration file as follows.