cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed with Workato CLI

steverist
Deputy Chef I
Deputy Chef I

Hi - I've set up Workato CLI and am trying to run the init command.

I have followed the guidance on setting up a API Client Role with the correct permissions. 

Then, I've created an API Client and generated teh key.

Whatever I try results in a 401 error. I've looked for community posts on this to no avail.

Can anyone help?

 

Thanks,

 

Steve

1 REPLY 1

rajeshjanapati
Executive Chef I
Executive Chef I

Hi @steverist ,
Before diving deeper into troubleshooting, I have one question: Have you selected the correct Workspace URL and generated the API Client token from that same workspace and also we should not use any prefix before the token like Bearer, just copy & paste the token from Workspace

A 401 Unauthorized error often occurs when there is a mismatch between the Workspace URL and the API Token being used. Please verify that:

  1. You are using the correct Workspace URL.
  2. The API Token was created in that same workspace.

It appears there may be a mismatch between the workspace and the Token being used. Please double-check these settings and try again.

For reference, I have attached a screenshot that illustrates the correct configuration.

Screenshot 2026-06-25 102002.png

Thanks,
J Rajesh Kumar.