Find your data center
The Data center identifies the region where your Workato workspace runs. A token works only against the data center that holds the workspace.
- Sign in to Workato and read the address in the address bar.
app.workato.com: choose USapp.eu.workato.com: choose EUapp.jp.workato.com: choose JPapp.sg.workato.com: choose SGapp.au.workato.com: choose AUapp.il.workato.com: choose ILapp.uk.workato.com: choose UKapp.kr.workato.com: choose KRapp.workatoapp.cn: choose CNapp.trial.workato.com: choose Self-service, used by Workato Free, Workato Pro and Developer Sandbox workspaces- Virtual Private Workato workspaces use their own address and have no option here.
- Select the matching option in the Data center field in StackOne Hub.
Create a client role
The client role lists the API endpoints the token may call. Read endpoints cover every read; the two write endpoints in the last item are optional.
Sign in to Workato
Sign in to your Workato account at the address of your data center, for example
Workato US or
Workato EU, as a user who can create API clients.
- Navigate to Workspace admin > API clients > Client roles.
- Select Add client role.
Name the role and choose the endpoints
Enter a name such as StackOne Integration, then tick the endpoints below under their sections.
- Tick Get collaborators
GET /api/membersto list collaborators. The connection test uses it too. - Tick
GET /api/members/:idto read a single collaborator. - Under Admin > Workspace details > Workspace details, tick Get details
GET /api/users/meto read the workspace details of the token. - Tick
GET /api/user_groupsandGET /api/user_groups/:idto read collaborator groups, andGET /api/user_groups/:id/membersto read their members. - Tick
GET /api/members/:id/project_grantsandGET /api/user_groups/:id/project_grantsto read the project roles each collaborator has directly and through groups. - Tick
GET /api/environment_roles,GET /api/project_rolesandGET /api/roles(legacy roles) to list roles, andGET /api/project_roles/:idto read one project role. - Tick
GET /api/members/:id/privileges,GET /api/members/:id/projects_privileges,GET /api/environment_roles/:idandGET /api/developer_api_clientsonly if you use the matching read-only actions in StackOne. Reading collaborators, groups and roles does not need them. - Tick
DELETE /api/members/:idandPOST /api/user_groups/:id/membersonly if you want StackOne to remove a collaborator or add members to a group. Without them every read still works and these two actions are refused.
Save the role
Select Save.
- Workato applies changes to a client role to its API clients straight away.
Create the API client
The API client holds the token that StackOne sends with every request.
Create the client
Navigate to Workspace admin > API clients and select Create API client.
- Enter a name such as
StackOne Integration. - Select the client role you just created.
Choose the environment and projects
If your workspace uses environments, select DEV, because Workato offers the collaborator endpoints only to clients with DEV access. Project roles in TEST and PROD projects appear only if Workato lets a DEV client read them.
- Allow all projects, so StackOne reads project roles in every project. Workato limits a client to the projects you select.
- Leave the allowed IP ranges empty, or add StackOne’s IP addresses so the token works only from StackOne. Workato refuses requests from any address outside the ranges, so update them when StackOne changes its list.
Copy the token
Copy the API token Workato shows after it creates the client, store it securely for use later, then select Save.
- The token is shown once and cannot be retrieved later. If you lose it, regenerate it.
- Paste it into the API Token field in StackOne Hub.
Rotate or revoke the token
Workato lists no expiry date for an API client token. It stops working when you regenerate it or delete the client.
- Navigate to Workspace admin > API clients and open the API client.
- Select the refresh icon in the top right corner, then Regenerate token. The previous token fails straight away, so paste the new token into StackOne Hub.
- Workato also revokes a token it finds in a public GitHub repository and emails the workspace admins. Regenerate the token and paste it into StackOne Hub.
- Delete the API client or its client role to make Workato reject every request that uses the token.
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Data center
- API Token
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 on your Accounts page.