> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Tailscale with Access Token – StackOne Hub

> Link a Tailscale account in the StackOne Hub using Access Token. End-user guide to authorize the integration and start using Tailscale actions.

> [!WARNING]
>
> Only an Owner, Admin, IT admin or Network admin can generate an API access token. The token has the same permissions as the user who generates it, and Tailscale offers no scopes to narrow it, so it can also change users. The OAuth 2.0 option limits access with scopes.

## Generate the API access token

An API access token, sometimes called an API key, carries the permissions of the user who generates it.

**1. Sign in to Tailscale**

Sign in to your [Tailscale admin console](https://console.tailscale.com/admin) as an IT admin.

<ul>
  <li>IT admin is the smallest role that covers this connector. It reads users and the policy file and manages users, invitations and devices. It cannot change the policy file, DNS or billing.</li>
  <li>If your plan has no IT admin role, sign in as an Admin.</li>
  <li>Do not use a Network admin. Tailscale lets only an Owner, Admin or IT admin manage invitations, and the connection test lists pending invitations.</li>
  <li>Open the [Keys](https://console.tailscale.com/admin/settings/keys) page under **Settings**.</li>
  <li>In the **API access tokens** section, select **Generate access token…**.</li>
</ul>

![Keys page with the Generate access token button highlighted](https://mintcdn.com/stackone-60/c0md3ZSNHpxXiWCq/connectors/tailscale/images/custom-config-keys.png?fit=max\&auto=format\&n=c0md3ZSNHpxXiWCq\&q=85\&s=c92ad5aadf380d5135d32314bb77cf04)

**2. Set the description and expiration**

In the **Generate API access token** dialog, enter a **Description** you will recognize, such as `StackOne Integration`. Set **Expiration** to the number of days the token stays valid, then select **Generate access token**.

<ul>
  <li>Tailscale accepts 1 to 90 days.</li>
  <li>When the token expires, the connection stops working until you paste a new token into StackOne Hub. Set a reminder to replace it before then.</li>
</ul>

![Generate API access token dialog with Description, Expiration and the Generate access token button highlighted](https://mintcdn.com/stackone-60/c0md3ZSNHpxXiWCq/connectors/tailscale/images/custom-config-generate-dialog.png?fit=max\&auto=format\&n=c0md3ZSNHpxXiWCq\&q=85\&s=92037179c5211eeda49672a3ced3cc84)

**3. Copy the token**

In the **Generated new key** dialog, copy the token with the copy button, store it securely for use later, then select **Done**.

<ul>
  <li>The token is only displayed once and cannot be retrieved later. If you do not copy it, generate a new token.</li>
  <li>The token starts with `tskey-api` and is case-sensitive.</li>
  <li>Paste it into the **API Access Token** field in StackOne Hub.</li>
</ul>

![Generated new key dialog with the copy button highlighted and the token masked](https://mintcdn.com/stackone-60/c0md3ZSNHpxXiWCq/connectors/tailscale/images/custom-config-generated-key.png?fit=max\&auto=format\&n=c0md3ZSNHpxXiWCq\&q=85\&s=fd667f4d882d7a7dbdf61ccf692439ee)

## Revoke the token

To stop StackOne from reading your tailnet before the token expires, revoke it.

**1. Select Revoke**

On the [Keys](https://console.tailscale.com/admin/settings/keys) page, in the **API access tokens** section, select **Revoke…** next to the token.

![API access tokens list with Revoke highlighted for one token](https://mintcdn.com/stackone-60/c0md3ZSNHpxXiWCq/connectors/tailscale/images/custom-config-revoke.png?fit=max\&auto=format\&n=c0md3ZSNHpxXiWCq\&q=85\&s=9ddbf30e0ffebfe47f72957fbb2ad826)

**2. Confirm the revocation**

Select **Revoke key**.

<ul>
  <li>Recently expired and revoked tokens stay listed on the Keys page.</li>
</ul>

![Revoke dialog with the Revoke key button highlighted](https://mintcdn.com/stackone-60/c0md3ZSNHpxXiWCq/connectors/tailscale/images/custom-config-revoke-confirm.png?fit=max\&auto=format\&n=c0md3ZSNHpxXiWCq\&q=85\&s=5af487cbe9c495f0b815fc74e030ba47)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/tailscale/guides/webhook-setup.md)
>
> Configure receiving Events for Tailscale into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.