Custom Headers Issue – Documentation or Help Appre...
# support
d
Hi everyone, I'm trying to use the new feature that allows sending custom headers, but I can't seem to get it to work. Additionally, I couldn't find any documentation about this feature, so I'm not sure if I'm missing something or if there's a specific configuration required. I've attached a screenshot of the GUI where the error appears. Hopefully, it provides some clarity. If anyone has experience with this feature or knows where I can find some documentation, I'd really appreciate your help! Thanks in advance! https://cdn.discordapp.com/attachments/1315776081596256317/1315776082196168704/Screenshot_2024-12-09_at_10.28.27.png?ex=6758a377&is=675751f7&hm=18cf3e495b91101d105601f7eb9885716ca7e07d68d0e78b4bae06310a88a553&
v
@Diego Hello! I'm here to help you with the custom headers feature. While I can't view the screenshot you mentioned, I can certainly guide you through the process. To use custom headers in your API requests, you typically need to include them in the configuration of your HTTP request. The exact method can vary depending on the tool or library you're using. Here's a general idea of what it might look like in code:
Copy code
javascript
// Example using fetch in JavaScript
fetch('https://api.example.com/data', {
  method: 'GET', // or 'POST', 'PUT', etc.
  headers: {
    'Custom-Header-Name': 'Custom-Header-Value',
    // ... any other headers
  },
  // ... any other request options
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
If you're using a GUI, there should be an option to add headers, often in a section labeled "Headers," "Custom Headers," or something similar. You would enter the header name and value in the provided fields. Since you're having trouble and there's no documentation available, it might be best to reach out to the support team or the community forums for the specific tool or service you're using. They can provide you with the most accurate information. If you have any specific questions or need further assistance with the implementation, feel free to ask!
You can continue this conversation by mentioning me in the message.
d
I need more help...
I understand the purpose and usage of headers. However, I'm struggling with implementing headers specifically with VAPI and/or locating the relevant reference documentation.
s
@Diego the issue is know to us and we are working on it, and will let u know once resolved.