Skip to main content

Choose the account for the connection

The token acts as the Heroku account that creates it, with that account’s role in the team. A token created with the default scope can read and write everything that account can reach, so use a viewer of the team. A viewer has read-only access to the team’s resources and can still view its users and invitations.

1

Pick or add the account

Use an account that is a viewer, member or admin of the Heroku Team you want to connect.

  • If the team uses single sign-on, use an account created directly in Heroku and added to the team.

Create the API token

Heroku creates long-lived tokens from the Heroku CLI.

1

Create the token

Create the token in the Heroku CLI.

  • Run heroku login and sign in as the account you chose.
  • Run heroku authorizations:create -d "StackOne" -S. It prints only the token.
2

Copy the token

Copy the API Key across. The token does not expire. Revoking it with heroku authorizations:revoke disconnects the connection.

Find the team name

Check which Heroku Teams the account belongs to.

1

Copy the team name

Run heroku teams in the Heroku CLI to list the teams the account belongs to.

  • If the account belongs to more than one Heroku Team, copy the Team Name across.
  • If it belongs to only one, leave Team Name empty.
1

Connect

  • Click Connect.
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup.
2

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.