Authentication
The Vozia API uses API keys to authenticate requests. You can manage your API keys in the Dashboard.
API Keys
Include your API key in the Authorization header of all requests:
Header
Authorization: Bearer vz_live_abc123...Key Types
vz_live_* ProductionUse in production. Has access to all features and is billed.
vz_test_* TestUse for development and testing. Limited rate limits, not billed.
Session Authentication
For web applications, you can also authenticate users via session cookies. Use the auth endpoints to manage sessions:
Code Examples
JavaScript
class="hl-comment">// Using API Key
const response = await fetch(class="hl-string">39;https:class="hl-comment">//api.vozia.io/v1/podcasts39;, {
headers: {
class="hl-string">39;Authorization39;: class="hl-string">39;Bearer vz_live_abc123...39;,
class="hl-string">39;Content-Type39;: class="hl-string">39;application/json39;
}
});
class="hl-comment">// Using SDK (recommended)
import { Vozia } from class="hl-string">39;@vozia/sdk39;;
const vozia = new Vozia({
apiKey: process.env.VOZIA_API_KEY
});
const podcasts = await vozia.podcasts.list(); Python
import vozia
client = vozia.Client(api_key="vz_live_abc123...")
# List podcasts
podcasts = client.podcasts.list()
# Or set via environment variable
# export VOZIA_API_KEY=vz_live_abc123...
client = vozia.Client() # Auto-reads from envSecurity Best Practices
- Never expose your API key in client-side code
- Use environment variables to store keys
- Rotate keys regularly and revoke compromised keys immediately
- Use test keys (
vz_test_*) during development
Rate Limiting
API requests are rate limited based on your plan. When rate limited, you'll receive a 429 Too Many Requests response. See rate limits for details.