Authentication
Secure your API requests with proper authentication.
API Keys
Vagary Voice uses API keys for authentication. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Creating API Keys
- Go to Dashboard → Settings → API Keys
- Click Generate New Key
- Give your key a descriptive name
- Copy and securely store the key
caution
API keys are shown only once. Store them securely and never commit them to version control.
Key Scopes
| Scope | Access Level |
|---|---|
read | Read-only access to resources |
write | Create and update resources |
delete | Delete resources |
admin | Full administrative access |
Example Request
curl -X GET https://api.vagaryvoice.cloud/v1/bots \
-H "Authorization: Bearer vv_live_abc123xyz" \
-H "Content-Type: application/json"
Best Practices
- Never expose keys in client-side code
- Use environment variables to store keys
- Rotate keys regularly - especially after team changes
- Use minimum required scopes
- Monitor key usage in the dashboard
Key Rotation
To rotate an API key:
- Generate a new key
- Update your applications to use the new key
- Verify the new key works
- Delete the old key
Rate Limiting
See API Overview for rate limit details.