02-12-2026 08:21 AM - edited 02-12-2026 02:52 PM
I am connecting to AWS from Workato and retrieving a token. Using this token, I am trying to connect to another application.
My steps are: (In a Recipe)
I created a trigger to schedule for every 6 hrs
In the next action, I am trying to use the HTTP connector.
I have already created a Connection, which is successful, and I want to use this same connection in the HTTP action.
However, when I select the HTTP action (Choose from App), it asks for the URL (which is fine), but it also asks for additional details in the request body, such as grant type, client credentials, etc.
My question is: if I have already created a connection and I am using that connection in this recipe, why is it asking for these details again? I feel like I might be missing something.
Getting this error when testing the Recipe, although the client credentials are already available in the connection.
401 Unauthorized { "error": "invalid_client", "error_description": "AADSTS7000216: 'client_assertion', 'client_secret' or 'request' is required for the 'client_credentials' grant type. Trace ID: **** Correlation ID: **** Timestamp: 2026-02-12 22:48:01Z", "error_codes": [ 7000216 ], "timestamp": "2026-02-12 22:48:01Z", "trace_id": "****", "correlation_id": "9c8ff63c-5f6c-43c3-88e3-360e5c0c768a", "error_uri": "****" }
Can someone please suggest what might be wrong?
Solved! Go to Solution.
02-13-2026 01:43 AM
Hi @lalatendujena ,
After observing your error looks you are calling Azure AD from AWS please correct if my understanding is wrong!
if possible can you send us the screenshot how are you sending the request?
Here I am adding after understanding the API documentation, here are the things we have to send
curl -X POST https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=xxxxxxxx" \
-d "client_secret=xxxxxxxx" \
-d "scope=https://graph.microsoft.com/.default"
-H: Header ( parameter needs to be sent in Header)
-d: (request body) should be part of your request body
Please try at your end, let us know if you need further help.
Thanks and regards,
Shivakumara K A
02-13-2026 01:43 AM
Hi @lalatendujena ,
After observing your error looks you are calling Azure AD from AWS please correct if my understanding is wrong!
if possible can you send us the screenshot how are you sending the request?
Here I am adding after understanding the API documentation, here are the things we have to send
curl -X POST https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=xxxxxxxx" \
-d "client_secret=xxxxxxxx" \
-d "scope=https://graph.microsoft.com/.default"
-H: Header ( parameter needs to be sent in Header)
-d: (request body) should be part of your request body
Please try at your end, let us know if you need further help.
Thanks and regards,
Shivakumara K A
02-13-2026 04:00 AM
Hi @shivakumara
Yes, you are absolutely right. The request works fine when I send it from Postman.
It is also working from the Workato HTTP connector when providing the details in the Request Body.
However, I’m unsure how to properly provide the credentials when adding the HTTP action in my recipe. I have already created the connection successfully.
For testing purposes, I am currently passing grant_type, client_secret, client_id, and scope directly in the Request Body, which I understand is not the correct approach.
02-13-2026 07:38 AM
Thank you so much @shivakumara for helping me out here. Now the issue is resolved.