Sample - Twilio API
POST/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json

Create an IP access control list mapping

Creates a new IP access control list mapping for a SIP domain. Provide the account and domain identifiers in the path and submit the IP access control list identifier as form data.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters · 1 body field
AccountSidstringrequired
The unique identifier of the account responsible for the mapping. Must be a 34-character SID matching `AC` followed by 32 hexadecimal characters.
DomainSidstringrequired
The unique identifier of the SIP domain to associate with the IP access control list. Must be a 34-character SID matching `SD` followed by 32 hexadecimal characters.

Form data identifying the IP access control list to associate with the SIP domain.

IpAccessControlListSidstringrequired
The unique id of the IP access control list to map to the SIP domain.

1 status code
201Returns the created IP access control list mapping, including its account SID, SIP domain SID, friendly name, mapping SID, timestamps, and resource URI.
account_sidstringoptional
The unique id of the Account that is responsible for this resource.
date_createdstringoptional
The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
date_updatedstringoptional
The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
domain_sidstringoptional
The unique string that is created to identify the SipDomain resource.
friendly_namestringoptional
A human readable descriptive text for this resource, up to 64 characters long.
sidstringoptional
A 34 character string that uniquely identifies this resource.
uristringoptional
The URI for this resource, relative to `https://api.twilio.com`

Error handling

AccountSid must be a 34-character account SID matching AC followed by 32 hexadecimal characters, and DomainSid must be a 34-character SIP domain SID matching SD followed by 32 hexadecimal characters. IpAccessControlListSid must be provided as a 34-character SID matching AL followed by 32 hexadecimal characters and identify the IP access control list to map.