Unable to create a org
# support
y
https://api.vapi.ai/api-extended#/Orgs/OrgController_create Tried creating an org using the above api, but got 401:
Copy code
{
  "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:
Copy code
{
  "message": "Invalid Key. Hot tip, you may be using the private key instead of the public key, or vice versa.",
  "error": "Forbidden",
  "statusCode": 403
}
@Sahil @Shubham Bajaj Can you please help with this?
v
@Yash It seems like there are a couple of issues with your API requests. Let's address them one by one: 1. **401 Unauthorized Error**: This error indicates that the request did not include the necessary authorization header. To resolve this, you need to include an
Authorization
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:
Copy code
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.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
@Yash as mentioned as of now you cannot create org using api.
y
Yeah 👍
3 Views