OpenAI custom API with own data

Is there a way to put my own data (f.e. large text/pdf/whatever) and then create custom API specificly for this data?

My goal is to make an API based on my companys own data