MrGeekO
03/29/2025, 4:43 PMVapi Support Bot
03/29/2025, 4:45 PMAuthorization: Bearer YOUR_API_KEY
.
3. **Test with an API Request**: You can use tools like Postman or curl
to send a request to the Vapi API endpoint and test if your key is working properly.
## How to Create a New API Key
If you need to create a new key:
1. **Via the Vapi Dashboard**:
- For a public key: Obtain it from the [Vapi Dashboard](https://dashboard.vapi.ai/)
- For a private key: Generate it from the Vapi Dashboard under the Provider Keys tab
2. **Using the /credential
Endpoint**: You can create a new credential by sending a request to the /credential
endpoint with the necessary information.
## Common Issues & Troubleshooting
Several issues might prevent you from checking or creating an API key:
1. **Invalid Key Error**: You might be using the wrong key type (public vs. private) or an incorrect assistant ID. Make sure you're using the right key for your environment.
2. **No Private Key Found Error**: This often indicates a need for a JWT or similar token signed with a private key. Check if you need to generate a JWT using your private key.
3. **Key Format Issues**: Ensure your key is in the correct format (typically PEM) and that it matches what's registered with the VAPI platform.Vapi Support Bot
03/29/2025, 4:45 PMVapi
03/30/2025, 9:41 AM