Does Backend API workflow supports POST form-data?

I guess all is in the question :laughing:

1 Like

Perhaps I have not been clear enough.

Does Bubble support POST to a public Backend API workflow with "content-type":"application/x-www-form-urlencoded"?

Yeah, but you will have to decode the parameters/data. I’ve used Encode/Decode URL Plugin | Bubble to do this in the past.

If needed I can sent you a couple of screenshots.

It would be great @gerbertdelangen

The command I am using is curl -d "param1=value1&param2=value2" H "Content-Type: application/x-www-form-urlencoded" -X POST https://xxx.bubbleapps.io/version-test/api/1.1/wf/test/initialize

I am unable to get any of the parameters, even encoded ones.

It seems to work:

Do you see a screen similar to the one above? You are using the “Detect data” option right?

Yes, it just hangs…even though I get a successful response, confirming that the endpoint is successfully initialized.

As a test, maybe you can use the API-connector to connect and initialize your API, f.i.:

After that probably you can use curl to test without initialize.

Unfortunately using this configuration of API connector is not equivalent to the cURL command.
Here you are posting JSON as body.

Up to you of course but I would just try it, check the format of the content in the body, this is according to application/x-www-form-urlencoded.

Another option would be to try Postman or Insomnia instead of curl.