API Reference
REST and websocket endpoints, request/response shapes, and conventions.
The Vocenza API is organized around predictable, resource-oriented endpoints.
All REST requests go to https://api.vocenza.com/v1 and authenticate with a
Bearer key (see Authentication).
Base URL
https://api.vocenza.com/v1Endpoints
| Method | Path | Description |
|---|---|---|
POST | /speech | Synthesize speech from text. |
POST | /transcriptions | Transcribe an audio file. |
GET | /voices | List available voices. |
WS | /realtime | Open a realtime conversation. |
Conventions
- Auth —
Authorization: Bearer voc_…on every request. - Content type —
application/jsonfor JSON bodies;multipart/form-datafor file uploads; binary for audio responses. - Errors — consistent JSON shape with
error.typeanderror.message. See Errors. - Idempotency — pass an
Idempotency-Keyheader onPOSTrequests to make retries safe.
Versioning
The API is versioned in the path (/v1). Breaking changes ship under a new
version; additive changes may appear within /v1 without notice.