Trying to make call to API-2 from Auth0 Flow using HTTP Request
In the body, I need to pass a Boolean value to API-2 which is received from the response of API-1.
{
“email”: “{{context.user.email}}”,
“userId”: “{{context.user.user_id}}”,
“lastName”: “{{fields.lastName}}”,
“isReturningMember”: {{actions.http_request_my_details.body.data.isReturningMember}}
}
It gives error for isReturningMember - “Body is not a valid json” because I am not enclosing them in the quote.
If I update it with quotes to “isReturningMember”: “{{actions.http_request_my_details.body.data.isReturningMember}}”, the flow works but API-2 fails because it is expecting boolean but string is received in the request body.
How to fix this?