v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1438212159.2 KB

Creates a personal access token (PAT) for the current user. A personal access token (PAT) is similar to a password. It is associated with your user identity for use across all spaces and projects in Amazon CodeCatalyst. You use PATs to access CodeCatalyst from resources that include integrated development environments (IDEs) and Git-based source repositories. PATs represent you in Amazon CodeCatalyst and you can manage them in your user settings.For more information, see <a href="https://docs.aws.amazon.com/codecatalyst/latest/userguide/ipa-tokens-keys.html">Managing personal access tokens in Amazon CodeCatalyst</a>.

put/v1/accessTokens

Request body

namestring required

The friendly name of the personal access token.

expiresTimestring date-time

The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in <a href="https://www.rfc-editor.org/rfc/rfc3339#section-5.6">RFC 3339</a>.

Response

Success

secretstring password required

The secret value of the personal access token.

namestring required

The friendly name of the personal access token.

expiresTimestring date-time required

The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in <a href="https://www.rfc-editor.org/rfc/rfc3339#section-5.6">RFC 3339</a>. If not specified, the default is one year from creation.

accessTokenIdstring required

The system-generated unique ID of the access token.

All 38 operations