How to use GPTs with api in my app

Now I use GPT-3 to produce my specified structured data。
But I need to put a large same inner-enterprise data in the Prompts every time,it costs tokens。
So I try to build a GPTs with the inner-enterprise data
I also have a question:How can I use my GPTs with api in my app