How do I make an HTTP request with a document stored in content manager as a parameter?

I’m trying to call a third party API that translates pdf files uploaded by customers into csv format. The API call, when initiated in a mac terminal, takes the file path of the pdf file as a parameter.