cancel
Showing results for 
Search instead for 
Did you mean: 

Assistance Required – HTTP Call (Basic Auth) Error in Workato

Aiswarya
Deputy Chef II
Deputy Chef II

Hi Team,

I am new to the Workato platform and currently working on an HTTP call using Basic Authentication. I tested the same request in Postman, and it worked fine. However, when I try to make the call in Workato, I’m encountering errors.

  • When I include the username and password in the connection, I receive a 400 error:
    “The server cannot or will not process the request due to a client error (for example, incorrect syntax or missing headers).”

  • When I include the credentials as a header, I receive a 401 Authorization error.

Could you please help me identify what might be causing this issue and how to properly configure the connection in Workato?

Thank you for your support. connection.pngerror.pngRequest url.pngConfiguration.pngpostman Result.png

 

7 REPLIES 7

Bhagya_pola
Executive Chef I
Executive Chef I

Hi @Aiswarya ,

When passing Basic Authentication details through headers, you need to encode the username and token in Base64 format before sending them.

For example, if your username is api-token and
your token is 23r6acd57f95a6fb4be8ad675a0597d94bff63f8e5ad913b0a797237b7asdfg,
you should combine them in the format username:token and then encode this string in Base64.

Screenshot 2025-11-12 094907.png

Screenshot 2025-11-12 095010.png

 

The resulting Base64 value will be your converted token.
Follow this token conversion once and you can use it later for authentication.
You can then include it in your API request header as follows:

Authorization: Basic <Base64-encoded-token>
Using this format should allow you to successfully authenticate and access the API.

Screenshot 2025-11-12 095339.png

 

 

Aiswarya
Deputy Chef II
Deputy Chef II

Hi Team,

Thank you all for your responses. I tried all the suggested methods, but unfortunately, they didn’t work. I eventually connected with the Work to team, and they were very supportive in helping identify the issue. It turned out that the data needed to be passed through the header with the content type including "star slash star".

Thank you again for all your support and effort. I truly appreciate the quick responses and the time you all took to help. I was testing each of your suggestions from my side as well, and I’m very grateful for the guidance.

Regards,
Aiswarya

Hi @Aiswarya ,

Happy that you are able to proceed.

The above suggestions are based on our use case, however, we were not aware of what your endpoints expect. As a small suggestion, next time when raising a question, please provide some context and background about the API endpoint.

Thanks and Regards,
Shivakumara K A