AdaA
BuildShip2y ago
Ada

API header error

I'm trying to make an API call to OpenAI's list messages API.
I keep getting the error saying I must provide the header, which I did in the test. There are no options in the node to place the header.
image.png
image.png
Solution
Hi @Ada, does the API header requires a special key or is it just a simple Authorization hearder? If it requires a special key, then you'll be require to modify the code logic a bit before providing the custom header directly to make this work.

Consider this example of Rapid API with custom header:
You can add the key and host directly like this by modifying the headers in the code of the API call node. Ensure to pass their values in the export params and node fields too to make it work.

API Call
image.png
Was this page helpful?