OpenAPI.
The full API is described by an OpenAPI 3.1 spec. Point any standard tool at it to generate typed clients, mock servers, and Postman collections — no hand-written bindings required.
Download#
The spec lives at a single, stable URL:
https://voice.whizztech.ai/openapi.jsonFetch it to a file:
curl -s https://voice.whizztech.ai/openapi.json -o openapi.jsonGenerate a client#
Feed the spec URL directly to your generator of choice — most read a remote URL as happily as a local file. Using generic OpenAPI tooling:
# TypeScript client
openapi-generator-cli generate \
-i https://voice.whizztech.ai/openapi.json \
-g typescript-fetch \
-o ./clients/ts
# Python client
openapi-generator-cli generate \
-i https://voice.whizztech.ai/openapi.json \
-g python \
-o ./clients/pyThe generated client speaks the same https://voice.whizztech.ai/v1 base and the same resources you see throughout these docs. Add your wz_live_ or wz_test_key as the bearer token and it's ready.
What's covered#
The spec is tagged by resource, one tag per section of this documentation:
| Field | Type | Description |
|---|---|---|
| Agents | tag | Create, read, update, publish, and delete voice agents. |
| Phone numbers | tag | Buy, import, bring your own SIP, attach, and release numbers. |
| Calls | tag | Place outbound calls, list and retrieve calls, read transcripts and outcomes. |
| Campaigns | tag | Bulk outbound: recipients, target concurrency, and totals. |
| Webhooks | tag | Register endpoints and receive call.started / call.completed / call.failed. |
| Usage | tag | Credit balance and daily voice-minute, call, and telephony metering. |
The spec stays in lockstep with these pages — the same shapes, fields, and status codes. Every request and response references a named schema, so generated types match the JSON you get back.
Import to Postman#
In Postman, choose Import → Link and paste the openapi.json URL directly. Postman builds a collection with every endpoint, its parameters, and example bodies; set a collection-level bearer token with your API key and you can call the live API from the first request.