# Read Automation SMS Statistics

Reads lifetime statistics for an automation SMS: sends, recipient clicks, bounces and tracked-link clicks across all uses. SMS has no open rate; clickRateOfRecipients is clicks per recipient. Unsent messages have zero counts. Use the SMS ID, not an automation action ID.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "smsId": {
      "type": "integer",
      "description": "ID of the automation SMS whose statistics are read; this is not an automation action ID",
      "minimum": 1
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "smsId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "smsId",
    "name",
    "sent",
    "clicked",
    "notClicked",
    "clickRateOfRecipients",
    "bounces",
    "links",
    "statisticsUrl"
  ],
  "properties": {
    "smsId": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "sent": {
      "type": "integer"
    },
    "clicked": {
      "type": "integer"
    },
    "notClicked": {
      "type": "integer"
    },
    "clickRateOfRecipients": {
      "type": "number"
    },
    "bounces": {
      "type": "integer"
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "url",
          "clicksTotal",
          "clicksUnique"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "clicksTotal": {
            "type": "integer"
          },
          "clicksUnique": {
            "type": "integer"
          }
        }
      }
    },
    "statisticsUrl": {
      "type": "string"
    }
  }
}
```

