# Prepare SMS Newsletter Dispatch

Prepares SMS newsletter dispatch by checking text, sender and provider, estimating recipients and returning the KlickTipp dialog for a logged-in person to send now or schedule. This call sends nothing. Each recipient costs SMS credits and sent messages cannot be recalled; say so when handing over the link.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "newsletterId": {
      "type": "integer",
      "description": "ID of the SMS newsletter to send",
      "minimum": 1
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "newsletterId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "newsletterId",
    "status",
    "ready",
    "missingForDispatch",
    "estimatedRecipientsMin",
    "estimatedRecipientsMax",
    "scheduleUrl"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "newsletterId": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "scheduled",
        "outgoing",
        "sent"
      ]
    },
    "ready": {
      "type": "boolean"
    },
    "missingForDispatch": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "estimatedRecipientsMin": {
      "type": "integer"
    },
    "estimatedRecipientsMax": {
      "type": "integer"
    },
    "scheduleUrl": {
      "type": "string"
    }
  }
}
```

