<!-- Generated from the canonical 99 Digital API documentation. Do not edit this file. -->

Canonical page: https://docs.99digital.co.il/sms-api/webhook/status-message

# Status Message

**Webhook.** Sent to the webhook URL you configure.

This will be triggered every time you deliver a message, with the message status information (`event` "status").

You need to set the webhook URL within the 99 Digital dashboard. How the
webhooks are delivered is explained on [Webhook](https://docs.99digital.co.il/sms-api/webhook).

**Settings:**

| Setting | Value |
| --- | --- |
| URL | Your URL |
| Method | JSON via POST |

**With every outgoing message you send, you will receive the following back:**

```json
{
  "event": "status",
  "status": 1,
  "date": "26/08/26 09:45:47",
  "he_message": "נמסר",
  "en_message": "delivered",
  "from": "972535355499",
  "to": "0507139996",
  "operator": "Pelephone",
  "unique": 3683442114
}
```

**Response explained:**

| Parameter | Description / Example |
| --- | --- |
| `event` | "status" always. |
| `status` | The status code (int) — see the table below. |
| `date` | The time when this message arrived or failed to arrive. |
| `he_message` | Hebrew text of the status: נמסר, נכשל, מספר כשר, מספר חסום, תקלה. |
| `en_message` | English text of the status: delivered, failed, kosher, blocked, error. |
| `from` | Your SMS API number: the sender you sent the message from. |
| `to` | The number you sent the message to. |
| `operator` | The mobile operator of the end user. |
| `unique` | The unique message ID that you received when sending the message from the [Send SMS](https://docs.99digital.co.il/sms-api/send-sms) API endpoint. |

| Status code (int) | `en_message` | `he_message` | Explanation |
| --- | --- | --- | --- |
| 1 | delivered | נמסר | Message delivered successfully. |
| 2 | failed | נכשל | Failed (for example, the phone is off or out of network). |
| 3 | kosher | מספר כשר | Kosher number, can't get SMS. |
| 4 | blocked | מספר חסום | Blocked: the end user asked not to receive messages from you. |
| 5 | error | תקלה | Error (either a network error, delivery error, or server error). Try again. |

### Remarks

- A message sent to several numbers has one `unique` (from
  [Send SMS](https://docs.99digital.co.il/sms-api/send-sms)), and you get a status for each number.
- Codes sent by [Verify SMS](https://docs.99digital.co.il/sms-api/verify-sms) get a status too. Its
  `unique` is the ID of the SMS, not the `unique` that Verify SMS
  returned.

## Webhook payload

Content type: `application/json` (required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `event` | string | Yes | "status" always, for a delivery status. Always `status`. |
| `status` | integer | Yes | The status code of the delivery. One of: `1` — Message delivered successfully; `2` — Failed (for example, the phone is off or out of network); `3` — Kosher number, can't get SMS; `4` — Blocked: the end user asked not to receive messages from you; `5` — Error (either a network error, delivery error, or server error). Try again. |
| `date` | string | Yes | The time when this message arrived or failed to arrive. Example: `26/08/26 09:45:47`. |
| `he_message` | string | Yes | Hebrew text of the status (status 1 to 5, in order). One of: `נמסר`, `נכשל`, `מספר כשר`, `מספר חסום`, `תקלה`. |
| `en_message` | string | Yes | English text of the status (status 1 to 5, in order). One of: `delivered`, `failed`, `kosher`, `blocked`, `error`. |
| `from` | string | Yes | Your SMS API number — the sender you sent the message from. Example: `972535355499`. |
| `to` | string | Yes | The number you sent the message to. Example: `0507139996`. |
| `operator` | string | Yes | The mobile operator of the end user. Example: `Pelephone`. |
| `unique` | integer | Yes | The unique message ID that you received when sending the message with Send SMS. Example: `3683442114`. |

### Example (generated from the schema)

```json
{
  "event": "status",
  "status": 1,
  "date": "26/08/26 09:45:47",
  "he_message": "נמסר",
  "en_message": "delivered",
  "from": "972535355499",
  "to": "0507139996",
  "operator": "Pelephone",
  "unique": 3683442114
}
```

## Responses

### 200 — Answer with HTTP 200. The status and body of your answer are ignored.
