cancel
Showing results for 
Search instead for 
Did you mean: 

Facing 401 Unauthorized Error Accessing /roles API

Neha
Deputy Chef I
Deputy Chef I

Hello Workato Community,

I hope this message finds you well. I am currently experiencing an issue while trying to access the /roles API in Workato, and I'm seeking assistance in resolving it.

Problem Description: I have generated an API client with the required scopes for accessing the /roles endpoint. However, when making requests to this API, I consistently receive a 401 Unauthorized error.

Steps Taken:

Checked and confirmed the correctness of API credentials (client ID, client secret, access token).
Verified that the API client has the necessary scopes for accessing the /roles API.
Ensured the validity of the access token and attempted re-authentication.
Request Details:

curl --location 'https://www.workato.com/api/roles' \
--header 'Authorization:<sample token>
Error Response:
{

    "message": "Unauthorized"

}
Question: Has anyone encountered a similar issue while accessing the /roles API? Are there any additional steps or considerations I might be missing in troubleshooting this problem?

Your insights and guidance would be greatly appreciated!

1 REPLY 1

rachelnatik
Deputy Chef III
Deputy Chef III

Hi, I recently faced a 401 auth error and turns out I had an extra space in one of the parameters - can you check that