API v1currentBase URLhttps://api.sendlib.com/v1Bearer API key

API

IP management

Inspect tenant IP assignments and manage IP pools.

IP pools are routing targets for your streams. Use them when you send at volume, need dedicated IPs, or want separate pools for different kinds of mail, such as sign-in codes and campaigns.

List tenant IPs

GET/v1/ips

List IPs assigned to the authenticated tenant.

Scope
manage:ip-pools
curl "https://api.sendlib.com/v1/ips" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

Create IP pool

POST/v1/ip-pools

Create an IP pool for the tenant.

Scope
manage:ip-pools
curl -X POST "https://api.sendlib.com/v1/ip-pools" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

List IP pools

GET/v1/ip-pools

List IP pools for the tenant.

Scope
manage:ip-pools
curl "https://api.sendlib.com/v1/ip-pools" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

Get IP pool

GET/v1/ip-pools/{pool_id}

Get an IP pool by id.

Scope
manage:ip-pools

Path parameters

  • pool_idstringRequired

    The pool id.

curl "https://api.sendlib.com/v1/ip-pools/POOL_ID" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

Update IP pool

PATCH/v1/ip-pools/{pool_id}

Patch an IP pool by id.

Scope
manage:ip-pools

Path parameters

  • pool_idstringRequired

    The pool id.

curl -X PATCH "https://api.sendlib.com/v1/ip-pools/POOL_ID" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

Delete IP pool

DELETE/v1/ip-pools/{pool_id}

Delete an IP pool by id.

Scope
manage:ip-pools

Path parameters

  • pool_idstringRequired

    The pool id.

curl -X DELETE "https://api.sendlib.com/v1/ip-pools/POOL_ID" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

Remove IP from pool

DELETE/v1/ip-pools/{pool_id}/ips/{ip_id}

Remove a specific IP assignment from an IP pool.

Scope
manage:ip-pools

Path parameters

  • pool_idstringRequired

    The pool id.

  • ip_idstringRequired

    The ip id.

curl -X DELETE "https://api.sendlib.com/v1/ip-pools/POOL_ID/ips/IP_ID" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

Add IPs to pool

POST/v1/ip-pools/{pool_id}/ips

Associate one or more tenant IPs with an IP pool.

Scope
manage:ip-pools

Path parameters

  • pool_idstringRequired

    The pool id.

curl -X POST "https://api.sendlib.com/v1/ip-pools/POOL_ID/ips" \
  -H "Authorization: Bearer $SENDLIB_API_KEY"
{
  "error": {
    "message": "Missing or invalid API key."
  }
}

Next