UIflow - Unable to get response of the API request in JSON

Hello.

I tried for fun post a dad joke in a side bar app using uiflow. I can’t see the how the request is done but to me the settings looks ok.

The data I get back is the HTML and not the JSON.

@danielsoderlund

You have to pass “Accept: application/json” in the header. It should work.

Hello @adarsh

I tried to add Accept: application/json in the Header field like this but it doesn’t save it.
If I click on the State tab and back to Action the headers fields are blank. I tried with “” as well still same.

I am unable to find the documentation for UIFlow. Can you try this out?

‘Accept: application/json;’

or

‘Accept’: ‘application/json’

or

{‘Accept: application/json’}

2 Likes

why didn’t I think of using JSON

{'Accept': 'application/json'} worked great

Thanks

image

1 Like

Awesome. Glad I could help. :blush:

1 Like

@danielsoderlund @adarsh The documentation for Uiflow Studio is available at Freshworks - Uiflow

We keep expanding it with more information.

Thanks for exploring it yourself and helping. :slight_smile:

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.