Calls
Place a call
https://voxa.abhinavyadav.in/api/v1/agents/{agent_id}/callQueues an outbound phone call. Calls are dialled by a worker as soon as one of your workspace’s call slots is free and, unless ignore_call_window is set, inside the agent’s calling hours (call.call_start_hour to call.call_end_hour).
user_data fills the agent’s {variables}. The caller ID is from_number, else the agent’s own number; with neither the call is refused with 400. Returns 402 when the workspace is out of credits.
Follow the call with Get a call, its timeline, or webhooks.
Authorization
An API key (X-API-Key or Authorization: Bearer), or a signed-in member with the calls.place permission.
Path parameters
agent_idstringrequiredThe agent's id.
Query parameters
timezonestringdefault: "Asia/Kolkata"IANA time zone for every timestamp in the response (at, date, timestamp and *_at fields), as ISO 8601 with the offset. The X-Timezone header works too; the zone used comes back in the X-Timezone response header. An unknown zone is a 400.
Body application/json
tostringrequiredThe number to call, with country code (+919812345678).
matches ^\+?[0-9]{8,15}$
from_numberstringCaller ID; defaults to the agent's phone_number. Must be a number assigned to your workspace.
matches ^$|^\+?[0-9]{8,15}$
user_dataobjectValues for the agent's {variables}; also sent back on the call record and in webhooks.
ignore_call_windowbooleandefault: falseDial even outside the agent's calling hours.
Response
201Success.
call_idstringstatusenum<string>positionintegerPlace in the workspace's queue (1 is next).
401No credentials, or they are invalid or revoked.
detailstringWhat went wrong, in plain words.
403Your role (or an API key) lacks the permission.
detailstringWhat went wrong, in plain words.
422Validation Error
detailobject[]Show item attributes
locstring | integer[]msgstringtypestring429Over the per-key rate limit; wait for Retry-After.
detailstringWhat went wrong, in plain words.