Chapter 1. Creating the Red Hat Automation Hub API token

Before you can interact with Automation Hub by uploading or downloading collections, you need to create an API token. The Automation Hub API token authenticates your ansible-galaxy client to the Red Hat Automation Hub server.

You can create an API token using Automation Hub Token management.


  • Valid subscription credentials for Red Hat Ansible Automation Platform.


  1. Navigate to
  2. Click Load Token.
  3. Click copy icon to copy the API token to the clipboard.
  4. Paste the API token into a file and store in a secure location.

The API token is a secret token used to protect your content. Store your API token in a secure location.

The API token is now available to use to configure Automation Hub as your default collections server or when uploading collections using the ansible-galaxy command line tool.