Recognized the public key as a private key , while...
# support
s
I tried to integrate a Vapi with Nodejs, So I used that code in the Vapi API reference on my node js app, in the headers section it needs the Public API Key for the Bearer token, so I used the Public API Key but it recognized the public key as a private key, so I was not able to initiate a call https://cdn.discordapp.com/attachments/1283320790984556555/1283320792192520294/Screenshot_2024-09-11_122813.png?ex=66e2911f&is=66e13f9f&hm=845d6442b6d228e3488b9c67aad58b58719d77c9ab17208d56fbc8adffffbc1c&
v
@shakthi I'm sorry to hear that you're experiencing issues with integrating Vapi in your Node.js application. It's important to ensure that you are using the correct Public API Key from your Vapi Dashboard. The Public API Key should be used in the client-side code, and it should not be mistaken for a Private API Key which is meant for server-side operations. Here's a quick checklist to troubleshoot the issue: 1. Double-check that you have copied the correct Public API Key from the Vapi Dashboard. 2. Ensure that there are no leading or trailing spaces when you paste the key into your code. 3. Verify that the key is being set correctly in the headers for the API call. 4. Make sure that you are using the key in the appropriate part of your application (client-side), as using it on the server-side may cause issues. If you've gone through these steps and are still facing problems, it might be best to reach out to Vapi support for further assistance. They can provide more detailed guidance and help you resolve the issue. If you need help with anything else or have any more questions, feel free to ask!
You can continue this conversation by mentioning me in the message.
s
@Vapi
v
@shakthi Please let me know how I can assist you further with your Vapi integration or any other queries you might have!
s
I tried to integrate a Vapi with Nodejs, So I used that code in the Vapi API reference on my node js app, in the headers section it needs the Public API Key for the Bearer token, so I used the Public API Key but it recognized the public key as a private key, so I was not able to initiate a call
s
check your key once again
you must be using the wrong key
8 Views