Elements that can be shared among more than one endpoint definition.
This endpoint is for adding a(n) IP Address(es) to your account.
Bearer <<YOUR_API_KEY_HERE>>
application/json
The amount of IPs to add to the account.
Array of usernames to be assigned a send IP.
Whether or not to warmup the IPs being added.
false
List of IP objects.
The number of IPs that can still be added to the user.
Whether or not the IPs are being warmed up.
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const data = {5count: 90323478,6subusers: ["subuser1", "subuser2"],7warmup: true,8user_can_send: true,9};1011const request = {12url: `/v3/ips`,13method: "POST",14body: data,15};1617client18.request(request)19.then(([response, body]) => {20console.log(response.statusCode);21console.log(response.body);22})23.catch((error) => {24console.error(error);25});