# 99 Digital SMS API — complete documentation Generated: 2026-11-29T20:03:58.741Z Canonical documentation: https://docs.99digital.co.il/sms-api Documentation index: https://docs.99digital.co.il/sms-api/llms.txt > This file is generated from every public page of the SMS API documentation during the production build. Do not edit it manually. --- # SMS API Source: https://docs.99digital.co.il/sms-api Markdown: https://docs.99digital.co.il/markdown/sms-api.md Section: SMS API Send SMS to Israeli numbers, check their delivery status, send verification codes, and receive incoming messages by webhook. ## Base URL ```text https://api.99digital.co.il/sms ``` ## Authentication Send your API key in the `apiKey` header of every request, and the fields as JSON with `POST`: ```http apiKey: Content-Type: application/json ``` ## Where to start - Send a message: [Send SMS](https://docs.99digital.co.il/sms-api/send-sms). - Delivery statuses and incoming messages: [Webhook](https://docs.99digital.co.il/sms-api/webhook). - Verification codes and two-factor authentication: [Verify SMS](https://docs.99digital.co.il/sms-api/verify-sms). --- # Send SMS Source: https://docs.99digital.co.il/sms-api/send-sms Markdown: https://docs.99digital.co.il/markdown/sms-api/send-sms.md Section: SMS API `POST https://api.99digital.co.il/sms/sendMessage` You can send a message to any Israeli number. "Send SMS" is for sending the same message to one or more numbers. - For a Hebrew message, an SMS is counted every 70 characters: a Hebrew SMS with 71 characters will be counted as two SMS. - For an English message, an SMS is counted every 160 characters. **Settings**: | Setting | Value | | --- | --- | | URL | `https://api.99digital.co.il/sms/sendMessage` | | Method | JSON via POST (`Content-Type: application/json`) | | Header | Your API key for the service (the `apiKey` header) | **Body**: | Parameter | Description / Example | | --- | --- | | from | The sender. It can be either alphanumeric or a number (maximum of 11 characters), without '+972'. The sender (alphanumeric or a number) must be approved by 99 Digital for your account. If you leave "from" empty, or send a sender that isn't approved for your account, the message is sent from your first approved sender: check "from" in the response to see which one was used | | to | Numbers list, separated by commas, without 00 or +972 or 972. Example: 0501234567 or 0501234567,0508999999 | | text | Your SMS goes here, up to 670 characters. Use `\n` for a new line (in JSON, write it as `\\n`, as in the **Hebrew with a new line** example) | **Response**: ```json { "status": "OK", "unique": 63433453, "text": "your message", "timestamp": 1600115719, "from": "0501234567", "reason": 1 } ``` **Response-Explain**: | Parameter | Description | | --- | --- | | status | OK or FAIL | | unique | Unique ID for any message. Several numbers in "to" are sent as one shipment, so they all share the same unique, and every delivery status on your [Webhook](https://docs.99digital.co.il/sms-api/webhook) carries it | | text | The text you sent | | timestamp | Time stamp (Unix time, seconds) | | from | Sender number or text (the sender the message was sent from) | **reason**: | Value | Information | | --- | --- | | 1 | Not FAIL. The status is OK | | 2 | Your account has no approved sender yet. Contact 99 Digital | | 3 | The number you are trying to use is not verified by 99 Digital | | 4 | The text is too long (more than 670 characters) | | 5 | Unknown error, contact support | | 6 | Wrong apiKey (the apiKey is missing or wrong) | | 7 | "to" can't be empty | | 8 | "text" can't be empty | | 9 | "from" can't be empty | **Remarks**: - Send every value as a string. - You get a delivery status for each of the numbers in `to` on your [Webhook](https://docs.99digital.co.il/sms-api/webhook). - Integrations written before the `apiKey` header keep working: the API also accepts `apiKey` as a field of the body, and the fields as form data instead of JSON. When both are sent, the header wins. ## Authentication `apiKey` in the header — Your API key for the service. ## Request body Content type: `application/json` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `from` | string | No | The sender. It can be either alphanumeric or a number (maximum of 11 characters), without `+972`. The sender (alphanumeric or a number) must be approved by 99 Digital for your account. If you leave `from` empty, or send a sender that isn't approved for your account, the message is sent from your first approved sender — check `from` in the response to see which one was used. Example: `MyStore`. | | `to` | string | Yes | Numbers list, separated by commas, without `00`, `+972` or `972`. Example: `0501234567` or `0501234567,0508999999`. Example: `0501234567,0508999999`. | | `text` | string | Yes | Your SMS goes here, up to 670 characters. Use `\n` for a new line (`\\n` in JSON). For a Hebrew message, an SMS is counted every 70 characters; for an English message, every 160 characters. Max length: 670. Example: `Your order 4711 is on its way and will arrive tomorrow.`. | ### Example: One number Send a message to one number. ```json { "from": "MyStore", "to": "0501234567", "text": "Your order 4711 is on its way and will arrive tomorrow." } ``` ### Example: Several numbers The same message to several numbers, separated by commas. ```json { "from": "MyStore", "to": "0501234567,0508999999,0527654321", "text": "Our store is closed today. See you tomorrow!" } ``` ### Example: Hebrew with a new line A Hebrew message with a new line (`\n`, written `\\n` in JSON). ```json { "from": "MyStore", "to": "0501234567", "text": "שלום דנה,\\nההזמנה שלך מוכנה לאיסוף." } ``` ## Responses ### 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check `status`, and `reason` when it is FAIL. Content type: `application/json` | Field | Type | Description | | --- | --- | --- | | `status` | string | (one of: OK) OK or FAIL. `OK` — the message was accepted for sending; the delivery status of each number arrives on your [Webhook](https://docs.99digital.co.il/sms-api/webhook). Always `OK`. | | `unique` | integer | (one of: OK) Unique ID for any message. Several numbers in `to` are sent as one shipment, so they all share the same `unique`, and every delivery status on your webhook carries it. Example: `3683442114`. | | `text` | string | (one of: OK) The text you sent. Example: `Your order 4711 is on its way and will arrive tomorrow.`. | | `timestamp` | integer | (one of: OK) Time stamp — when the message was sent (Unix time, seconds). Example: `1789900000`. | | `from` | string | (one of: OK) Sender number or text — the sender the message was sent from. It can differ from the `from` you sent (see `from` in the request). Example: `MyStore`. | | `reason` | integer | (one of: OK) 1 — not FAIL, the status is OK. Always `1`. | | `status` | string | (one of: FAIL) FAIL — the message was not sent. `reason` says why. Always `FAIL`. | | `reason` | integer | (one of: FAIL) The status explanation in case of FAIL. One of: `2` — Your account has no approved sender yet. Contact 99 Digital; `3` — The number you are trying to use is not verified by 99 Digital; `4` — The text is too long (more than 670 characters); `5` — Unknown error, contact support; `6` — Wrong apiKey (the apiKey is missing or wrong); `7` — 'to' can't be empty; `8` — 'text' can't be empty; `9` — 'from' can't be empty. | | `error` | string | (one of: FAIL) Sometimes added to reason 5, with the error details. | #### Example: OK The message was sent. ```json { "status": "OK", "unique": 3683442114, "text": "Your order 4711 is on its way and will arrive tomorrow.", "timestamp": 1789900000, "from": "MyStore", "reason": 1 } ``` #### Example: Reason 6 The apiKey is missing or wrong. ```json { "status": "FAIL", "reason": 6 } ``` #### Example: Reason 4 The text is longer than 670 characters. ```json { "status": "FAIL", "reason": 4 } ``` ### 500 — An unexpected error (reason 0). `error` has the details. Try again, and contact support if it repeats. Content type: `application/json` | Field | Type | Description | | --- | --- | --- | | `status` | string | Always FAIL. Always `FAIL`. | | `reason` | integer | Always 0 — an unexpected error on our side. Always `0`. | | `error` | string | The details of the error. | #### Example ```json { "status": "FAIL", "reason": 0, "error": "Internal error" } ``` --- # Webhook Source: https://docs.99digital.co.il/sms-api/webhook Markdown: https://docs.99digital.co.il/markdown/sms-api/webhook.md Section: SMS API › Webhook Webhook allows you to get a callback push to your server whenever there is an incoming message to your verified number, and with the delivery status of every message you send. - You need to set the webhook URL within the 99 Digital dashboard. - Every webhook is sent to your URL as JSON via POST (`Content-Type: application/json`), and `event` tells you what arrived. **Settings:** | Setting | Value | | --- | --- | | URL | Your URL | | Method | JSON via POST | ## Webhook types Every kind of webhook has its own page, with its explanation, an example, and every parameter explained: | Webhook | `event` | What arrives | When it is sent | | --- | --- | --- | --- | | [Incoming Message](https://docs.99digital.co.il/sms-api/webhook/incoming-message) | `incoming` | A new message to your SMS number. | Every time a new message arrives to your SMS number. | | [Status Message](https://docs.99digital.co.il/sms-api/webhook/status-message) | `status` | The delivery status of a message you sent: delivered, failed, kosher, blocked or error. | For every number you send a message to, when its status arrives from the operator. | ## Delivery - Answer within a few seconds: we wait up to 5 seconds to connect to your server and up to 15 seconds for your answer. The status and body of your answer are ignored. - If your server answers with an error or doesn't answer in time, the webhook is not sent again. --- # Incoming Message Source: https://docs.99digital.co.il/sms-api/webhook/incoming-message Markdown: https://docs.99digital.co.il/markdown/sms-api/webhook/incoming-message.md Section: SMS API › Webhook **Webhook.** Sent to the webhook URL you configure. This will be triggered every time a new message arrives to your SMS number (`event` "incoming"). 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 incoming message, you will receive the following:** ```json { "event": "incoming", "message": "Reply back", "date": "09/03/26 10:25:32", "from": "0501234567", "to": "0534444323" } ``` **Response explained:** | Parameter | Description / Example | | --- | --- | | `event` | "incoming" always. | | `message` | The message that was sent from the user. | | `date` | The time it was sent: when the message arrived, Israel time, in the format `dd/mm/yy HH:MM:SS`. | | `from` | Sender number. | | `to` | The number it was sent to (your verified number). | ## Webhook payload Content type: `application/json` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `event` | string | Yes | "incoming" always, for an incoming message. Always `incoming`. | | `message` | string | Yes | The message that was sent from the user. Example: `Reply back`. | | `date` | string | Yes | The time it was sent: when the message arrived, Israel time, in the format `dd/mm/yy HH:MM:SS`. Example: `09/03/26 10:25:32`. | | `from` | string | Yes | Sender number. Example: `0501234567`. | | `to` | string | Yes | The number it was sent to (your verified number). Example: `0534444323`. | ### Example (generated from the schema) ```json { "event": "incoming", "message": "Reply back", "date": "09/03/26 10:25:32", "from": "0501234567", "to": "0534444323" } ``` ## Responses ### 200 — Answer with HTTP 200. The status and body of your answer are ignored. --- # Status Message Source: https://docs.99digital.co.il/sms-api/webhook/status-message Markdown: https://docs.99digital.co.il/markdown/sms-api/webhook/status-message.md Section: SMS API › Webhook **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. --- # Verify SMS Source: https://docs.99digital.co.il/sms-api/verify-sms Markdown: https://docs.99digital.co.il/markdown/sms-api/verify-sms.md Section: SMS API `POST https://api.99digital.co.il/sms/verifySMS` User verification for accessing a system. You can use this Verify SMS method to check if a user is the owner of the phone number they provided, or as two-factor authentication. We have two steps: **Send** and **Check**, both with this endpoint. - **Send:** you provide us a phone number, and we send an SMS to the client. The client has 10 minutes to enter the code back to your system. - **Check:** once the client puts in their code, you deliver to us their phone number and the code, and we verify if the code is correct. A code can be used only once. **Super simple!** Choose **Send** or **Check** under Request → Body (and in the request builder on the right) to see each request and its code samples. Sending `code` is what makes the request a check. ## Send **Settings:** | Setting | Value | | --- | --- | | URL | `https://api.99digital.co.il/sms/verifySMS` | | Method | JSON via POST | | Header | Value | | --- | --- | | `apiKey` | Your API key for the service | **Body:** | Parameter | Description / Example | | --- | --- | | `from` | `from` can be either alphanumeric or a number (maximum of 11 characters), without `+972`. It must be one of the senders 99 Digital approved for your account; otherwise (or when empty) your first approved sender is used. | | `to` | The phone number to send the code to, without `00`, `+972` or `972`. Example: `0501234567`. | | `message` | As default, we use the following message to provide the code to the client: "Your verification code is ##code##". Alternatively, you can specify your own message, using this parameter. Please use this variable: `##code##` for the code that we will generate from our side. | ```json { "from": "MyStore", "to": "0501234567" } ``` **Response:** ```json { "status": "OK", "unique": "1789900000aB3dE9fGh1", "phone": "0501234567", "reason": 1 } ``` **Response explained:** | Parameter | Description | | --- | --- | | `status` | OK or FAIL | | `unique` | Unique ID for this verification request | | `phone` | The phone number the code was sent to | | `reason` | The status explanation — see below | | Reason | Explanation | | --- | --- | | 1 | Not FAIL. The status is OK. | | 2 | Your account has no approved sender yet — contact 99 Digital. | | 3 | The number you are trying to use is not verified by 99 Digital. | | 5 | The SMS couldn't be sent (unknown error). Try again, and contact support if it repeats. | | 6 | The apiKey is missing or wrong. | | 7 | `to` can't be empty (returned today as reason 11). | | 9 | `from` can't be empty. | | 10 | You provided the `message` parameter, but without `##code##`. | | 11 | `to` can't be empty. | | 12 | The code couldn't be saved. Try again. | ## Check **Settings:** | Setting | Value | | --- | --- | | URL | `https://api.99digital.co.il/sms/verifySMS` | | Method | JSON via POST | | Header | Value | | --- | --- | | `apiKey` | Your API key for the service | **Body:** | Parameter | Description / Example | | --- | --- | | `to` | The phone number of the client that received the SMS, in the same format you used to send the code. | | `code` | The code that the client entered. | ```json { "to": "0501234567", "code": "482913" } ``` **Response:** ```json { "status": 1, "phone": "0501234567" } ``` **Response explained:** | Parameter | Description | | --- | --- | | `status` | The result of the check — see below | | `phone` | The phone number of the client | | Status | Explanation | | --- | --- | | 1 | Verification passed. The code was entered correctly. | | 2 | The code is wrong, was already used, or does not exist. | | 3 | The code is invalid: more than 10 minutes passed. | ## Remarks - Send every value as a string — `"code": "482913"`, not `482913`. - Send `to` in exactly the same format in both steps (for example `0501234567` both times): the code is kept for the number as you wrote it. - Sending a new code to a number replaces the previous code of that number. - A wrong code can be tried again until the code expires. Limit the number of attempts on your side (for example, 5 attempts per code). - A correct code and an expired code are both deleted: checking them again returns status 2. - A request that fails before the check (wrong apiKey, missing `to`) answers like the send step: `status` FAIL and a `reason`. - Integrations written before the `apiKey` header keep working: the API also accepts `apiKey` as a field of the body, and the fields as form data instead of JSON. When both are sent, the header wins. ## Authentication `apiKey` in the header — Your API key for the service. ## Request body Content type: `application/json` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `from` | string | No | (one of: Send) The sender: an alphanumeric name or a number (up to 11 characters), without `+972`. It must be one of the senders 99 Digital approved for your account; otherwise (or when empty) your first approved sender is used. Example: `MyStore`. | | `to` | string | Yes | (one of: Send) The phone number to send the code to, without `00`, `+972` or `972`. For example `0501234567`. Example: `0501234567`. | | `message` | string | No | (one of: Send) Your own message instead of the default one ("Your verification code is 123456"). Put `##code##` where the code should appear — we replace it with the code we generate. Example: `Your MyStore login code is ##code##`. | | `to` | string | Yes | (one of: Check) The phone number of the client that received the SMS, in the same format you used to send the code. Example: `0501234567`. | | `code` | string | Yes | (one of: Check) The code the client entered. Example: `482913`. | ### Example: Send Step 1: send the client an SMS with a code. ```json { "from": "MyStore", "to": "0501234567" } ``` ### Example: Send with your own message Step 1, with your own text: ##code## is replaced with the code. ```json { "from": "MyStore", "to": "0501234567", "message": "Your MyStore login code is ##code##" } ``` ### Example: Check Step 2: check the code the client entered. ```json { "to": "0501234567", "code": "482913" } ``` ## Responses ### 200 — The request was processed. The send step answers with `status` OK or FAIL (and `reason`); the check step answers with `status` 1, 2 or 3. Content type: `application/json` | Field | Type | Description | | --- | --- | --- | | `status` | string | (one of: Send — OK) OK — the code was sent to the client. Always `OK`. | | `unique` | string | (one of: Send — OK) A unique ID for this verification request. Example: `1789900000aB3dE9fGh1`. | | `phone` | string | (one of: Send — OK) The phone number the code was sent to. Example: `0501234567`. | | `reason` | integer | (one of: Send — OK) 1 — not FAIL, the status is OK. Always `1`. | | `status` | string | (one of: FAIL) FAIL — the request failed; `reason` says why. Always `FAIL`. | | `reason` | integer | (one of: FAIL) The status explanation in case of FAIL. One of: `2` — Your account has no approved sender yet — contact 99 Digital; `3` — The number you are trying to use is not verified by 99 Digital; `5` — The SMS couldn't be sent. Try again, and contact support if it repeats; `6` — The apiKey is missing or wrong; `7` — 'to' can't be empty (returned today as reason 11); `9` — 'from' can't be empty; `10` — You provided the 'message' parameter, but without; `11` — 'to' can't be empty; `12` — The code couldn't be saved. Try again. | | `status` | integer | (one of: Check) The result of the check. One of: `1` — Verification passed — the code was entered correctly; `2` — The code is wrong, was already used, or does not exist; `3` — The code expired (more than 10 minutes passed). | | `phone` | string | (one of: Check) The phone number of the client. Example: `0501234567`. | #### Example: Send — OK The code was sent to the client. ```json { "status": "OK", "unique": "1789900000aB3dE9fGh1", "phone": "0501234567", "reason": 1 } ``` #### Example: Send — reason 10 'message' was sent without ##code##. ```json { "status": "FAIL", "reason": 10 } ``` #### Example: Check — passed The code is correct (status 1). ```json { "status": 1, "phone": "0501234567" } ``` #### Example: Check — wrong code The code is wrong, was already used, or does not exist (status 2). ```json { "status": 2, "phone": "0501234567" } ``` #### Example: Check — expired More than 10 minutes passed (status 3). ```json { "status": 3, "phone": "0501234567" } ``` #### Example: Reason 6 The apiKey is missing or wrong (both steps). ```json { "status": "FAIL", "reason": 6 } ``` ### 500 — An unexpected error in the send step (reason 0). `error` has the details. Try again, and contact support if it repeats. Content type: `application/json` | Field | Type | Description | | --- | --- | --- | | `status` | string | FAIL — an unexpected error. Always `FAIL`. | | `reason` | integer | 0 — an unexpected error in the send step. Always `0`. | | `error` | string | The details of the error. | #### Example ```json { "status": "FAIL", "reason": 0, "error": "Internal error" } ```