Retrieve a list of domains belonging to the account used to make the request
Custom DNS hostnames that can accept SIP traffic
Retrieve a list of domains belonging to the account used to make the request
Path parameters
-
The SID of the Account that created the SipDomain resources to read.
Query parameters
-
PageSize integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
.
GET /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json
curl \
-X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json \
--user "username:password"
Response examples (200)
{
"domains": [
{
"account_sid": "string",
"api_version": "string",
"auth_type": "string",
"byoc_trunk_sid": "string",
"date_created": "string",
"date_updated": "string",
"domain_name": "string",
"emergency_caller_sid": "string",
"emergency_calling_enabled": true,
"friendly_name": "string",
"secure": true,
"sid": "string",
"sip_registration": true,
"subresource_uris": {},
"uri": "https://example.com",
"voice_fallback_method": "HEAD",
"voice_fallback_url": "https://example.com",
"voice_method": "HEAD",
"voice_status_callback_method": "HEAD",
"voice_status_callback_url": "https://example.com",
"voice_url": "https://example.com"
}
],
"end": 42,
"first_page_uri": "https://example.com",
"next_page_uri": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_uri": "https://example.com",
"start": 42,
"uri": "https://example.com"
}
Response examples (200)
{
"domains": [
{
"account_sid": "string",
"api_version": "string",
"auth_type": "string",
"byoc_trunk_sid": "string",
"date_created": "string",
"date_updated": "string",
"domain_name": "string",
"emergency_caller_sid": "string",
"emergency_calling_enabled": true,
"friendly_name": "string",
"secure": true,
"sid": "string",
"sip_registration": true,
"subresource_uris": {},
"uri": "https://example.com",
"voice_fallback_method": "HEAD",
"voice_fallback_url": "https://example.com",
"voice_method": "HEAD",
"voice_status_callback_method": "HEAD",
"voice_status_callback_url": "https://example.com",
"voice_url": "https://example.com"
}
],
"end": 42,
"first_page_uri": "https://example.com",
"next_page_uri": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_uri": "https://example.com",
"start": 42,
"uri": "https://example.com"
}