Skip to main content

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 Content
Link 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".

Creating a new Personal Access 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).

If the token is not created by an organization admin, then the request is sent for approval

Approving a token creation request
Link 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.

If the token is not created by an organization admin, then the request is sent for approval

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.

The token is shown in the list, but is only available once approved

Using PATs in the CLI tool
Link 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.

dc-cli content-type-schema export exportedSchemas  --hubId 6452aa021a7f3574f598716f  --patToken amp_pat_0VDv5arwRUK7PmNWYZIOrQ…

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.

dc-cli configure --patToken amp_pat_0VDv5arwRUK7PmNWYZIOrQ… --hubId 6452aa021a7f3574f598716f

Personal access tokens

Content Management API

Graph QL Asset Management API

CLI tool