Workflow with API by Pabbly Always Invalid, but Response Success in Postman

Status: Closed · Asked by NBS on · 0 views

NBS — Question ·

Hi, I'm using API Pabbly in my workflow to send messages, previously I tested it on Postman and got a response Success,
but somehow the same URL endpoint and parameters I tested on API Pabbly workflow always got Invalid Data.
Kindly help, what went wrong with the API Pabbly?

On Postman

On Pabbly API : Invalid data, while using the same parameters and endpoint

Pabblymember11 — Reply ·

Hey @NBS

Kindly share the name of the action step and the API documentation of the application. So that we can look into it.

Pabblymember11 — Reply ·

Hey @NBS

Kindly try the Payload Type to "Form Data" and then try.

NBS — Reply ·

Thanks @Supreme it works!

But 1 question, can you explain how do you identify that the Payload has to be stated as "Form Data" instead of "JSON"?
While the documentation is stated as JSON.

Appreciate your explanation. Thanks

Pabblymember11 — Reply ·

We just checked your Postman screenshot and it doesn't show any JSON to pass the data in the body. So it was clear that the data should get entered in the Form Data payload type.

Further, it seems like their API supports the form data as we can see it has the query parameters.

[IMG width="821px" alt="1684289831630.png"]https://forum.pabbly.com/attachments/1684289831630-png.26097/[/IMG]

Back to all forum threads · Log in to reply