POST /v1/register-call exchanges your api key for a short-lived token that
opens exactly one realtime socket. the token is spent the
moment it is redeemed, so leaking one costs you a single call rather than an
account.
call it from your server, hand the token to the client, and let the client
connect.
request
string
required
the agent to run — its UUID or its
ua_… handle. agentId is accepted too.curl
response
returns201 Created.
string
the single-use token, prefixed
wct_. pass it as the token query parameter
when opening the socket.integer
how many seconds the token stays redeemable. it only has to survive the trip
from your server to the client opening the socket.
integer
the audio sample rate the session will use, in Hz.
what it does not do
registering a call does not start one. nothing is billed, no capacity slot is taken, and no agent is spawned until the socket actually connects — so a token your user never redeems costs nothing and blocks nobody. that also means a429 cannot happen here. if you are out of capacity, you find
out when the socket opens: it accepts, sends an error frame, and closes with
code 4000. see connection errors.
the agent must be deployed
registering checks that the agent has a live version and returns409 agent_not_deployed if not. that check happens here rather than at the
socket on purpose: the token is single-use, so a caller refused after
redeeming one would have to come back for another.