Skip to main content
A personal access token acts with your own Harness permissions and stops working if you lose access or leave. For shared or long-running connections, use a service account token instead.

Create an API key

Any Harness user can create personal API keys from their profile.

1

Open your profile

Sign in to your Harness account, then click your name at the bottom of the left navigation.

The Harness left navigation with the user profile entry at the bottom highlighted
2

Open API keys

Select the API Keys tab.

The profile page with the API Keys tab highlighted
3

Add an API key

Under My API Keys, click + API Key.

  • Name: StackOne Integration
  • Click Save.
The My API Keys list with the + API Key button highlighted

Generate the personal access token

Tokens belong to an API key. Generate one from the key you just created.

1

Create a token

On the StackOne Integration key, click + Token and fill in the New Token dialog.

  • Name: StackOne Integration
  • Choose an Expiration. The connection stops working when the token expires, so pick a period that suits you.
  • Click Generate Token.
The New Token dialog with the Name field, the Expiration dropdown and the Generate Token button highlighted
2

Copy the token

Click the copy icon next to Value to copy the token, then click Close.

  • The token starts with pat..
  • The token value is only displayed once and cannot be retrieved later. Store it securely for use later.
  • Paste it into the Personal Access Token field in StackOne Hub.
The generated token with its value hidden, and the copy icon and Close button highlighted

Linking the Account from the Hub

1

Navigate to the Hub

Use one of the three Linking Account Methods to access the Hub.
2

Fill out the fields

Fill out the following fields using details from your provider:
  • Personal Access Token
3

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

If the account linking is successful, you will see the newly linked account in your Accounts page.