SendSMSby ZEXTELDocumentation
EN
Cabinet
Open MarkdownOpen in ChatGPTOpen in Claude
⋯ Page actions
Open MarkdownOpen in ChatGPTOpen in ClaudeOpen in CursorOpen in PerplexityOpen in Gemini (question is copied)Open in Microsoft CopilotOpen in IBM Bob (question is copied)

Sending

Delivery reports and webhooks

How to learn what became of a message: status on request, batch reconciliation and where webhooks stand.

#Status of one message

After a 202 answer keep the messageId and ask GET /v1/messages/{id}. The answer carries the current state, a customer-facing interpretation and the poll_after_seconds hint: how many seconds to wait before asking again.

GET /v1/messages/{id}

cURL. The key is in the SENDSMS_API_KEY environment variable.

curl --max-time 30 --request GET \
  --url 'https://api.sendsms.to/v1/messages/MESSAGE_ID' \
  --header "X-API-Key: $SENDSMS_API_KEY"
200 Response
{
  "id": "00000000-0000-0000-0000-000000000002",
  "status": "sent",
  "status_info": {
    "outcome": "pending",
    "poll_after_seconds": 5
  }
}

status is the technical state, status_info.outcome what it means for you; poll_after_seconds — when to ask again (null — no need any more). All fields and responses — on the method page →

#Many messages at once

To reconcile a list use POST /v1/messages/statuses: up to 100 identifiers per request, answered in the same order.

POST /v1/messages/statuses

cURL. The key is in the SENDSMS_API_KEY environment variable.

curl --max-time 30 --request POST \
  --url 'https://api.sendsms.to/v1/messages/statuses' \
  --header "X-API-Key: $SENDSMS_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    "MESSAGE_ID"
  ]
}'
200 Response
{
  "results": [
    {
      "id": "00000000-0000-0000-0000-000000000002",
      "found": true,
      "message": {
        "id": "00000000-0000-0000-0000-000000000002",
        "channel": "sms",
        "destination": "+994000000000",
        "status": "sent",
        "created_at": "2026-10-28T10:00:00Z",
        "updated_at": "2026-10-28T10:00:01Z",
        "status_info": {
          "known": true,
          "outcome": "pending",
          "poll_after_seconds": 5,
          "resubmit_safe": false
        },
        "transport": {
          "attempt": 1,
          "status": "submitted",
          "started_at": "2026-10-28T10:00:00Z",
          "resolved_at": "2026-10-28T10:00:01Z",
          "next_attempt_at": null,
          "submitted_segments": 1,
          "total_segments": 1
        }
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000003",
      "found": false,
      "error": "message_not_found"
    }
  ]
}

Answered in the order of your ids; found: false — no such message in your account. All fields and responses — on the method page →

#How often to ask

  • Follow poll_after_seconds; do not poll more often.
  • Final states do not change any more — you can stop polling such a message.
  • An uncertain state is a reason to wait and ask again, not to send the SMS again. Repeat a send only with the same Idempotency-Key.

#Webhooks

Delivery notifications by subscription (webhooks) are not open in the API yet — they are on the list of resources being prepared for publication. Today the status is read on request as described above. SMPP clients receive delivery receipts (deliver_sm) in the same session — see SMPP.

The response fields and their values are in the reference: Message status; the general rules are in Response fields, identifiers & time.

Type to search