Skip to contentSkip to navigationSkip to topbar
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 (for global users and subusers)

Base url: https://api.eu.sendgrid.com (for EU regional subusers)

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 IPsLink to code sample: Retrieve all assigned IPs
1
const client = require('@sendgrid/client');
2
client.setApiKey(process.env.SENDGRID_API_KEY);
3
4
5
const request = {
6
url: `/v3/ips/assigned`,
7
method: 'GET',
8
9
}
10
11
client.request(request)
12
.then(([response, body]) => {
13
console.log(response.statusCode);
14
console.log(response.body);
15
})
16
.catch(error => {
17
console.error(error);
18
});

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.