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

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

> [!WARNING]
>
> Creating an API client needs the API clients area of Workspace admin. If you cannot open it, ask whoever manages your Workato workspace to create the client for you.

## Find your data center

The **Data center** is the region your Workato workspace runs in. A token works only against\
the data center that holds the workspace, so pick the one that matches the address you sign\
in to.

<ul>
  <li>Sign in to Workato and read the host in your browser's address bar.</li>
  <li>`app.workato.com`: select `US`</li>
  <li>`app.eu.workato.com`: select `EU`</li>
  <li>`app.jp.workato.com`: select `JP`</li>
  <li>`app.sg.workato.com`: select `SG`</li>
  <li>`app.au.workato.com`: select `AU`</li>
  <li>`app.il.workato.com`: select `IL`</li>
  <li>`app.uk.workato.com`: select `UK`</li>
  <li>`app.kr.workato.com`: select `KR`</li>
  <li>`app.workatoapp.cn`: select `CN`</li>
  <li>`app.trial.workato.com`: select `Self-service (Trial)`, used by Workato Free and trial workspaces</li>
  <li>Copy the matching region into StackOne Hub.</li>
  <li>On a Workato Free or trial workspace, creating the client role and the API client works exactly as it does on every other data center - only the data center differs.</li>
</ul>

## Create a client role

A client role lists the endpoints a token is allowed to call. Create one first, because every\
API client has to be assigned a role when you create it.

**1. Create the client role**

Sign in to your [Workato workspace](https://app.workato.com/users/sign_in) at the address\
of your data center, then open the client roles list. The navigation down the left of the\
workspace is collapsed to icons with no labels, so widen it to read the labels and pick\
**Workspace admin**:

<ul>
  <li>Go to **Workspace admin** > **API clients** > **Client roles**. You are in the right place when the page is titled **Workspace admin** and shows the tabs **Access control**, **API clients** and **Settings**.</li>
  <li>Select **Add client role**.</li>
  <li>Select the pencil next to **New client role** and enter a name such as `StackOne Integration`.</li>
</ul>

![The Client roles tab of Workspace admin with the Add client role button highlighted](https://mintcdn.com/stackone-60/MX2FUFzHYlUafww1/connectors/workato/images/custom-config-add-client-role.png?fit=max\&auto=format\&n=MX2FUFzHYlUafww1\&q=85\&s=316e6fc8ef736fb157171f91ab14213b)

**2. Select the endpoints the role allows**

Endpoints are grouped under **Projects**, **Tools** and **Admin**. Open a group and tick\
the endpoints the actions you use need. Each action names the endpoint it calls in its\
description, so tick those and leave the rest clear.

<ul>
  <li>Under **Admin** > **Workspace collaborators** > **Collaborators**, tick **Get collaborators** `GET /api/members`. The connection test calls this endpoint.</li>
  <li>Under **Admin** > **Workspace details** > **Workspace details**, tick **Get details** `GET /api/users/me` to read the workspace the token belongs to.</li>
  <li>Tick any other endpoint an action you use calls.</li>
  <li>Select **Save changes**.</li>
</ul>

![The Collaborators group expanded on the Admin tab with the Get collaborators endpoint highlighted](https://mintcdn.com/stackone-60/MX2FUFzHYlUafww1/connectors/workato/images/custom-config-client-role-endpoints.png?fit=max\&auto=format\&n=MX2FUFzHYlUafww1\&q=85\&s=d37f335a19cb3a623cf70073a300a664)

## Create an API client

The API client holds the token. Assign it the client role you created, then copy the token it\
generates.

**1. Create the API client**

Go to **Workspace admin** > **API clients** > **API clients**, then select\
**Create API client** and fill in the form. **Workspace admin** is the same page used for\
the client role, reached the same way from the widened left navigation:

<ul>
  <li>**Name**: any name that says what the client is for, for example `StackOne Integration`</li>
  <li>**Client role**: the role you created</li>
  <li>**Project access**: **All projects**, or the projects this token should reach</li>
  <li>**Allowed IPs**: leave empty unless you restrict requests to known addresses</li>
  <li>Select **Create client**.</li>
</ul>

![The Create a new API client form showing the Name, Client role and Project access fields](https://mintcdn.com/stackone-60/MX2FUFzHYlUafww1/connectors/workato/images/custom-config-create-api-client.png?fit=max\&auto=format\&n=MX2FUFzHYlUafww1\&q=85\&s=587f2ec96ed3a0842e682df20a9ccc5f)

**2. Copy the API token**

Workato shows the token as soon as the client is created, in a dialog titled\
**API client successfully created!** carrying an **API token** field and a **Copy**\
button. Take the token from that dialog before you close it:

<ul>
  <li>Select **Copy** next to **API token**.</li>
  <li>Copy the **API token** into StackOne Hub.</li>
  <li>Select **Done**.</li>
  <li>The dialog warns that you will not be able to view the token again. If it is lost you have to regenerate a new one.</li>
</ul>

**3. Generate a new token for an existing client**

Only needed when you are working with a client that already exists, or when the token was\
lost. Open the client from **Workspace admin** > **API clients** > **API clients**, then\
select the regenerate icon next to **Cancel** and confirm with **Regenerate token**. The\
same **API token** field and **Copy** button appear.

<ul>
  <li>Regenerating stops API calls that use the previous token, so update them with the new one.</li>
</ul>

![The Regenerate API token dialog with the API token field and Copy button, token value hidden](https://mintcdn.com/stackone-60/MX2FUFzHYlUafww1/connectors/workato/images/custom-config-api-token.png?fit=max\&auto=format\&n=MX2FUFzHYlUafww1\&q=85\&s=d48dcfd4e3fa1f8f2bae00b99e21ba72)

## 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).


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