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

Retrieve all assigned IPs



API Overview

api-overview page anchor

Elements that can be shared among more than one endpoint definition.


GET/v3/ips/assigned

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

This endpoint allows you to retrieve only assigned IP addresses.

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 based on the aggregate performance of all the senders who use it.


Authentication

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

Array of:

Property nameTypeRequiredDescriptionChild properties
ipstring

The IP address.


poolsarray[string]

The IP pools that this IP address has been added to.


warmupboolean

Indicates if this IP address is currently warming up.


start_dateinteger

The start date that this IP address was entered into warmup.

Retrieve all assigned IPs

retrieve-all-assigned-ips page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
curl

_18
const client = require('@sendgrid/client');
_18
client.setApiKey(process.env.SENDGRID_API_KEY);
_18
_18
_18
const request = {
_18
url: `/v3/ips/assigned`,
_18
method: 'GET',
_18
_18
}
_18
_18
client.request(request)
_18
.then(([response, body]) => {
_18
console.log(response.statusCode);
_18
console.log(response.body);
_18
})
_18
.catch(error => {
_18
console.error(error);
_18
});


Rate this page: