Skip to main content
The token value is shown only once at creation and cannot be retrieved later — copy and store it securely. The token carries the permissions of the user who creates it, so use an account with the access your integration needs.

Generate a Harness API key token

Create a personal API key and token in Harness. The token is the API Key value StackOne needs.

1

Sign in to Harness

Sign in on the Harness sign-in page with your Email and Password, then click Sign in.

Harness sign-in page with the Sign in button highlighted
2

Open your Profile Overview

Click your profile icon in the bottom-left corner of the navigation, then click Profile Overview in the menu that opens.

Profile menu open with Profile Overview highlighted
3

Create a new API key

On your Profile Overview page, find the My API Keys section and click + API Key.

  • In the New API Key dialog, enter a Name for the key.
  • Click Save.
My API Keys section with the + API Key button highlighted
4

Generate a token

Click + Token under the API key you just created.

  • In the New Token dialog, enter a Name for the token.
  • Set the Expiration — the dialog shows the exact date the token will expire.
  • Click Generate Token.
Newly created API key with the + Token button highlighted
5

Copy the token value

The token Value is displayed once — “Your new token has been generated. Please make sure to copy and store your token value somewhere safe, you won’t be able to see it again.”

  • Copy the token value — it starts with pat. (for example pat.xxxx.xxxx.xxxx) — and paste it into the API Key field in StackOne Hub.
  • The token value is shown only once and cannot be retrieved later.
  • Click Close.
New Token dialog showing the generated token with the Value field and Close button highlighted

Find your account identifier

Your Account Id uniquely identifies your Harness account — StackOne needs it as the
Account Identifier.

1

Open Account Settings

Click Account Settings in the left navigation.

Left navigation with Account Settings highlighted
2

Open Account Details

On the Account Settings page, under General, click Account Details.

Account Settings page with the Account Details tile highlighted under General
3

Copy the Account Id

On the Account Overview page, copy the Account Id value and paste it into the
Account Identifier field in StackOne Hub.

  • Example: Abc123XyzQRstUVwx456yz
  • Alternatively, copy it from your browser URL after /account/ (e.g. app.harness.io/ng/account/YOUR_ACCOUNT_ID/...).
Account Overview page with the Account Id value 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:
  • API Key
  • Account Identifier
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.