Hey there - I’ve been trying to make my custom GPT make API calls to an external database with an Authorization:<api_key> in the header but so far without success, the bot will just ignore the security component in the schema and only construct the parameters in the request’s body.
I am also confused about where I should store the API key. More specifically should I select the basic bearer or custom mode of Authentication?
any help appreciated, particularly if you can share a shema template that works, I have been using something like this but without success:
{
"openapi": "3.1.0",
"info": {
"title": "Your API Title",
"version": "1.0.0",
"description": "Description of your API"
},
"servers": [
{
"url": "https://api.yourdomain.com/v1"
}
],
"paths": {
"/yourEndpoint": {
"get": {
"summary": "Your endpoint summary",
"operationId": "getYourEndpoint",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "Authorization"
}
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}
Thanks!