# Set the DKIM selector, return-path host, IP pool and warmup plan of a domain

`POST /deliverability/domains/{d}/setup` · Rivier · domains

Set the DKIM selector, return-path host, IP pool and warmup plan of a domain. Changing the pool or selector switches the own MTA off until it is approved again.

- Scope: domains:write
- Mcp: rivier_domain_deliv_setup
- Graphql: Mutation.domainsDeliverabilityDomainSetup
- Sdk: domains.deliverabilityDomain.setup
- Cli: domains deliverability domain setup

## Parameters

- `d` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "poolId": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ]
    },
    "warmupPlanId": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ]
    },
    "warmupStart": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "warmupPaused": {
      "type": "boolean"
    },
    "selector": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 63
        },
        {
          "type": "null"
        }
      ]
    },
    "returnPathHost": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 253
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "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/domains/{d}/setup' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "poolId": "string",
  "warmupPlanId": "string",
  "warmupStart": "string",
  "warmupPaused": false,
  "selector": "string",
  "returnPathHost": "string"
}'
```
