How to get searchable PDF - Python

Small issue first: The api key should be in header. It works in the body, too, but this is deprecated.

I am not sure why the searchable PDF generation fails. Looks all ok on first glance.

Have you tried to call the OCR API with Postman? Does it work there for you?