# Add or change a sending IP

`POST /deliverability/ips` · Rivier · domains

Add or change a sending IP: pool, expected reverse DNS name, status, warmup plan and start date (operator).

- Scope: domains:write
- Graphql: Mutation.domainsDeliverabilityIpSave
- Sdk: domains.deliverabilityIp.save
- Cli: domains deliverability ip save

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "ip": {
      "type": "string",
      "minLength": 7,
      "maxLength": 15
    },
    "poolId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "ptrExpected": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 253
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "retired"
      ]
    },
    "warmupPlanId": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ]
    },
    "warmupStart": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "ip",
    "poolId"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/deliverability/ips' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "ip": "string",
  "poolId": "string"
}'
```
