Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Add a Twilio SendGrid IP Address



API Overview

api-overview page anchor

The IP Address Management API combines functionality that was previously split between the Twilio SendGrid IP Address API and IP Pools API. This functionality includes adding IP addresses to your account, assigning IP addresses to IP Pools and Subusers, among other tasks. More details about each operation can be found in the descriptions and schemas for each endpoint.

(warning)

Warning

The IP Address Management API is in public beta at this time. This means the API and documentation are still in development and subject to change without advanced notice.


POST/v3/send_ips/ips

Base url: https://api.sendgrid.com

This operation adds a Twilio SendGrid IP address to your account. You can also assign up to 100 Subusers to the IP address at creation.


Authentication

authentication page anchor
Property nameTypeRequiredDescription
Authorizationstringrequired
Default: Bearer <<YOUR_API_KEY_HERE>>
SchemaExample
Property nameTypeRequiredDescriptionChild properties
is_auto_warmupbooleanrequired

Indicates if the IP address is set to automatically warmup.


is_parent_assignedbooleanrequired

Indicates if a parent on the account is able to send email from the IP address.


subusersarray[string]Optional

An array of Subuser IDs the IP address will be assigned to.


regionenum<string>Optional

The region to which the IP address is assigned. This property will only be returned if the include_region query parameter is included and set to true as part of the API request.

Default: usPossible values:
euus

include_regionbooleanOptional

Boolean indicating whether or not to return the IP address's region information in the response. (Regional email is in Public Beta and requires SendGrid Pro plan or above.)

Default: false
201400401500

Created

SchemaExample
Property nameTypeRequiredDescriptionChild properties
ipstring

The IP address that was added to your account.


is_auto_warmupboolean

Indicates if the IP address is set to automatically warmup. This parameter is returned only if the IP address is set to automatically warm up.


is_parent_assignedboolean

Indicates if a parent on the account is able to send email from the IP address.


subusersarray[string]

An array of Subuser IDs the IP address was assigned to.


regionenum<string>

The region to which the IP address is assigned. This property will only be returned if the include_region query parameter is included and set to true as part of the API request.

Possible values:
euus

Add a Twilio SendGrid IP Address

add-a-twilio-sendgrid-ip-address page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
curl

_25
const client = require('@sendgrid/client');
_25
client.setApiKey(process.env.SENDGRID_API_KEY);
_25
_25
const data = {
_25
"is_auto_warmup": true,
_25
"is_parent_assigned": true,
_25
"subusers": [
_25
"12345"
_25
]
_25
};
_25
_25
const request = {
_25
url: `/v3/send_ips/ips`,
_25
method: 'POST',
_25
body: data
_25
}
_25
_25
client.request(request)
_25
.then(([response, body]) => {
_25
console.log(response.statusCode);
_25
console.log(response.body);
_25
})
_25
.catch(error => {
_25
console.error(error);
_25
});


Rate this page: