# Send Test Marketing Campaign SMS

Sends a saved automation SMS test to the specified phone number via its provider, charging SMS credits without recall. Personalization uses a matching or random account contact. Pass confirm=true only when the user asked for a test to exactly this number; do not automatically retry.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "smsId": {
      "type": "integer",
      "minimum": 1
    },
    "recipientPhone": {
      "type": "string",
      "pattern": "^\\+[1-9][0-9]{5,14}$"
    },
    "confirm": {
      "type": "boolean"
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "smsId",
    "recipientPhone",
    "confirm"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "messages"
      ],
      "properties": {
        "messages": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "message",
              "type"
            ],
            "properties": {
              "message": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

