Api upload a file to ChatGPT

Hi!
Does anyone know how I can upload a file with an Api, and ask chatGPT to parse the file?

In response I need to get the analysis from the chatGPT

Thanks :pray:t2: