403 forbidden
# support
b
Hi all, I am new to Vapi but do have experience with API's. At the moment I am trying to send a request from Make.com to the system using a brand new public key. Unfortunately I get this error in return: {"message":"Invalid Key. Hot tip, you may be using the private key instead of the public key, or vice versa.","error":"Forbidden","statusCode":403} I created a new one but the problem is not solved. What am I missing? Organization Id = 10cb11e3-7bc3-40b3-abb0-d8d7188c2d61 https://cdn.discordapp.com/attachments/1307606320584720425/1307606320991571978/Screenshot_2024-11-17_at_08.18.09.pdf?ex=673aeac9&is=67399949&hm=7a4864b4c2f02c91551ffa0aa791cdd2a707c1cef63d36f303cb5cd61948ecc3&
v
message has been deleted
@Bosstechnerd Hello and welcome to VAPI! It's great to hear about your experience with APIs, and I'm here to help you troubleshoot the issue you're encountering. The error message you're receiving indicates that there's a problem with the key you're using to authenticate your requests. Here are a few steps to ensure everything is set up correctly: 1. **Check the Key Type**: Make sure you are using the correct type of key. As the error message suggests, there are both public and private keys, and they are not interchangeable. 2. **Authorization Header**: Verify that you are including the correct authorization header in your request. The header should look like this:
Authorization: Bearer YOUR_PUBLIC_KEY
. 3. **Organization ID**: Ensure that the key you are using is associated with the Organization ID
10cb11e3-7bc3-40b3-abb0-d8d7188c2d61
. 4. **Key Permissions**: Check if the key has the necessary permissions for the action you are trying to perform. 5. **Key Status**: Make sure the key is active and has not been revoked or expired. If you've verified all of the above and the issue persists, it might be helpful to regenerate a new key from the VAPI dashboard and try again, ensuring that you copy the key correctly without any leading or trailing whitespace. If you need further assistance, please provide more details about the request you're making, including the endpoint and the method you're using, so I can assist you more effectively. If you're confident that everything is set up correctly and you're still facing issues, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
b
Hi @Bosstechnerd , if you are trying to use our API then you will need your private key instead of your public key
b
Thanks. My bad... Rookie mistake 😦
I revolved my problem with the help of you guys. But I found an error in the API documentation I think.
s
Hey @Bosstechnerd the issue has been reported to the team, soon it will be resolved. Thanks for reporting it.
3 Views