Invalid Key. Hot tip, you may be using the private...
# support
v
@Muhammad Sajid Certainly! To get your API key authorization with a bearer token, you need to retrieve your key from the Dashboard. This key is essential for making authorized requests to the VAPI. Once you have your API key, you will include it in the header of your requests as a bearer token. Here's how you can do it: 1. Go to your VAPI Dashboard and locate your API key. 2. Copy the API key. 3. When making a request to the VAPI, include the API key in the Authorization header like this:
Copy code
Authorization: Bearer YOUR_API_KEY
Replace
YOUR_API_KEY
with the actual key you copied from the dashboard. If you've already done this and are encountering an error, please ensure that the API key is correct and has not been revoked or expired. If the problem persists, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
m
v
@Muhammad Sajid I apologize for the inconvenience. If you're still encountering an error after including your API key as a bearer token in the Authorization header, it's possible that there may be an issue with the key itself or how it's being included in the request. Here are a few troubleshooting steps you can take: 1. Double-check that the API key is correct and has not been modified or truncated. 2. Ensure that there are no leading or trailing spaces when you copy and paste the API key. 3. Verify that the header is properly formatted:
Authorization: Bearer YOUR_API_KEY
. 4. Make sure that the endpoint you are trying to access is correct and that your API key has the necessary permissions to access it. 5. If you are using any libraries or tools to make the request, ensure that they are correctly configured to send the header. If you've gone through these steps and the issue persists, it may be best to reach out to the support team for further assistance. They can provide more detailed guidance and help you resolve the issue. Would you like me to assist you in contacting support?
m
I've double check my API key, it's correctly pasted and header is properly formated. Please connect me to available support advisor @Vapi
v
@Muhammad Sajid Please ask support for more info on this.
m
@User
@User can anyone help?
@Vapi no one is replying?
v
@Muhammad Sajid Sweet. Have a great day!
s
@Muhammad Sajid can you please add the description to your ticket?