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

Remove an IP address from a pool



API Overview

api-overview page anchor

IP pools allow you to group your dedicated SendGrid IP addresses. For example, you could create separate one pool for your transactional email and another for your marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic.

A single IP address or a range of IP addresses may be dedicated to an account in order to send email for multiple domains. The reputation of this IP is determined by the aggregate performance of all email traffic sent from it.

IP pools can only be used with IP addresses for which you've set up a reverse DNS record.

If an IP pool is not specified for an email, it will use any IP available, including pooled addresses.

Each user can create up to 100 different IP pools.


DELETE/v3/ips/pools/{pool_name}/ips/{ip}

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

This endpoint allows you to remove an IP address from an IP pool.


Authentication

authentication page anchor
Property nameTypeRequiredDescription
Authorizationstringrequired
Default: Bearer <<YOUR_API_KEY_HERE>>
Property nameTypeRequiredDescription
pool_namestringrequired

The name of the IP pool that you are removing the IP address from.


ipstringrequired

The IP address that you wish to remove.

204404
Schema
Property nameTypeRequiredDescriptionChild properties

No properties defined

Remove an IP address from a pool

remove-an-ip-address-from-a-pool page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
curl

_20
const client = require('@sendgrid/client');
_20
client.setApiKey(process.env.SENDGRID_API_KEY);
_20
_20
const pool_name = "per";
_20
const ip = "ZGkrHSypTsudrGkmdpJJ";
_20
_20
const request = {
_20
url: `/v3/ips/pools/${pool_name}/ips/${ip}`,
_20
method: 'DELETE',
_20
_20
}
_20
_20
client.request(request)
_20
.then(([response, body]) => {
_20
console.log(response.statusCode);
_20
console.log(response.body);
_20
})
_20
.catch(error => {
_20
console.error(error);
_20
});


Rate this page: