Authentication
The VoiceCheap API uses API keys for authentication. All API requests must include your API key in thex-api-key header.
Getting Your API Key
1
Sign in to VoiceCheap
Go to app.voicecheap.ai and sign in to your account.
2
Navigate to API Page
Go to the API page at app.voicecheap.ai/page-api.
3
Generate API Key
Click Create New Key and give your key a name. Your full API key will be displayed only once - copy and securely store it immediately.
API Key Limits
- You can create a maximum of 5 API keys per account
- Each key can be named for easy identification (e.g., “Production”, “Development”)
- Keys can be deleted at any time from the API page
Using Your API Key
Include your API key in thex-api-key header with every request:
Requirements
API Key Security
Keep it Secret
Never expose your API key in client-side code, public repositories, or any publicly accessible location.
Use Environment Variables
Store your API key in environment variables or a secure secrets manager.
Rotate Regularly
Periodically rotate your API keys, especially if you suspect they may have been compromised.
Monitor Usage
Keep track of your API usage to detect any unauthorized access.
Error Responses
If authentication fails, you will receive one of the following errors:| Status Code | Error Code | Description |
|---|---|---|
| 401 | INVALID_API_KEY | The provided API key is invalid or missing |
| 403 | SUBSCRIPTION_REQUIRED | API access requires an active paid subscription |
| 403 | INSUFFICIENT_CREDITS | Your account does not have enough credits for this operation |

