Linking workflow to API call in Bubble.io

Question: linking workflow to API call in Bubble.io

Hello all,

I am developing an app in Bubble.io in which a PDF is uploaded, processed via a Python script on PythonAnywhere and then sent back to Bubble. I use the API Connector plugin for this purpose. My API Endpoint has been tested in Postman and works correctly.

In the API Connector, I created an API call with the following settings:

Use as: Action
Body type: Form-data
Parameter: Key = pdf, with “Send file” checked.
According to advice I received earlier (ChatGPT o1), in the settings I should have had a field called “Type” (for example, to select File). However, this field is not available in my interface. Instead, I checked “Send file”, hoping that this was the correct configuration. The call was saved and set as an Action, but I cannot find it in the Workflow Editor among the available actions.

Do you have any suggestions as to what could go wrong here or what I am overlooking? Should I perhaps set something else with “Send file”, or is there a specific way to solve this problem?

Thanks in advance for your help!

if you can share the cural of postman and the screenshot of API connect, i can help.

you can get the curl for postman by :

Many thanks for your willingness to help Baloshi69! The PHP-cURL is as follows (between ###):

<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://dashop020.pythonanywhere.com/process_pdf', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => array('file'=> new CURLFILE('MNNbojSaR/Orgovyx SmPC - EMA.pdf')), )); $response = curl_exec($curl); curl_close($curl); echo $response; ### And here is the screenshot: ![Screenshot|649x500](upload://dMUxeX4kHBPYs3fhe2gqsVjXUQX.jpeg) Kind regards, Peter PS. Not sure if you are able to see the screenshot. I only see txt saying that I uploaded the jpeg..

Hi there, was the cURL and screenshot helpful? Great if you’re still able to help, but I totally understand if you have better things to do.

Kind regards,
Peter