API Quick Reference
Use this quick reference to get an idea about the general CarrierX API structure, as well as the relations between the different API sections.
CarrierX API Structure
CarrierX API includes the following sections:
-
Core API allows the users to set up their accounts, rent phone numbers, change the rented phone numbers settings, send text messages, manage the storage, etc. Users can also set up endpoints and change their basic configuration. These endpoints, among the others, include the ones for Conference, FlexML, and Mediator. All the further settings are made withing the appropriate endpoints API sections:
-
Conference v2 API and Conference API allow the users to change the advanced settings for Conference endpoints created using the Core API. Users can create meetings and meeting rooms to host audio conferencing. Once you set up a Conference endpoint with the Core API, use the Conference API to create conferences and place calls to them.
-
FlexML API allows the users to change the advanced settings for FlexML endpoints created using the Core API. Users can link the set-up endpoints with the FlexML instructions, and use them to control the call flows. Once you create a FlexML endpoint with the Core API, use the FlexML API to manage the URLs for the instructions and place calls to them.
-
Mediator API allows the users to change the advanced settings for Mediator endpoints created using the Core API. Users can set up dialouts and bindings for their rented phone numbers. Once you create a Mediator endpoint with the Core API, use the Mediator API to manage the intermediary between phone numbers and use them to place the calls.
-
The figure below shows the main classes and objects that exist in the Core, Conference, FlexML and Mediator APIs, and how they are related to each other.
Refer to the sections below for the information about the structure of each of the API sections.
Core API
Core API allows the users to set up their accounts, rent phone numbers, change the rented phone numbers settings, send text messages, manage the storage, etc. Users can also set up endpoints and change their basic configuration.
Core API Structure
The table below contains a quick reference to the methods available to CarrierX API clients. Refer to the Core API Reference page for a complete list of the classes, objects, and methods, and their detailed descriptions.
Class | Object | Action | Method | Path |
---|---|---|---|---|
10DLC Campaigns The 10DLC Campaigns API allows the partners to view their 10DLC messaging campaigns | Campaign | Get 10DLC Campaigns | GET | /10dlc/campaigns |
Get 10DLC Campaign by SID | GET | /10dlc/campaigns/{campaign_sid} | ||
Access Control Collections of rules and policies that determine whether a call or message action is allowed or rejected | Access Control List | Look up effective ACLs for Calls | GET | /accesscontrol/effective_acl/calls |
Look up effective ACLs for SMS | GET | /accesscontrol/effective_acl/sms | ||
Access Control Rule | Create Access Control Rule | POST | /accesscontrol/rules | |
Get Access Control Rules | GET | /accesscontrol/rules | ||
Get Access Control Rule by SID | GET | /accesscontrol/rules/{rule_sid} | ||
Update Access Control Rule | PATCH/PUT | /accesscontrol/rules/{rule_sid} | ||
Delete Access Control Rule | DELETE | /accesscontrol/rules/{rule_sid} | ||
Apps The detailed records of the calls made to the Conference and Mediator endpoints | App DR Conf CDR | Get Conference Calls | GET | /app/conference/calls |
Get Conference Call by SID | GET | /app/conference/calls/{call_sid} | ||
App DR Conf MDR | Get Conference Meetings | GET | /app/conference/meetings | |
Get Conference Meeting by SID | GET | /app/conference/meetings/{meeting_sid} | ||
App DR Mediator | Get Mediator CDRs | GET | /app/mediator/calls | |
Batch The tasks which create, edit, or delete phonenumber and prefix objects | Task | Create Task | POST | /batch/tasks |
Get Tasks | GET | /batch/tasks | ||
Get Task by SID | GET | /batch/tasks/{task_sid} | ||
Update Task | PATCH/PUT | /batch/tasks/{task_sid} | ||
Delete Task | DELETE | /batch/tasks/{task_sid} | ||
Batch Review | Get Task Review Items by SID | GET | /batch/tasks/{task_sid}/review_items | |
Download CSV of Task Review Items by SID | GET | /batch/tasks/{task_sid}/review_items.csv | ||
Billing The Billing API allows the partners to get information about invoices and control their subscriptions | Invoice | Get Invoices | GET | /billing/invoices |
Get Invoice by SID | GET | /billing/invoices/{invoice_sid} | ||
Get Invoice HTML Report by SID | GET | /billing/invoices/{invoice_sid}.html | ||
Send Invoice HTML Report by SID to Email Addresses | POST | /billing/invoices/{invoice_sid}.html/emails | ||
Get Invoice PDF Report by SID | GET | /billing/invoices/{invoice_sid}.pdf | ||
Send Invoice PDF Report by SID to Email Addresses | POST | /billing/invoices/{invoice_sid}.pdf/emails | ||
Rate Subscription | Get Subscriptions | GET | /billing/subscriptions | |
Get Subscription by SID | GET | /billing/subscriptions/{subscription_sid} | ||
Calls The communications between two or more phone numbers | Call Detail Record | Get Call Detail Records | GET | /calls/call_drs |
Get Call Detail Record by SID | GET | /calls/call_drs/{dr_sid} | ||
Rate | Get Inbound PSTN Rates | GET | /calls/rates/inbound/pstn | |
Download CSV of Inbound PSTN Rates | GET | /calls/rates/inbound/pstn/csv | ||
Get Inbound VoIP Rates | GET | /calls/rates/inbound/voip/{sub_type} | ||
Download CSV of Inbound VoIP Rates | GET | /calls/rates/inbound/voip/{sub_type}/csv | ||
Get Outbound PSTN Rates | GET | /calls/rates/outbound/pstn | ||
Download CSV of Outbound PSTN Rates | GET | /calls/rates/outbound/pstn/csv | ||
Get Outbound VoIP Rates | GET | /calls/rates/outbound/voip/{sub_type} | ||
Download CSV of Outbound VoIP Rates | GET | /calls/rates/outbound/voip/{sub_type}/csv | ||
Countries The data about countries: universally accepted formats, mobile country codes, dialing prefixes, and more | Country | Get Countries | GET | /countries |
Get Country by ISO Code | GET | /countries/{country_code} | ||
Get Country by IP Address | GET | /countries/ip/{ip_address} | ||
Endpoints The representations of devices which can receive calls, either external SIP devices, such as an Asterisk server or SIP PBX, or hosted applications that CarrierX runs | Endpoint | Create Endpoint | POST | /endpoints |
Get Endpoints | GET | /endpoints | ||
Get Endpoint by SID | GET | /endpoints/{endpoint_sid} | ||
Update Endpoint | PATCH/PUT | /endpoints/{endpoint_sid} | ||
Delete Endpoint | DELETE | /endpoints/{endpoint_sid} | ||
Lookup The data related to phone numbers and IP addresses | Phonenumber Lookup | Get Details for Phone Number | GET | /lookup/dids/{phonenumber} |
IP2Location | Get Details for IP Address | GET | /lookup/lookup/ip_addresses/{ip_address} | |
CIC Lookup | Get CIC Details for Toll-free Phone Number | GET | /lookup/toll_free/{tollfree_phonenumber}/{calling_number}/{lata} | |
RespOrg Lookup | Get RespOrg Details for Toll-free Phone Number | GET | /lookup/toll_free/{tollfree_phonenumber} | |
OAuth Tokens used in API requests allowing to manage all other Core API objects for which the partner has the appropriate scopes set | OAuth Token | Generate OAuth Bearer Token | POST | /oauth/token |
Generate OAuth Bearer Token for Sub-partner | POST | /oauth/token/{partner_sid} | ||
Revoke OAuth Token | POST | /oauth/revoke | ||
Get All Active OAuth Tokens | GET | /oauth/tokens | ||
Get OAuth Token by SID | GET | /oauth/tokens/{token_sid} | ||
Update OAuth Token | PATCH/PUT | /oauth/tokens/{token_sid} | ||
Get Current Partner | GET | /oauth/whoami | ||
Partner Login | Create Partner Login | POST | /oauth/logins | |
Get Partner Logins | GET | /oauth/logins | ||
Get Partner Login by SID | GET | /oauth/logins/{login_sid} | ||
Update Partner Login | PATCH/PUT | /oauth/logins/{login_sid} | ||
Delete Partner Login | DELETE | /oauth/logins/{login_sid} | ||
Partners Objects and methods related to the individuals or companies with CarrierX credentials | Partner | Create Partner | POST | /partners |
Get Partners | GET | /partners | ||
Get Partner by SID | GET | /partners/{partner_sid} | ||
Update Partner | PATCH/PUT | /partners/{partner_sid} | ||
Delete Partner | DELETE | /partners/{partner_sid} | ||
Billing Method | Register Billing Method | POST | /partners/{partner_sid}/billing_method | |
Get Billing Method by Partner SID | GET | /partners/{partner_sid}/billing_method | ||
Delete Billing Method | DELETE | /partners/{partner_sid}/billing_method | ||
Effective Rate | Get Effective Rates for Partner | GET | /partners/{partner_sid}/effective_rates | |
Phone Numbers Direct Inward Dialing numbers (DIDs) rentable through the CarrierX API, and their related objects and methods | DID | Rent DID | POST | /phonenumber/dids |
Get DIDs | GET | /phonenumber/dids | ||
Get DID by SID | GET | /phonenumber/dids/{did_sid} | ||
Update DID | PATCH/PUT | /phonenumber/dids/{did_sid} | ||
Release DID | DELETE | /phonenumber/dids/{did_sid} | ||
Browse Available DIDs | GET | /phonenumber/available_dids | ||
Get Available DID by SID | GET | /phonenumber/available_dids/{did_sid} | ||
Browse Coverage | GET | /phonenumber/coverage | ||
DID Messaging Enablement Object | Enable or Disable SMS/MMS Messaging for DID | POST | /phonenumber/{did_sid}/messaging | |
Get SMS/MMS Messaging Information for DID | GET | /phonenumber/{did_sid}/messaging | ||
DID Classification | Get DID Classifications | GET | /phonenumber/classifications | |
Get DID Classification by SID | GET | /phonenumber/classifications/{classification_sid} | ||
DID Emergency | Get DID Emergency | GET | /phonenumber/dids/{did_sid}/emergency | |
Update DID Emergency | PATCH/PUT | /phonenumber/dids/{did_sid}/emergency | ||
Delete DID Emergency | DELETE | /phonenumber/dids/{did_sid}/emergency | ||
DID Line Information | Get DID Line Information | GET | /phonenumber/dids/{did_sid}/line_information | |
Update DID Line Information | PATCH/PUT | /phonenumber/dids/{did_sid}/line_information | ||
Delete DID Line Information | DELETE | /phonenumber/dids/{did_sid}/line_information | ||
DID Group | Create DID Group | POST | /phonenumber/did_groups | |
Get DID Groups | GET | /phonenumber/did_groups | ||
Get DID Group by SID | GET | /phonenumber/did_groups/{did_group_sid} | ||
Update DID Group | PATCH/PUT | /phonenumber/did_groups/{did_group_sid} | ||
Delete DID Group | DELETE | /phonenumber/did_groups/{did_group_sid} | ||
Prefix | Create Prefix | POST | /phonenumber/prefixes | |
Get Prefixes | GET | /phonenumber/prefixes | ||
Get Prefix by SID | GET | /phonenumber/prefixes/{prefix_sid} | ||
Update Prefix | PATCH/PUT | /phonenumber/prefixes/{prefix_sid} | ||
Delete Prefix | DELETE | /phonenumber/prefixes/{prefix_sid} | ||
LRN Prefix | Create LRN Prefix | POST | /phonenumber/lrn_prefixes | |
Get LRN Prefixes | GET | /phonenumber/lrn_prefixes | ||
Get LRN Prefix by SID | GET | /phonenumber/lrn_prefixes/{lrn_prefix_sid} | ||
Update LRN Prefix | PATCH/PUT | /phonenumber/lrn_prefixes/{lrn_prefix_sid} | ||
Delete LRN Prefix | DELETE | /phonenumber/lrn_prefixes/{lrn_prefix_sid} | ||
Rate DID Tier | Get Rates | GET | /phonenumber/rates | |
Download CSV with Rates | GET | /phonenumber/rates/csv | ||
Short Code | Get Short Codes | GET | /phonenumber/short_codes | |
Get Short Code by SID | GET | /phonenumber/short_codes/{short_code_sid} | ||
Update Short Code | PATCH/PUT | /phonenumber/short_codes/{short_code_sid} | ||
Push The operating system-supported messages that are sent to mobile devices | Application | Create Application to Send Push Notifications | POST | /push/applications |
Get Applications | GET | /push/applications | ||
Get Application by SID | GET | /push/applications/{application_sid} | ||
Update Application | PATCH/PUT | /push/applications/{application_sid} | ||
Delete Application | DELETE | /push/applications/{application_sid} | ||
Device | Create Device to Send Push Notifications | POST | /push/devices | |
Get Devices | GET | /push/devices | ||
Get Device by SID | GET | /push/devices/{device_sid} | ||
Update Device | PATCH/PUT | /push/devices/{device_sid} | ||
Delete Device | DELETE | /push/devices/{device_sid} | ||
Notification | Send Notification | POST | /push/notifications | |
Rating The rates that will be applied when exchanging voice calls and text or multimedia messages between these phones and CarrierX rented DIDs | Rating Call Response | Get PSTN Call Rate | GET | /rating/calls/pstn |
Get VoIP Call Rate | GET | /rating/calls/voip/{sub_type} | ||
Rating MCC/MNC Response | Get MMS Rate | GET | /rating/mms/{sub_type} | |
Get SMS Rate | GET | /rating/sms/{sub_type} | ||
Shortener The means to create shortened versions of URLs using custom domains | Domain | Create Domain | POST | /shortener/domains |
Get Domains | GET | /shortener/domains | ||
Get Domain by SID | GET | /shortener/domains/{domain_sid} | ||
Update Domain | PATCH/PUT | /shortener/domains/{domain_sid} | ||
Delete Domain | DELETE | /shortener/domains/{domain_sid} | ||
Link | Create Link | POST | /shortener/links | |
Get Links | GET | /shortener/links | ||
Get Link by SID | GET | /shortener/links/{link_sid} | ||
Update Link | PATCH/PUT | /shortener/links/{link_sid} | ||
Delete Link | DELETE | /shortener/links/{link_sid} | ||
SMS The means to send text and multimedia messages and view their detailed information | SMS | Send Message | POST | /sms/messages |
Get Messages | GET | /sms/messages | ||
Get Message by SID | GET | /sms/messages/{message_sid} | ||
Update Message | PATCH/PUT | /sms/messages/{message_sid} | ||
SMS Detail Record | Get Message Detail Records | GET | /sms/message_drs | |
Get Message Detail Record by SID | GET | /sms/message_drs/{dr_sid} | ||
Update Message Detail Record | PATCH/PUT | /sms/message_drs/{dr_sid} | ||
Rate | Get Outbound Rates | GET | /sms/rates/outbound/{sub_type} | |
Download CSV with Outbound Rates | GET | /sms/rates/outbound/{sub_type}/csv | ||
Storage The objects and methods allowing the partners to upload and store files inside the CarrierX containers | Container | Create Container | POST | /storage/containers |
Get Containers | GET | /storage/containers | ||
Get Container by SID | GET | /storage/containers/{container_sid} | ||
Update Container | PATCH/PUT | /storage/containers/{container_sid} | ||
Delete Container | DELETE | /storage/containers/{container_sid} | ||
File | Upload File | POST | /storage/files | |
Get Files | GET | /storage/files | ||
Get File by SID | GET | /storage/files/{file_sid} | ||
Download Data by File SID | GET | /storage/files/{file_sid}/data | ||
Update File | PATCH/PUT | /storage/files/{file_sid} | ||
Delete File | DELETE | /storage/files/{file_sid} | ||
Trunk Groups The settings which determine the call routing, defining to which trunks these calls are sent and how they are handled | Trunk Group | Create Trunk Group | POST | /trunk_groups |
Get Trunk Groups | GET | /trunk_groups | ||
Get Trunk Group by SID | GET | /trunk_groups/{trunk_group_sid} | ||
Update Trunk Group | PATCH/PUT | /trunk_groups/{trunk_group_sid} | ||
Delete Trunk Group | DELETE | /trunk_groups/{trunk_group_sid} | ||
Trunk | Create Trunk | POST | /trunk_groups/{trunk_group_sid}/trunks | |
Get Trunks | GET | /trunk_groups/{trunk_group_sid}/trunks | ||
Get Trunk by SID | GET | /trunk_groups/{trunk_group_sid}/trunks/{trunk_sid} | ||
Update Trunk | PATCH/PUT | /trunk_groups/{trunk_group_sid}/trunks/{trunk_sid} | ||
Delete Trunk | DELETE | /trunk_groups/{trunk_group_sid}/trunks/{trunk_sid} | ||
TTS The objects and methods allowing the partners to record lifelike voice messages using CarrierX text-to-speech API (TTS) | TTS Text | Create TTS Text | POST | /tts/texts |
TTS Voice | Get TTS Voices | GET | /tts/voices | |
Get TTS Voice by SID | GET | /tts/voices/{voice_sid} | ||
Verification The means to send out verification emails and text messages, and verify the email address through a token | Verification Email | Send Verification SMS | POST | /verification/sms |
Send Verification Email | POST | /verification/email | ||
Verify Email by Token | GET | /verification/email/tokens/{token} | ||
Email Template | Get Email Templates | GET | /verification/email/templates | |
Get Email Template by SID | GET | /verification/email/templates/{template_sid} |
Administrator Core API Methods
The Administrator Core API Methods table contains the methods available to the users who have admin
scopes enabled on their accounts. These methods can be specific to the administrator users only, or they can be similar to the methods available to the common users, but the responses to them contain extended set of attributes.
Class | Object | Action | Method | Path |
---|---|---|---|---|
10DLC Campaigns The 10DLC Campaigns API allows the administrators to create messaging campaigns for the partners | Campaign | Create 10DLC Campaign | POST | /admin/10dlc/campaigns |
Get 10DLC Campaigns | GET | /admin/10dlc/campaigns | ||
Get 10DLC Campaign by SID | GET | /admin/10dlc/campaigns/{campaign_sid} | ||
Update 10DLC Campaign | PATCH/PUT | /admin/10dlc/campaigns/{campaign_sid} | ||
Delete 10DLC Campaign | DELETE | /admin/10dlc/campaigns/{campaign_sid} | ||
Audit The history of changes applied to the CarrierX API objects | Audit Record | Get Audit Records | GET | /admin/audit/records |
Batch The tasks which create, edit, or delete phonenumber and prefix objects | Task | Create Task | POST | /admin/batch/tasks |
Get Tasks | GET | /admin/batch/tasks | ||
Get Task by SID | GET | /admin/batch/tasks/{task_sid} | ||
Update Task | PATCH/PUT | /admin/batch/tasks/{task_sid} | ||
Delete Task | DELETE | /admin/batch/tasks/{task_sid} | ||
Batch Review | Get Task Review Items by SID | GET | /admin/batch/tasks/{task_sid}/review_items | |
Download CSV of Task Review Items by SID | GET | /admin/batch/tasks/{task_sid}/review_items.csv | ||
Billing The Billing API allows the administrators to get information about invoices and view/create subscriptions for the partners | Invoice | Get Invoices | GET | /admin/billing/invoices |
Rate Subscription | Create Subscription | POST | /admin/billing/subscriptions | |
Get Subscriptions | GET | /admin/billing/subscriptions | ||
Get Subscription by SID | GET | /admin/billing/subscriptions/{subscription_sid} | ||
Delete Subscription | DELETE | /admin/billing/subscriptions/{subscription_sid} | ||
Brands The Brands API allows the administrators to customize invoicing | Brand | Create Brand | POST | /admin/brands |
Get Brands | GET | /admin/brands | ||
Get Brand by SID | GET | /admin/brands/{brand_sid} | ||
Update Brand | PATCH/PUT | /admin/brands/{brand_sid} | ||
Delete Brand | DELETE | /admin/brands/{brand_sid} | ||
Endpoints The representations of devices which can receive calls, either external SIP devices, such as an Asterisk server or SIP PBX, or hosted applications that CarrierX runs | Endpoint | Create Endpoint | POST | /admin/endpoints |
Get Endpoints | GET | /admin/endpoints | ||
Get Endpoint by SID | GET | /admin/endpoints/{endpoint_sid} | ||
Update Endpoint | PATCH/PUT | /admin/endpoints/{endpoint_sid} | ||
Delete Endpoint | DELETE | /admin/endpoints/{endpoint_sid} | ||
Endpoint Template | Create Endpoint Template | POST | /admin/endpoints/templates | |
Get Endpoint Templates | GET | /admin/endpoints/templates | ||
Get Endpoint Template by SID | GET | /admin/endpoints/templates/{template_sid} | ||
Update Endpoint Template | PATCH/PUT | /admin/endpoints/templates/{template_sid} | ||
Delete Endpoint Template | DELETE | /admin/endpoints/templates/{template_sid} | ||
OAuth Tokens used in API requests allowing to manage all other Core API objects for which the partner has the appropriate scopes set | OAuth Token | Generate OAuth Bearer Token | POST | /admin/oauth/token |
Generate OAuth Bearer Token for Sub-partner | POST | /admin/oauth/token/{partner_sid} | ||
Revoke OAuth Token | POST | /admin/oauth/revoke | ||
Get All Active OAuth Tokens | GET | /admin/oauth/tokens | ||
Get OAuth Token by SID | GET | /admin/oauth/tokens/{token_sid} | ||
Update OAuth Token | PATCH/PUT | /admin/oauth/tokens/{token_sid} | ||
Get Current Partner | GET | /admin/oauth/whoami | ||
Partner Login | Create Partner Login | POST | /admin/oauth/logins | |
Get Partner Logins | GET | /admin/oauth/logins | ||
Get Partner Login by SID | GET | /admin/oauth/logins/{login_sid} | ||
Update Partner Login | PATCH/PUT | /admin/oauth/logins/{login_sid} | ||
Delete Partner Login | DELETE | /admin/oauth/logins/{login_sid} | ||
OAuth Client | Create OAuth Client | POST | /admin/oauth/clients | |
Get OAuth Clients | GET | /admin/oauth/clients | ||
Get OAuth Client by SID | GET | /admin/oauth/clients/{client_sid} | ||
Update OAuth Client | PATCH/PUT | /admin/oauth/clients/{client_sid} | ||
Delete OAuth Client | DELETE | /admin/oauth/clients/{client_sid} | ||
Partners Objects and methods related to the individuals or companies with CarrierX credentials | Partner | Activate Partner | POST | /admin/partners/{partner_sid}/activate |
Get Partners | GET | /admin/partners | ||
Get Partner by SID | GET | /admin/partners/{partner_sid} | ||
Update Partner | PATCH/PUT | /admin/partners/{partner_sid} | ||
Set Billing Day for Partner | POST | /admin/partners/{partner_sid}/billing/set_billing_day | ||
Reset Billing for Partner | POST | /admin/partners/{partner_sid}/billing/reset | ||
Deactivate Partner | POST | /admin/partners/{partner_sid}/deactivate | ||
Billing Method | Get Billing Method by Partner SID | GET | /admin/partners/{partner_sid}/billing_method | |
Phone Numbers Direct Inward Dialing numbers (DIDs) rentable through the CarrierX API and their related objects and methods | DID | Add New DID | POST | /admin/phonenumber/did_inventory |
Rent DID | POST | /admin/phonenumber/did_inventory | ||
Get DIDs | GET | /admin/phonenumber/did_inventory | ||
GET | /admin/phonenumber/dids | |||
GET | /admin/phonenumber/available_dids | |||
Get DID by SID | GET | /admin/phonenumber/did_inventory/{did_sid} | ||
GET | /admin/phonenumber/dids/{did_sid} | |||
GET | /admin/phonenumber/available_dids/{did_sid} | |||
Update DID | PATCH/PUT | /admin/phonenumber/did_inventory/{did_sid} | ||
PATCH/PUT | /admin/phonenumber/dids/{did_sid} | |||
PATCH/PUT | /admin/phonenumber/available_dids/{did_sid} | |||
Release DID Immediately | POST | /admin/phonenumber/did_inventory/{did_sid}/release | ||
Delete DID | DELETE | /admin/phonenumber/did_inventory/{did_sid} | ||
DELETE | /admin/phonenumber/dids/{did_sid} | |||
Reactivate DID for Partner | POST | /admin/phonenumber/did_inventory/{did_sid}/reactivate | ||
Reassign DID | POST | /admin/phonenumber/did_inventory/{did_sid}/reassign | ||
Check Phone Number | GET | /phonenumber/{phonenumber}/check | ||
DID Messaging Enablement Object | Enable or Disable SMS/MMS Messaging for DID | POST | /admin/phonenumber/{did_sid}/messaging | |
Get SMS/MMS Messaging Information for DID | GET | /admin/phonenumber/{did_sid}/messaging | ||
DID Classification | Create DID Classification | POST | /admin/phonenumber/classifications | |
Get DID Classifications | GET | /admin/phonenumber/classifications | ||
Get DID Classification by SID | GET | /admin/phonenumber/classifications/{classification_sid} | ||
Update DID Classification | PATCH/PUT | /admin/phonenumber/classifications/{classification_sid} | ||
Delete DID Classification | DELETE | /admin/phonenumber/classifications/{classification_sid} | ||
DID History | Get DID History | GET | /admin/phonenumber/did_inventory/{did_sid}/history | |
Location Routing Number | Create Location Routing Number | POST | /admin/phonenumber/lrns | |
Get Location Routing Numbers | GET | /admin/phonenumber/lrns | ||
Get Location Routing Number by SID | GET | /admin/phonenumber/lrns/{lrn_sid} | ||
Update Location Routing Number | PATCH/PUT | /admin/phonenumber/lrns/{lrn_sid} | ||
Delete Location Routing Number | DELETE | /admin/phonenumber/lrns/{lrn_sid} | ||
Properties The list of all current global system properties with their default values | Property | Get System Attributes (Properties) | GET | /admin/properties |
Rating The rates that will be applied when calling the phone number or sending text messages to them from CarrierX rented DIDs | Rate Assignment | Assign Rate Plan to Partner | POST | /admin/rating/assignments |
Get Rate Assignments | GET | /admin/rating/assignments | ||
Get Rate Assignment by SID | GET | /admin/rating/assignments/{assignment_sid} | ||
Rate Plan | Upload Rate Plan File | POST | /admin/rating/plans | |
Get Rate Plans | GET | /admin/rating/plans | ||
Get Rate Plan by SID | GET | /admin/rating/plans/{plan_sid} | ||
Download CSV with Rates for Rate Plan | GET | /admin/rating/plans/{plan_sid}/rates/csv | ||
Download JSON with Rates for Rate Plan | GET | /admin/rating/plans/{plan_sid}/rates/json | ||
Delete Rate Plan | GET | /admin/rating/plans/{plan_sid} | ||
Consolidated Carrier | Get Carriers | GET | /admin/rating/carriers | |
Get Carrier by SID | GET | /admin/rating/carriers/{carrier_sid} | ||
Routing The means to view and create routing locations which represent one of the locations where CarrierX runs a SIP switch | Routing Location | Create Routing Location | POST | /admin/routing/locations |
Get Routing Locations | GET | /admin/routing/locations | ||
Get Routing Location by SID | GET | /admin/routing/locations/{location_sid} | ||
Update Routing Location | PATCH/PUT | /admin/routing/locations/{location_sid} | ||
Delete Routing Location | DELETE | /admin/routing/locations/{location_sid} | ||
Routing IP Profile | Create Routing IP Profile | POST | /admin/routing/ip_profiles | |
Get Routing IP Profiles | GET | /admin/routing/ip_profiles | ||
Get Routing IP Profile by SID | GET | /admin/routing/ip_profiles/{ip_profile_sid} | ||
Update Routing IP Profile | PATCH/PUT | /admin/routing/ip_profiles/{ip_profile_sid} | ||
Delete Routing IP Profile | DELETE | /admin/routing/ip_profiles/{ip_profile_sid} | ||
SMS The means to send text and multimedia messages and view their detailed information | SMS Provider | Create SMS Provider | POST | /admin/sms/providers |
Get SMS Providers | GET | /admin/sms/providers | ||
Get SMS Provider by SID | GET | /admin/sms/providers/{provider_sid} | ||
Update SMS Provider | PATCH/PUT | /admin/sms/providers/{provider_sid} | ||
Delete SMS Provider | DELETE | /admin/sms/providers/{provider_sid} | ||
Storage The objects and methods allowing the partners to upload and store files inside the CarrierX containers | Container | Create Container | POST | /admin/storage/containers |
Get Containers | GET | /admin/storage/containers | ||
Get Container by SID | GET | /admin/storage/containers/{container_sid} | ||
Update Container | PATCH/PUT | /admin/storage/containers/{container_sid} | ||
Delete Container | DELETE | /admin/storage/containers/{container_sid} | ||
File | Upload File | POST | /admin/storage/files | |
Get Files | GET | /admin/storage/files | ||
Get File by SID | GET | /admin/storage/files/{file_sid} | ||
Download Data by File SID | GET | /admin/storage/files/{file_sid}/data | ||
Update File | PATCH/PUT | /admin/storage/files/{file_sid} | ||
Delete File | DELETE | /admin/storage/files/{file_sid} | ||
Trunk Groups The settings which determine the call routing, defining to which trunks these calls are sent and how they are handled | Trunk Group | Create Trunk Group | POST | /admin/trunk_groups |
Get Trunk Groups | GET | /admin/trunk_groups | ||
Get Trunk Group by SID | GET | /admin/trunk_groups/{trunk_group_sid} | ||
Update Trunk Group | PATCH/PUT | /admin/trunk_groups/{trunk_group_sid} | ||
Delete Trunk Group | DELETE | /admin/trunk_groups/{trunk_group_sid} | ||
Trunk | Create Trunk | POST | /admin/trunk_groups/{trunk_group_sid}/trunks | |
Get Trunks | GET | /admin/trunk_groups/{trunk_group_sid}/trunks | ||
Get Trunk by SID | GET | /admin/trunk_groups/{trunk_group_sid}/trunks/{trunk_sid} | ||
Update Trunk | PATCH/PUT | /admin/trunk_groups/{trunk_group_sid}/trunks/{trunk_sid} | ||
Delete Trunk | DELETE | /admin/trunk_groups/{trunk_group_sid}/trunks/{trunk_sid} | ||
TTS The objects and methods allowing the partners to record lifelike voice messages using CarrierX text-to-speech API (TTS) | TTS Text | Create TTS Text | POST | /admin/tts/texts |
TTS Voice | Create TTS Voice | POST | /admin/tts/voices | |
Get TTS Voices | GET | /admin/tts/voices | ||
Get TTS Voice by SID | GET | /admin/tts/voices/{voice_sid} | ||
Update TTS Voice | PATCH/PUT | /admin/tts/voices/{voice_sid} | ||
Delete TTS Voice | DELETE | /admin/tts/voices/{voice_sid} |
System Core API Methods
The System Core API Methods table contains the methods available to the users who have system
scopes enabled on their accounts. These methods are specific to the system users only.
Class | Object | Action | Method | Path |
---|---|---|---|---|
Endpoints The representations of devices which can receive calls, either external SIP devices, such as an Asterisk server or SIP PBX, or hosted applications that CarrierX runs | Endpoint | Get Endpoint by Phone Number and Type | GET | /system/endpoint |
Prerouting The means for troubleshooting the issues that occur with the locations or DIDs | Prerouting | Create Prerouting | POST | /system/prerouting/preroutes |
Get Preroutings | GET | /system/prerouting/preroutes | ||
Get Prerouting by SID | GET | /system/prerouting/preroutes/{prerouting_sid} | ||
Update Prerouting | PATCH/PUT | /system/prerouting/preroutes/{prerouting_sid} | ||
Delete Prerouting | DELETE | /system/prerouting/preroutes/{prerouting_sid} | ||
Prerouting Pool | Create Prerouting Pool | POST | /system/prerouting/pools | |
Get Prerouting Pools | GET | /system/prerouting/pools | ||
Get Prerouting Pool by SID | GET | /system/prerouting/preroutes/{prerouting_sid} | ||
Update Prerouting Pool | PATCH/PUT | /system/prerouting/pools/{pool_sid} | ||
Delete Prerouting Pool | DELETE | /system/prerouting/pools/{pool_sid} | ||
Rating The rates that will be applied when calling the phone number or sending text messages to them from CarrierX rented DIDs | LCR Response | Get LCR Rate | GET | /system/rating/lcr |
Routing The means to view and create routing locations which represent one of the locations where CarrierX runs a SIP switch | Routing IP Profile | Get Routing IP Profiles | GET | /system/routing/ip_profiles |
Get Routing IP Profile by SID | GET | /system/routing/ip_profiles/{ip_profile_sid} | ||
Shortener The means to create shortened versions of URLs using custom domains | Link | Update Link Hits and Access Date | POST | /system/links/{link_sid}/hit |
SMS Routing The means to see and setup how SMS messages get routed internally through the system and which vendor is supposed to handle an SMS based on certain settings | SMS Route | Create SMS Route | POST | /system/sms/routes |
Get SMS Routes | GET | /system/sms/routes | ||
Get SMS Route by SID | GET | /system/sms/routes/{sms_route_sid} | ||
Update SMS Route | PATCH/PUT | /system/sms/routes/{sms_route_sid} | ||
Delete SMS Route | DELETE | /system/sms/routes/{sms_route_sid} | ||
Storage The objects and methods allowing the partners to upload and store files inside the CarrierX containers | File Credentials | Get File Details | GET | /system/storage/files |
Conference API
Refer to the new Conference v2 API documentation for the most up-to-date information.
Conference API allows the users to change the advanced settings for Conference endpoints created using the Core API. Users can create meetings and meeting rooms to host audio conferencing.
Conference API Structure
The table below contains a quick reference to the methods available to CarrierX Conference API clients. Refer to the Conference API Reference page for a complete list of the classes, objects, and methods, and their detailed descriptions.
Class | Object | Action | Method | Path |
---|---|---|---|---|
Call Flows The means to define the way that calls are handled | Call Flow | Get Call Flows | GET | /callFlows |
Get Call Flow by ID | GET | /callFlows/{id} | ||
Calls Objects created automatically by the server when a user dials a phone number associated with a meeting room, and deleted when the call is over | Call | Get Calls | GET | /calls |
Get Call by ID | GET | /calls/{id} | ||
Update Call | PUT | /calls/{id} | ||
Delete Call | DELETE | /calls/{id} | ||
DIDs Direct Inward Dialing numbers (DIDs) rentable through the CarrierX API, and their related objects and methods | DID | Create DID | POST | /dids |
Get DIDs | GET | /dids | ||
Get DID by ID | GET | /dids/{id} | ||
Update DID | PUT | /dids/{id} | ||
Delete DID | DELETE | /dids/{id} | ||
DID Groups Sets of phone numbers rented through CarrierX and associated with a specific conference | DID Group | Create DID Group | POST | /didGroups |
Get DID Groups | GET | /didGroups | ||
Get DID Group by ID | GET | /didGroups/{id} | ||
Update DID Group | PUT | /didGroups/{id} | ||
Delete DID Group | DELETE | /didGroups/{id} | ||
Meetings Objects generated once a meeting begins, and existing as long as the meeting is occurring | Meeting | Get Meetings | GET | /meetings |
Get Meeting by meetingNumber | GET | /meetings/{meetingNumber} | ||
Get Meeting Attributes | GET | /meetings/{meetingNumber}/attributes | ||
Update Meeting Attributes | PUT | /meetings/{meetingNumber}/attributes/{name} | ||
Delete Meeting | DELETE | /meetings/{meetingNumber} | ||
Meeting Rooms Entities that hold meeting configurations, DID group references, contain role and access codes information | Meeting Room | Create Meeting Room | POST | /meetingRooms |
Get Meeting Rooms | GET | /meetingRooms | ||
Get Meeting Room by meetingNumber | GET | /meetingRooms/{meetingNumber} | ||
Update Meeting Room | PUT | /meetingRooms/{meetingNumber} | ||
Delete Meeting Room | DELETE | /meetingRooms/{meetingNumber} | ||
Subscribers Real persons or organizations with names, phone numbers, email addresses, etc., which are not directly associated with the meeting room access codes, but can have meeting room information | Subscriber | Create Subscriber | POST | /subscribers |
Get Current Subscriber | GET | /subscribers/whoami | ||
Get Subscribers | GET | /subscribers | ||
Get Subscriber by SID | GET | /subscribers/{sid} | ||
Update Subscriber | PUT | /subscribers/{sid} | ||
Delete Subscriber | DELETE | /subscribers/{sid} | ||
Log Out Subscriber | POST | /subscribers/logout | ||
File Descriptor | Upload Media File | POST | /subscribers/{sid}/files | |
Get Files | GET | /subscribers/{sid}/files | ||
Delete Files | DELETE | /subscribers/{sid}/files | ||
Delete File by Name | DELETE | /subscribers/{sid}/files/{fileName} | ||
Meeting Room | Create Meeting Room | POST | /subscribers/{sid}/meetingRooms | |
Get Meeting Rooms | GET | /subscribers/{sid}/meetingRooms | ||
Get Meeting Room by meetingNumber | GET | /subscribers/{sid}/meetingRooms/{meetingNumber} | ||
Update Meeting Room | PUT | /subscribers/{sid}/meetingRooms/{meetingNumber} | ||
Delete Meeting Room | DELETE | /subscribers/{sid}/meetingRooms/{meetingNumber} | ||
Meeting Key | Create Meeting Key | POST | /subscribers/{sid}/meetingRooms/{meetingNumber}/keychain | |
Get Meeting Keys | GET | /subscribers/{sid}/meetingRooms/{meetingNumber}/keychain | ||
Get Meeting Key by ID | GET | /subscribers/{sid}/meetingRooms/{meetingNumber}/keychain/{meetingKeyId} | ||
Update Meeting Key | PUT | /subscribers/{sid}/meetingRooms/{meetingNumber}/keychain/{meetingKeyId} | ||
Delete Meeting Key | DELETE | /subscribers/{sid}/meetingRooms/{meetingNumber}/keychain/{meetingKeyId} |
Conference v2 API
Conference v2 API allows the users to change the advanced settings for Conference v2 endpoints created using the Core API. Users can create meetings and meeting rooms to host audio conferencing.
Conference v2 API Structure
The table below contains a quick reference to the methods available to CarrierX Conference v2 API clients. Refer to the Conference v2 API Reference page for a complete list of the classes, objects, and methods, and their detailed descriptions.
Class | Object | Action | Method | Path |
---|---|---|---|---|
Accounts Objects that hold the settings for a specific Conference application endpoint | Account | Get Accounts | GET | /accounts |
Get Account by SID | GET | /accounts/{account_sid} | ||
Update Account | PATCH/PUT | /accounts/{account_sid} | ||
Get Current Account | GET | /accounts/whoami | ||
Calls Objects created automatically by the server when a user dials a phone number associated with a meeting room, and deleted when the call is over | Call | Get Calls | GET | /calls |
Get Call by SID | GET | /calls/{call_sid} | ||
Update Call | PATCH | /calls/{call_sid} | ||
Call Flows The means to define the way that calls are handled | Call Flow | Get Call Flows | GET | /call_flows |
Get Call Flow by SID | GET | /call_flows/{call_flow_sid} | ||
DIDs Direct Inward Dialing numbers (DIDs) rentable through the CarrierX API, and their related objects and methods | DID | Get DIDs | GET | /dids |
Get DID by SID | GET | /dids/{did_sid} | ||
Update DID | PATCH/PUT | /dids/{did_sid} | ||
DID Groups Sets of phone numbers rented through CarrierX and associated with a specific conference | DID Group | Create DID Group | POST | /did_groups |
Get DID Groups | GET | /did_groups | ||
Get DID Group by SID | GET | /did_groups/{did_group_sid} | ||
Update DID Group | PATCH/PUT | /did_groups/{did_group_sid} | ||
Delete DID Group | DELETE | /did_groups/{did_group_sid} | ||
Meetings Objects generated once a meeting begins, and existing as long as the meeting is occurring | Meeting | Get Meetings | GET | /meetings |
Get Meeting by SID | GET | /meetings/{meeting_sid} | ||
Update Meeting | PATCH | /meetings/{meeting_sid} | ||
Delete Meeting | DELETE | /meetings/{meeting_sid} | ||
Meeting Rooms Entities that hold meeting configurations, DID group references, contain role and access codes information | Meeting Room | Create Meeting Room | POST | /meeting_rooms |
Get Meeting Rooms | GET | /meeting_rooms | ||
Get Meeting Room by SID | GET | /meeting_rooms/{meeting_room_sid} | ||
Update Meeting Room | PATCH/PUT | /meeting_rooms/{meeting_room_sid} | ||
Delete Meeting Room | DELETE | /meeting_rooms/{meeting_room_sid} |
FlexML API
FlexML API allows the users to change the advanced settings for FlexML endpoints created using the Core API. Users can link the set-up endpoints with the FlexML instructions, and use them to control the call flows.
FlexML API Structure
The table below contains a quick reference to the methods available to CarrierX FlexML API clients. Refer to the FlexML API Reference page for a complete list of the classes, objects, and methods, and their detailed descriptions.
Class | Object | Action | Method | Path |
---|---|---|---|---|
Accounts Objects that hold the settings for a specific FlexML application endpoint | Account | Get Accounts | GET | /accounts |
Get Account by SID | GET | /accounts/{account_sid} | ||
Update Account | PATCH/PUT | /accounts/{account_sid} | ||
Calls Objects created when the CarrierX system dials out to a phone number | Call | Create Call | POST | /calls |
Get Calls | GET | /calls | ||
Get Call by SID | GET | /calls/{call_sid} | ||
Update Call | PATCH/PUT | /calls/{call_sid} | ||
Delete Call | DELETE | /calls/{call_sid} | ||
DIDs Direct Inward Dialing numbers (DIDs) rentable through the CarrierX API, and their related objects and methods | DID | Get DIDs | GET | /dids |
Get DID by SID | GET | /dids/{did_sid} | ||
Update DID | PATCH/PUT | /dids/{did_sid} |
Mediator API
Mediator API allows the users to change the advanced settings for Mediator endpoints created using the Core API. Users can set up dialouts and bindings for their rented phone numbers.
Mediator API Structure
The table below contains a quick reference to the methods available to CarrierX Mediator API clients. Refer to the Mediator API Reference page for a complete list of the classes, objects, and methods, and their detailed descriptions.
Class | Object | Action | Method | Path |
---|---|---|---|---|
Accounts Objects that hold the data associated with the Mediator API and used to view information about the partner related to the Mediator endpoint | Account | Get Accounts | GET | /accounts |
Get Account by SID | GET | /accounts/{account_sid} | ||
Bindings Entities that enable call forwarding from one phone number to another | Binding | Create Binding | POST | /bindings |
Get Bindings | GET | /bindings | ||
Get Binding by SID | GET | /bindings/{binding_sid} | ||
Update Binding | PATCH/PUT | /bindings/{binding_sid} | ||
Delete Binding | DELETE | /bindings/{binding_sid} | ||
Dialouts Entities that allow placing a phone call to two phone numbers, and enable both people to speak to one another | Dialout | Create Dialout | POST | /dialouts |
Get Dialouts | GET | /dialouts | ||
Get Dialout by SID | GET | /dialouts/{dialout_sid} | ||
Update Dialout | PATCH/PUT | /dialouts/{dialout_sid} | ||
Delete Dialout | DELETE | /dialouts/{dialout_sid} | ||
DIDs Direct Inward Dialing numbers (DIDs) rentable through the CarrierX API, and their related objects and methods | DID | Get DIDs | GET | /dids |
Get DID by SID | GET | /dids/{did_sid} |