How to manage a personal token

Personal Tokens allow you to authenticate your access to interfaces and tools such as the Azion CLI and Azion API.


  1. Log in to Azion Console.

  2. In the Account Menu on the top-right corner, represented by three horizontal lines, and select Personal Tokens.

  3. Click the Add a personal token button.

  4. Fill in the required fields:

    • Personal Token name
    • Expires in. You can choose the token expiration date between 1, 7, 15, 30, 90 days, 1 year, or a custom date.
    • Personal Token description (optional)
  5. Click the Create Token button.

  6. Click the visibility icon in the Personal Token field to see your token.

  7. Click the copy token icon to copy your token.

  1. Run the following cURL command in your terminal, replacing [TOKEN VALUE] with an already existing personal token:
curl --location 'https://api.azionapi.net/iam/personal_tokens' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "One day token",
"expires_at": "2023-07-26T00:00",
"description": "example"
}'

You can also change the name, expires_at, and description fields.


To revoke your Personal Token, proceed as follows:

  1. Log in to Azion Console.
  2. In the Account Menu on the top-right corner, represented by three horizontal lines, and select Personal Tokens.
  3. Hover over the personal token item you want to delete and click the trash can icon.
  4. On the verification pop-up, type delete.
  5. Click the Delete button.

You’ll see a message confirming the deletion of your token.

Watch a video tutorial on how to manage a personal token on Azion’s YouTube channel:


Contributors