> ## 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 Twingate with API Token – StackOne Hub

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

> [!WARNING]
>
> Sign in as an Admin of your Twingate network. Only an Admin can generate tokens under **Settings** > **API**, and a token belongs to that one network.

## Find your Network name

The **Network** is the host name of your Twingate Admin Console: your network name, then the region when your address has one, then `twingate.com`.

**1. Copy the network host**

Sign in to your Twingate Admin Console. The network host is shown under your network name on the **Network** overview, and in the browser address bar.

<ul>
  <li>Format: `{network}.{region}.twingate.com` or `{network}.twingate.com`</li>
  <li>Example: `acme.us1.twingate.com`</li>
  <li>Example without a region: `acme.twingate.com`</li>
  <li>Keep the region, such as `us1`, when your host shows one.</li>
  <li>Leave out the scheme at the start and anything after `twingate.com`.</li>
  <li>Paste it into the **Network** field in StackOne Hub.</li>
</ul>

![The Twingate Network overview with the network host stackone.us2.twingate.com highlighted](https://mintcdn.com/stackone-60/phTSONkQddhoTyuP/connectors/twingate/images/custom-config-network-host.png?fit=max\&auto=format\&n=phTSONkQddhoTyuP\&q=85\&s=f7ea649b3be3c2063cf99938631b2927)

## Create the API token

A Twingate API token belongs to one network and can do only what its permission level allows.

**1. Sign in to Twingate**

Sign in to your Twingate Admin Console at `https://{network}.twingate.com` as an Admin.

<ul>
  <li>Navigate to **Settings** > **API**.</li>
</ul>

![The Settings menu with API highlighted](https://mintcdn.com/stackone-60/phTSONkQddhoTyuP/connectors/twingate/images/custom-config-api-settings.png?fit=max\&auto=format\&n=phTSONkQddhoTyuP\&q=85\&s=cf238cc6a2641ca6b386570012594641)

**2. Start a new token**

On the **API** page, click **Generate Token**.

![The API page with the Generate Token button highlighted](https://mintcdn.com/stackone-60/phTSONkQddhoTyuP/connectors/twingate/images/custom-config-generate-token.png?fit=max\&auto=format\&n=phTSONkQddhoTyuP\&q=85\&s=6b9cbcfde2659fcc3fecb4c8b0c8a8ce)

**3. Name the token**

In the **Generate Token** window, enter a **Label**.

<ul>
  <li>Label: `StackOne Integration`</li>
</ul>

![The Generate Token window with the Label field highlighted](https://mintcdn.com/stackone-60/phTSONkQddhoTyuP/connectors/twingate/images/custom-config-token-label.png?fit=max\&auto=format\&n=phTSONkQddhoTyuP\&q=85\&s=7c864cf2f99f25a097787a71c21feb09)

**4. Choose the permission level**

Open **Permission Level** and pick the level for the actions you plan to use. The levels are nested, so each one includes the ones before it.

<ul>
  <li>**Read only** — Only read requests allowed. Enough for the list and get actions only.</li>
  <li>**Read & Write** — Create & modify requests allowed. Needed for the create, update, delete, approve, reject, block and archive actions.</li>
  <li>**Read, Write, & Provision** — Generate Connector token requests allowed. Needed to generate Connector tokens and to create Service Account keys, and the only level that covers every action in this connector.</li>
</ul>

![The Permission Level list showing Read only, Read & Write, and Read, Write, & Provision](https://mintcdn.com/stackone-60/phTSONkQddhoTyuP/connectors/twingate/images/custom-config-permission-level.png?fit=max\&auto=format\&n=phTSONkQddhoTyuP\&q=85\&s=82907e9c193852639522349491569557)

**5. Set allowed ranges and generate**

**Allowed Ranges** defaults to `0.0.0.0/0, ::/0`, which allows requests from any address.

<ul>
  <li>To limit the token to StackOne, replace the default with [StackOne's IP addresses](https://docs.stackone.com/gateway/concepts/connector-profiles.md#connection-issues-behind-a-firewall), separated by commas. A request from any other address fails authentication.</li>
  <li>Click **Generate**.</li>
</ul>

![The Generate Token window with Permission Level, Allowed Ranges and the Generate button highlighted](https://mintcdn.com/stackone-60/phTSONkQddhoTyuP/connectors/twingate/images/custom-config-generate.png?fit=max\&auto=format\&n=phTSONkQddhoTyuP\&q=85\&s=f79a37695a1a211fe1cb9de3d4054dfc)

**6. Sign in again if asked**

Twingate may show **Please sign in again to verify your account** before it creates the token.

<ul>
  <li>Sign in again with the same Admin account. Twingate then creates the token.</li>
  <li>If the **Copy Token** window does not open after you sign in, check the token list. When the new token is listed, delete it and click **Generate Token** again.</li>
</ul>

![The Twingate sign-in page with the message Please sign in again to verify your account](https://mintcdn.com/stackone-60/phTSONkQddhoTyuP/connectors/twingate/images/custom-config-sign-in-again.png?fit=max\&auto=format\&n=phTSONkQddhoTyuP\&q=85\&s=061e285ca599afdcc37d1d850296e7f3)

**7. Copy the token**

The **Copy Token** window shows the new token. Hover over it, click **Copy**, and store it securely for use later.

<ul>
  <li>The token is shown once and cannot be retrieved later. Copy it before you close the window.</li>
  <li>Paste it into the **API Key** field in StackOne Hub.</li>
  <li>Click **Close**.</li>
</ul>

![The Copy Token window with the token hidden](https://mintcdn.com/stackone-60/phTSONkQddhoTyuP/connectors/twingate/images/custom-config-copy-token.png?fit=max\&auto=format\&n=phTSONkQddhoTyuP\&q=85\&s=051fd8cd6b2fcddca1d46a04f5e364c5)

## Native Webhook URL

The **Native Webhook URL** field in StackOne Hub is filled in by StackOne after the account is linked. You don't enter anything in it. It is only needed if you send Twingate notifications to StackOne, as described in the webhook setup guide.

## Disable or replace the token

To stop StackOne from using your network, disable the token. You can enable it again later.

**1. Disable the token**

Navigate to **Settings** > **API** and open the menu at the end of the token's row.

<ul>
  <li>Click **Disable Token**, or **Delete Token** to remove it for good.</li>
  <li>To replace the token, generate a new one with the same settings, paste it into the **API Key** field in StackOne Hub, then disable the old one.</li>
  <li>Twingate documents no expiry for API tokens, so the connection keeps working until you disable or delete the token or change its allowed ranges.</li>
</ul>

![The token row menu with Edit Details, Disable Token and Delete Token, and Disable Token highlighted](https://mintcdn.com/stackone-60/phTSONkQddhoTyuP/connectors/twingate/images/custom-config-disable-token.png?fit=max\&auto=format\&n=phTSONkQddhoTyuP\&q=85\&s=68fd210b9b3e4082ae43362b44bafcbd)

## 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/twingate/guides/webhook-setup.md)
>
> Configure receiving Events for Twingate into StackOne.


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