# API Clients


  • Workato API clients provide customizable access to API endpoints for improved security.
  • Creating an API client involves defining a role and access level. Store the view-once API token securely after you create it.
  • Updates to clients or roles are immediate, and tokens can be refreshed for security.
  • Deleting a client or role immediately rejects associated API requests.

API clients allow you to enforce security best practices by creating multiple clients with configurable access to each endpoint. API client requests require a single header for authentication.


Prior to API clients, Workato's API used a legacy full-access API key and email in request headers or the query parameters to authenticate requests. This legacy feature is still supported, however we strongly recommend that you migrate to API clients for authentication. Learn more

Note that migration is different from deletion. If you delete the legacy API client, your API key and email cannot be recovered and requests using this API key and email will be rejected.

# API client benefits

Workato's developer and embedded APIs allow you to automate your Workato workspace, including deploying recipe manifests from development to production and deploying new on-prem agents within your network landscape. API clients allow you to improve your organization's security by provisioning API access specific to each application's use case.

API clients and assignable roles allow you to scope API access on different levels:

  • API clients are assigned roles that define the API endpoints they can interact with.
  • API clients are assigned environments, for example DEV, TEST, or PROD, that they are allowed to make API calls to. Environments are an add-on feature and may not be available to your workspace.
  • API clients are assigned projects. This limits API access to specific assets within those projects.

You can create individual clients specific to API endpoints and to various projects within your workspace. Workato Developer API client tokens are integrated with Github Secret Scanning.

# Create a client role

You must create a client role before you create an API client. The client role allows you to configure which endpoints the API client can access.

To create a client role:


Navigate to Workspace Access.


Select API clients > Client roles > Add client role. Creating a new client role


Enter a name for the new client role. For example, "Recipe Operator" for a role that can interact with Recipe API endpoints.


Select the required endpoints for the role under each section. All Workato API endpoints available to your workspace are listed under these sections.


Save your role after you are done with your selections. You can edit the client role later if needed.

# Create an API client

To create an API client:


Navigate to Workspace Access.


Select API clients > Create API client.

Creating a new API client


Enter a name for the new client that reflects its purpose. For example, "Sales and Marketing - Recipe Operator" for an API client that will be used by the Sales and Marketing team to operate their recipes through the API.


Select the appropriate client role. The client role determines which endpoints the API client can access.


If your workspace has environments enabled, select the environment the API client is allowed to access.


Select the projects the API client is allowed to access. Choose only the projects that are related to the team that will use this API client. Project access rules apply to all assets that can be scoped to projects including: connections, recipes, folders, lookup tables, properties, API Platform collections and API Platform API Clients.


API clients for Embedded partners with access to embedded APIs can access all customer workspaces and projects.


Optionally, add allowed IP ranges that API requests using this token can originate from. This secures access to Workato's developer APIs further if you have a static server calling our APIs.


Store the API token that displays after creating your API client in a secrets vault, such as AWS Secrets Manager. You will not be able to retrieve the API token again.


Save the API client when you done with your configurations. You can edit the API client later if needed.

API Dashboard Tab New view-once API token

# Edit a client role

Edits made to client roles are immediately enforced.

To edit an API client role:


Navigate to Workspace Access.


Select API clients > Client roles > select the client role you want to edit.


Add or remove privileges to the client role, and/or edit project access. This immediately impacts all incoming API requests from associated API clients.


Save your changes.

# Edit an API client

Edits made to an API client are immediately enforced.

To edit an API client:


Navigate to Workspace Access.


Select API clients > select the API client you want to edit.


Change the client role, and/or edit project access. This immediately impacts all incoming API requests from associated API clients.


Save your changes.

# Refresh API client tokens

You can generate a new API token for an existing client if you enforce regular token rotation to reduce the impacts of compromised API tokens. Generating a new token invalidates the previous API token. Legacy API client tokens cannot be regenerated.

Compromised tokens may be caused by user error when dealing with custom scripts or applications that upload tokens in plain text to public websites like GitHub public repositories or documentation.

# Delete an API client or client role

Use caution when deleting an API client or client role.

  • Deleted API client: All incoming requests that use the API token of the deleted API client will be rejected.

  • Deleted client role: All incoming requests from associated API clients will be rejected.

# FAQs for managing API clients and client roles

1. How should I configure client roles?

Client roles should be configured with use cases in mind. For example, a "Recipe Operator" client role might have endpoint access to start/stop recipes whereas a "Project Deployment" client role might have access to Recipe Lifecycle Management and Environment Properties endpoints. This can be used in conjunction with project scoping on the API client level to achieve access scoped to both use cases and projects.

As a best practice, the principle of least privilege should be employed when defining client roles.

2. How should I configure API clients?

Configure API clients with the use case and project in mind. For example, a "Sales and Marketing - Recipe Operator" API client can be provisioned specifically for the Sales and Marketing team. API client configuration allows you to be specific when you define permissions as this increases security, however this also increases complexity as you have to manage more API tokens.

3. Where should I store my API client tokens?

API client tokens are view-once, meaning that if they are misplaced, they are lost forever. To recover the API client, you must regenerate the token.

Ensure that you store your API tokens in a secure location with controlled access. We recommend you consider tools like AWS Secrets Manager as a way to manage these tokens, especially if you are planning to generate multiple tokens for different teams.

4. Who has access to API clients and how do I control access?

All admins in your workspace have access to API clients. This privilege is defined in the "Workspace Access" Admin role. Use caution when adding users as Admins as they have the ability to create, edit, and delete API clients which may impact existing automated workflows using Workato's APIs.

When creating custom roles in your team, you can define access to API clients under the "Workspace Access" section and selecting API clients. Any user assigned this custom role will have full access to the API clients tool.

5. Why are some endpoints not compatible in my "TEST" and "PROD" environments?

Certain API endpoints in Workato are only available in the "DEV" environment such as "Project deployments" and "Workspace Collaborators". This is because you can only manage these tools from your "DEV" environment.

Last updated: 9/20/2023, 2:27:18 PM