https://voice-api.relationsai.com/v1 with a rai_test_ key, which never places a real call. It works once the API is enabled for your workspace (private preview: support@relationsai.com). Your key stays in this tab's memory; live keys are refused.Phone numbers
The workspace's phone numbers and which agents use them. Numbers are added and assigned in the console.
List phone numbers
Lists the workspace's phone numbers and the agents that use them. Numbers are added and assigned in the console. A number is listed only when the workspace has proven it holds that number, so a number visible here can be used as a caller number.
outbound_agent_ids are the agents that call from the number; a call without phone_number_id
uses the agent's outbound number. inbound_agent_id answers calls to the number.
Listed by number, in a stable order.
GET /v1/phone-numbers · Operation ID: listPhoneNumbers
query Parameters
limitMaximum number of objects to return, from 1 to 100. Defaults to 25.
cursorThe next_cursor of the previous page. Send it with exactly the same filters as the request that returned it; a changed filter set is 400 invalid_cursor.
List phone numbers › Responses
A page of phone numbers.
objectAlways list.
has_moreTrue when more objects exist after this page.
next_cursorPass as cursor (with the same filters) to fetch the next page. Null on the last page.
Phone numbers on this page.
Retrieve a phone number
Returns one phone number with its capabilities and agent assignments. There is no carrier or account information in this object.
GET /v1/phone-numbers/{phone_number_id} · Operation ID: getPhoneNumber
path Parameters
phone_number_id^pn_[A-Za-z0-9_-]{1,… · requiredThe phone number id (pn_...).
Retrieve a phone number › Responses
The phone number.
id^pn_[A-Za-z0-9_-]{1,… · requiredPhone number id (pn_...).
objectAlways phone_number.
livemodeMode of the key that read it. Numbers are shared configuration, readable in both modes.
number^\+[1-9][0-9]{7,14}$ · requiredThe number in E.164 format.
labelLabel given in the console, if any.
statusactive numbers can be used. pending numbers are still being set up. Open enum.
What the number supports.
inbound_agent_idThe agent of this workspace that answers calls to this number, if any.
outbound_agent_idsAgents of this workspace that call from this number.
sampleTrue only for the built-in sample number that exists in test mode.