Hi all

Is it possible to pass two header parameters in an action? The service that I need to connect requires two parameters to authenticate.
if it’s possible can someone share what it looks like in the action schema?

1 Like

Typically you’d do:

          {
            "name": "BlahBlah",
            "in": "header",
            "description": "Do a thing",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "value"
              ]
            }
          },

Where we use a single enum for the ‘value’ to force it to a single thing.

However, I’ve tried using this and it seems to not support headers which is annoying. parameter BlahBlah has location header; ignoring

But I was testing for normal requests, maybe authentication lets you use headers since lots of auth endpoints require them.

Same thing, and I am not seeing anything anywhere on this. To me it’s extremely confusing considering MOST API calls either have, or request header values to be sent. I am second guessing myself in regards to understanding what ‘Action’ actually is considering it states it’s a method to allow your custom GPT to call API’s to add functionality. I have tried so many different ways of passing header information. It would be nice if someone either said yes it can be done, and this is how it’s done or if it was stated NO you can not pass header values through the action to call external API’s

Same issue here, I’ll follow this thread in hope someone has finds an answer to this question