Yash
10/18/2024, 11:40 AM{
"message": "Missing Authorization Header.",
"error": "Unauthorized",
"statusCode": 401
}
When tried with public and private keys from one of my orgs, if failed again with 403:
{
"message": "Invalid Key. Hot tip, you may be using the private key instead of the public key, or vice versa.",
"error": "Forbidden",
"statusCode": 403
}
Yash
10/18/2024, 11:40 AMVapi
10/18/2024, 11:42 AMAuthorization
header with a valid bearer token in your request. Make sure you retrieve your key from the Dashboard and include it in the header like this:
Authorization: Bearer YOUR_API_KEY
2. **403 Forbidden Error**: This error suggests that the key you are using is incorrect. It could be that you are using the private key instead of the public key, or vice versa. Double-check the keys you have and ensure you are using the correct one. The public key is typically used for client-side operations, while the private key is used for server-side operations.
If you have the correct API key, I can help you format the cURL command to include the authorization header. Please provide me with the ID of the organization you're trying to create, or let me know if you need further assistance with obtaining the correct API key.Vapi
10/18/2024, 11:42 AMVapi
10/18/2024, 11:42 AMShubham Bajaj
10/19/2024, 3:59 PMYash
10/21/2024, 5:33 AM