Two ways to place a call
With a production key, both originate from the project’s own number. With a
sandbox key, both place real calls from the shared Wave number. They use the
project’s 15 sandbox minutes and are not billed. When the minutes
are used up, a real sandbox call returns
403 SANDBOX_MINUTES_EXCEEDED.
A production POST /v1/calls never goes to the connect number: bind an IVR menu to your number, so that the answered call has a flow. Without one, the person who answers hears a short “not available” message, then the call ends.
Retries and Idempotency-Key
Send anIdempotency-Key header (a new random value per call, the same value
on each retry). A retry with the same key and the same body within 24 hours
gets the first reply and places no second call. The same key with a
different body gets 422 IDEMPOTENCY_KEY_REUSED; while the first request still
runs, a retry gets 409 IDEMPOTENCY_KEY_CONFLICT. After a 502 CALL_FAILED
the call may have started, so a retry with the same key gets the same 502.
See Idempotency keys.
Call velocity limits
To protect your account against toll fraud (for example, a stolen API key), Wave can limit how many calls your organization starts. The default limits are 30 calls per minute, 300 calls per hour, and 30 calls per hour to800 and 9200 numbers. Sandbox and production calls count together.
Over a limit, a new call returns 429 CALL_VELOCITY_EXCEEDED with a
Retry-After header (the seconds until the time window ends). The limit
clears by itself when the window ends. The first time your organization goes
over a limit in a window, Wave emails the organization owner.
Wave can change the per-minute, the per-hour and the premium per-hour limit
(calls to 800 and 9200 numbers) for your organization. If your traffic
needs higher (or lower) limits, contact Wave.
Maximum call length. A production call ends after 30 minutes and a
sandbox call ends after 15 minutes (a sandbox
website widget call: 1 minute). The call then ends as a normal ended
call (call.ended). Wave can change the production limit for your
organization. If your calls need more time, contact Wave.
Machine detection
Send"machine_detection": true to let Wave check who answers before the call
goes on. When an answering machine or voicemail answers, Wave hangs up. When a
person answers (or Wave is not sure), the call goes on as usual. The verdict
(human, machine or notsure) is in machine_detection_result on the call
in the call log and in the call.answered and call.ended webhooks. It is
null when detection did not run. Machine detection is not available on all
environments yet: where it is off, the request returns 400 VALIDATION_ERROR.
Read the call log
GET /v1/calls returns your calls newest-first with cursor pagination. Needs the
calls:read scope.
next_cursor back as ?cursor= to page.
type says how the call started:
Changed (20 Nov 2026): a call placed with
POST /v1/calls (and a campaign, voice-auth or IVR test call) is now outbound. Before this date these calls were stored as callback, and they keep that value.environment: "sandbox" or "production". It is the environment of the key that placed the call. An inbound call is "production".
A key sees only its own environment. A sandbox key lists, reads and controls sandbox calls only; a production key production calls only.
environment is also a filter: with a key, send only the key’s own value (another value returns 400 VALIDATION_ERROR). A call of the other environment returns 404 on its recording, control, transfer and conference routes. See Sandbox mode.credits is what Wave charged for the call, in credits, exact (up to 4 decimals). call_class is the call class that Wave set when the call was made (for example OUT_KSA for one outbound leg, CLICK_TO_CALL_2LEG for a callback connected to your connect number, IN_011_APP for an incoming call). Wave charges each answered production call at its class’s credits per started minute, with a minimum of one minute; see Billing. A call is never charged for longer than your maximum call length. credits is null when the call has no charge: a sandbox call, a beta call (beta_feature names the feature), or a call that nobody answered. price_sar is the SAR price of a call charged before credits; it is null for a call charged in credits. These fields are not in the webhook payload.
The customer’s number is masked in one form, +966 50 XXX 0000: to_masked on callback, outbound and web_calling calls, and from on inbound calls. Your own Wave number is never masked: on an inbound call, to_masked holds your Wave number in full, and on the other types from is the number that Wave presented to the customer.
Changed:
from on an inbound call used to return the caller’s full number. It now returns the masked form (PDPL), for API keys as well as portal sessions.Filter and page
All filters are optional, work together, and work in both paging modes.total_count (every call that matches, over all pages) so you can
show “page 1 of 3”. Send one mode: cursor together with page or page_size
returns 400, and so does from later than to, an unknown status, or a
page_size over 100 — all with the standard error envelope. Clients that
send only cursor and limit work as before.
Read your usage
GET /v1/usage returns the usage of your project for a period: total calls,
answered calls, missed calls, call minutes, and the credits charged. Needs the
usage:read scope. Keys created before this scope existed do not have it — edit the
key in the dashboard to add it.
fromandtoare inclusive and filter on the time the call was created. With neither, the period is all time andperiodshowsnull.- Failed, cancelled and timed-out calls count only in
total_calls, socalls_answeredpluscalls_missedcan be lower than the total. queue_idfilters to one queue. Only callback calls carry a queue id, so web-calling and inbound calls never match it.api_key_idfilters to the calls that one API key placed. A revoked key of the project works too.creditsis the sum of the credits charged on the calls, exact to 4 decimals. Each production call is charged at its call class (see Billing). Sandbox calls, beta calls and calls that nobody answered are not charged, so they add0(they still count in the totals).- A sandbox key gets the usage of sandbox calls only, and a production key of
production calls only.
environmentfollows the same rule as onGET /v1/calls.
Group the numbers
Addgroup_by to also get a groups list with the same numbers per group:
Days and hours follow the Saudi calendar (Asia/Riyadh, UTC+03:00). Each
key is
the start of the day or hour with a +03:00 offset, oldest first. A day or hour with
no calls is not listed — fill the gaps in your chart. The totals in data always
cover the whole period.
from later than to, an unknown group_by, or a range that is too long returns
400 with the standard error envelope.
Fetch a recording
GET /v1/calls/{call_id}/recording returns a time-limited download URL (valid
~60 minutes). Needs the recordings:read scope and a production key.
A recording exists only if the call was recorded (via a
<Dial record> or a
background <Record>) and storage is provisioned for
your account. Until then this returns 404 RECORDING_NOT_FOUND or
503 RECORDING_SERVICE_UNAVAILABLE. Sandbox keys get 400 SANDBOX_KEY_NOT_ALLOWED.No webhook tells you that a recording is ready. After the call ends, poll
this route with a back-off until it returns 200. A 404 RECORDING_NOT_FOUND
means that the recording is not ready yet, or that the call was not recorded.A recording is available for 90 days
You can get a recording for 90 days after the call ends. After that, this route returns410 RECORDING_EXPIRED, and the call log in the dashboard says
that the recording is not available. Wave does not delete the file, but you
cannot get it any more. Download the recordings you need within the 90 days.
Each call in GET /v1/calls tells you the state, so you do not need one request
per call:
recording_available—truewhen the call has a recording and it is in the 90 days.recording_available_until— the end of the 90 days (ISO time). It is in the past when the 90 days have ended, andnullwhen the call has no recording.
Control a live call
Change a call while it is live:POST /v1/calls/{call_id}/{action}, where
action is hangup, hold, unhold, mute, unmute, dtmf ({"digits"}),
play ({"url"}, a public https URL), recording/start or recording/stop.
Needs the calls:write scope. A 200 means the voice engine accepted the command.
- Works on calls Wave placed (callbacks and outbound calls) and on inbound
calls to your numbers. Web-calling calls return
409 CALL_NOT_CONTROLLABLE(the SDK controls the browser’s own leg). Correction (30 Oct 2026): web-calling calls still return409 CALL_NOT_CONTROLLABLEhere. To hold a browser call, the browser uses the SDK’sholdCall(), which goes through Wave (see Hold and resume), not a SIP hold of its own. hangupworks frominitiated; every other action needs anansweredcall.- The optional body field
legpicks the leg:"customer"(default) or"agent", the agent connected now by a<Dial>or a queue. With no connected agent you get409 AGENT_LEG_NOT_CONNECTED. The response tells you the leg.
In-call control is turned on per environment, and the agent leg and the
recording routes each have their own switch. While a switch is off, the
route returns
503 CALL_CONTROL_DISABLED.Transfer a live call
Send the caller somewhere else:POST /v1/calls/{call_id}/transfer with a
target. This is a blind transfer: the caller’s leg goes straight to the
target, with no announcement to the target first. Do not depend on the
current agent leg staying connected after the transfer. Needs the
calls:write scope.
A target that has a bad format or is not your organization’s returns
422 TRANSFER_TARGET_INVALID. The call must be answered, and only one
transfer can be in progress on a call (409 TRANSFER_IN_PROGRESS). A call
accepts at most 3 transfers; the next one returns 409 TRANSFER_LIMIT_REACHED.
A transfer that expired (the engine did not act on it) does not count.
Each transfer also counts toward the call velocity limits
(429 CALL_VELOCITY_EXCEEDED).
202 at once. When the transfer has a result, Wave sends one
call.transferred webhook with an outcome: answered, no_answer, busy,
failed, cancelled, enqueued (queue target) or expired (the voice engine
did not act on it). If the target does not answer, the call ends. Read a
call’s transfers and their outcomes with GET /v1/calls/{call_id}/transfers
(calls:read scope). On a simulated sandbox call, the transfer completes at
once with outcome answered, and the webhook is marked simulated.
Call transfer has its own switch per environment, and it is not available
in production yet. While it is off, the route returns
503 CALL_CONTROL_DISABLED.Put calls in a conference room
Join several live calls so that they all hear each other:POST /v1/calls/{call_id}/conference with a room label. The first call that
joins a label starts a new room; more calls join the same room with the same
label. Needs the conferences:write scope and a live key (a sandbox key gets
400 SANDBOX_KEY_NOT_ALLOWED).
roomis your label: 1 to 64 letters, digits,.,_or-. Labels are per project — another project cannot join your room.- The call must be
answered. Calls that Wave placed and inbound calls can join; web-calling calls return409 CALL_NOT_CONTROLLABLE. legis"customer"(default) or"agent"(the agent connected now, with the same rules as in-call control).- A call is in one room at a time: a call in another open room gets
409 CALL_ALREADY_IN_CONFERENCE. Joining the same room again returns200with no change, so a retry is safe. - One call is one member: its customer leg or its agent leg, not both. A second
join of a call that is already in the room returns
200with no change. The response shows the leg that is in the room. To add an agent or a supervisor, add each one as a separate call that joins with the sameroom. - A room holds at most 10 calls; the next one gets
409 CONFERENCE_FULL. - A call alone in a room hears silence (no music).
GET /v1/conferences/{conference_id} (conferences:read
scope): its status and every call that was in it, with join and leave times.
End a room with POST /v1/conferences/{conference_id}/end: every member
leaves and the room status becomes ended (409 CONFERENCE_ENDED if it has
already ended). An ended room is never reused — the next join with the same
label starts a new room. To remove one member, hang up that call
(POST /v1/calls/{call_id}/hangup) — this ends that call. When the last member
leaves, the room ends.
Webhooks: conference.created (first join), conference.member_joined,
conference.member_left (one per member, with a reason: engine_event,
call_ended or room_ended) and conference.ended (one per room). Each
carries conference_id, room, status and member_count; member events also
carry call_id and leg.
Conferencing has its own switch per environment, and it is not available in
production yet. While it is off, the routes return
503 CALL_CONTROL_DISABLED.Next steps
Web Calling
Place calls from the browser with the SDK.
Webhooks
Get call events pushed to you instead of polling.

