Getting error “Array of objects expected in parameter 'body' when using PDF.co OCR API with Make

What are you trying to achieve?

Hi everyone,

I’m using Make and trying to perform OCR on a JPG image using the PDFco API endpoint:

https://api.pdf.co/v1/pdf/convert/from/image

I upload the file with the “Upload a file” module and get the output URL. Then I send this JSON body in the “Make an API Call” module:

[
{
“url”: “{{21.url}}”,
“inline”: true,
“ocrMode”: “Advanced”,
“isTable”: false,
“pages”: “”
}
]

But I keep getting this error:

Error: Array of objects expected in parameter ‘body’

I tried:

  • Sending raw body with “Make an API Call”;
  • Building JSON with “Create JSON”;
  • Verifying that the array is properly wrapped in square brackets;

Still the same error.

Has anyone successfully used this endpoint from PDFco in Make with OCR on image files?

Any help is appreciated — thank you! :folded_hands:

Screenshots: scenario setup, module configuration, errors