KimSia
November 16, 2023, 12:19pm
1
i just figured out how to get my custom GPT access a public endpoint I owned usign a GET request.
I built the endpoint in python.
In my mind, there are 6 use cases:
GET public endpt
POST public endpt
GET private endpt (need to use API secret key)
POST private endpt (need to use API secret key)
GET private endpt while able to identify the user (not sure how. maybe oAuth)
POST private endpt while able to identify the user (oAuth?)
My narrow question is whether i can identify the user of the GPT as a user of my endpoint service using oAuth? i.e. case 5 and 6
My broader questions are what can i do or cannot do with Custom Actions?
Thank you
1 Like
in regards to the narrow question, you definitely can.
pluginlab.ai has a simple solution for this that integrates Oauth everytime someone uses the Action for the first time and allows things like Quotas, Plans, gated routes.
1 Like
KimSia
November 17, 2023, 2:39am
3
Thank you, Duncan
Have you actually tried it personally?
Try this GPTs : https://chat.openai.com/g/g-dVQNBgzdG-appcreator , I believe all your question would be solved easily and more than that when you develop any kind of GPTs!
N2U
November 17, 2023, 11:23am
5
Hey mate, and welcome to the community forum!
This is in the works as far as I know, and should be possible very soon if not already. 3 & 4 (service level auth) is already possible, I tested it myself yesterday, so let us know if you’re having issues with this.
I’ve so have so far hooked up my GPT to over 200 smart device’s in my home (at the same time)
Haven’t hit any kind of limitations yet, so I’d say go nuts!
4 Likes
yeah, for three of my plugins/actions/GPTs.
1 Like
KimSia
November 19, 2023, 12:10am
7
SO what do you use for service level auth? OAuth or just simple API secret key?
N2U:
go nuts!
I want to !
N2U
November 19, 2023, 2:46am
8
Right now I’m just using an API key & bearer token, haven’t played around with o-auth yet.
The interface looks like this, you just paste your stuff in there and press save.
Make sure to NOT include your authentication specifications in the API schema, that’s what the UI is for!
1 Like
KimSia
November 26, 2023, 9:41am
9
I spoke with pluginlab.ai founder. Basically he says they concentrating on plugin not action
However, the good news is that I figured out how to use oAuth within GPT action.
KimSia
November 26, 2023, 9:42am
10
Thank you, N2U
I just figured out how to use oauth . So, I’m closing this thread as solved.
1 Like
KimSia
November 26, 2023, 9:44am
11
In my mind, there are 6 use cases:
GET public endpt
POST public endpt
GET private endpt (need to use API secret key)
POST private endpt (need to use API secret key)
GET private endpt while able to identify the user
POST private endpt while able to identify the user (almost trivial)
Since I have solved 5 , therefore 3 and 4 are not needed and 6 is almost trivial.
Now marking this thread as solved
1 Like
EricGT
December 17, 2023, 1:32pm
12
As this topic has an accepted solution , closing topic.
2 Likes