# Create Sender Domain

Creates a sender-domain registration. The domain must be valid, not reserved, not registered by any KlickTipp account and within the account limit. It starts unverified and cannot send until DNS verification passes; no email is sent and it does not become the default.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "Domain or subdomain to register, without a protocol, path, wildcard, or trailing dot",
      "minLength": 1,
      "maxLength": 250
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account to create the sender domain in; omit for the account the access token belongs to, or pass a subaccount the token owner may configure",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "domain"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "domain"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "domain": {
      "type": "object",
      "required": [
        "id",
        "domain",
        "status",
        "statusExplanation",
        "isUsableForSending",
        "usableFrom",
        "isDefault",
        "dkimOnly",
        "settingsUrl"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "domain": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "new",
            "active",
            "verified"
          ]
        },
        "statusExplanation": {
          "type": "string"
        },
        "isUsableForSending": {
          "type": "boolean"
        },
        "usableFrom": {
          "type": [
            "string",
            "null"
          ]
        },
        "isDefault": {
          "type": "boolean"
        },
        "dkimOnly": {
          "type": "boolean"
        },
        "settingsUrl": {
          "type": "string"
        }
      }
    }
  }
}
```

