Create ip record
IP Records hold information about the IP addresses and ranges (CIDR blocks) that your traffic will be associated with.
Body
-
An integer representing the length of the CIDR prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32.
-
A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
-
An IP address in dotted decimal notation, IPv4 only.
POST
/v1/IpRecords
curl \
-X POST https://voice.twilio.com/v1/IpRecords \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'CidrPrefixLength=42&FriendlyName=string&IpAddress=string'
Request example
{
"CidrPrefixLength": 42,
"FriendlyName": "string",
"IpAddress": "string"
}
Request examples
{
"CidrPrefixLength": 42,
"FriendlyName": "string",
"IpAddress": "string"
}
Response examples (201)
{
"account_sid": "string",
"cidr_prefix_length": 42,
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"friendly_name": "string",
"ip_address": "string",
"sid": "string",
"url": "https://example.com"
}
Response examples (201)
{
"account_sid": "string",
"cidr_prefix_length": 42,
"date_created": "2025-05-04T09:42:00Z",
"date_updated": "2025-05-04T09:42:00Z",
"friendly_name": "string",
"ip_address": "string",
"sid": "string",
"url": "https://example.com"
}