Code example of GPTs with Auth

I’m developing a GPT that connects to my API, and requires some type of user-level auth.

Ideally I’d like it so the user can just enter their unique API key (generated in my app’s UI) or OAuth.

However I can’t find any good examples of how to make this work and docs are like?

Does any have or know of any good code examples or tutorials? I’ve already wasted hours and (ironically) the GPT builder can’t seem to explain it to me.


Screenshot 2023-11-14 at 12.01.54 PM