curl --request POST \
--url https://api.sendpost.io/api/v1/account/ippool \
--header 'Content-Type: application/json' \
--header 'X-Account-ApiKey: <api-key>' \
--data '{
"name": "Marketing Promotional",
"tpsps": [
1
],
"ips": [
{
"publicIP": "3.238.19.87"
}
]
}'
{
"id": 3,
"name": "Marketing Promotional",
"created": 1686304219037565000,
"ips": [
{
"id": 6,
"publicIP": "3.238.19.86",
"reverseDNSHostname": "sp0006.mtaspb.email",
"type": 1,
"created": 1597511124804000
}
],
"thirdPartySendingProviders": [
{
"id": 1,
"name": "sendgrid",
"type": 1,
"domain": "",
"endpoint": "",
"key": "",
"secret": "your_api_key",
"port": 0,
"oauthToken": "",
"retryTime": 0,
"created": 1597511124701000
}
],
"routingStrategy": 0,
"routingMetaData": "{}"
}
Creates a new IPPool with the specified name, IPs, and third-party sending providers.
curl --request POST \
--url https://api.sendpost.io/api/v1/account/ippool \
--header 'Content-Type: application/json' \
--header 'X-Account-ApiKey: <api-key>' \
--data '{
"name": "Marketing Promotional",
"tpsps": [
1
],
"ips": [
{
"publicIP": "3.238.19.87"
}
]
}'
{
"id": 3,
"name": "Marketing Promotional",
"created": 1686304219037565000,
"ips": [
{
"id": 6,
"publicIP": "3.238.19.86",
"reverseDNSHostname": "sp0006.mtaspb.email",
"type": 1,
"created": 1597511124804000
}
],
"thirdPartySendingProviders": [
{
"id": 1,
"name": "sendgrid",
"type": 1,
"domain": "",
"endpoint": "",
"key": "",
"secret": "your_api_key",
"port": 0,
"oauthToken": "",
"retryTime": 0,
"created": 1597511124701000
}
],
"routingStrategy": 0,
"routingMetaData": "{}"
}
This api key can be used for all account level operations
Created IPPool details
The response is of type object
.