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)

Messages

Message statuses

POST/v1/messages/statuses

Required permission: messages.read

Read-only batch. Unique UUID ids,1..100. Input order is preserved. Missing and foreign IDs each return found:false; authorized items remain available. No sends or debits.

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"
  ]
}'

#Parameters

FieldTypeDescription
X-Dry-Runoptionalheader · stringOptional. true — a trial request: every check of the real request is made (key, IP allowlist, permission, account, fields, sender, template, parts, price, funds), but nothing is executed — no message, no reservation, no queue, no data change, the Idempotency-Key is not taken. The answer has the real status and structure plus dryRun: true; identifiers in it are conditional (zero UUID). Refusals are the real ones. Any other value — 400 invalid_dry_run. Trial requests have their own, lower rate limit.
true

#Request body

FieldTypeDescription
idsrequiredarray<string>
maxItems: 100

#Responses

200Successful result

Response format

FieldTypeDescription
resultsrequiredarray<object>One result per requested ID, constructed by SendSMS in the original request order. This read creates no messages.
maxItems: 100
results[].idrequiredresults[].found = truestring · uuidThe requested UUID copied by SendSMS and normalized to lowercase. Its presence does not prove the message exists or belongs to the caller.
results[].foundrequiredresults[].found = truebooleanSendSMS lookup result: true = message belongs to this account; false = missing or belongs to another account. The two false cases are intentionally indistinguishable.
const: true
results[].messagerequiredresults[].found = trueobjectMessageSnapshot generated by SendSMS only when found=true. Absent, not null, when found=false.
results[].message.idrequiredresults[].found = truestring · uuidMessage UUID created by SendSMS before durable admission. With an Idempotency-Key, a postpaid account (and a prepaid account in budget-enabled admission) gets the same ID for the same key within the authenticated account; without a key SendSMS generates a random UUID. Save it for status reads. It is not the operator’s message ID.
results[].message.channelrequiredresults[].found = truestringTransport channel stored by SendSMS at admission. SMS uses sms.
results[].message.destinationrequiredresults[].found = truestringRecipient destination stored by SendSMS from the accepted request. Use your retained message ID for correlation, not assumptions about plus-sign formatting.
results[].message.statusrequiredresults[].found = truestringCurrent lifecycle state maintained by SendSMS from admission, routing and transport/delivery evidence. Known values and meanings are listed below; preserve unknown future values. It is not a raw SMPP status code.
"prepared" "queued" "pending" "retrying" "sent" "submission_ambiguous" "ambiguous" "failed" "throttled" "delivered" "undeliverable" "suppressed" "blocked_consent" "expired" "rejected" "cancelled" "rejected_insufficient_credit"
  • prepared — Prepared by SendSMS; transport delivery is not confirmed.
  • queued — Accepted into the SendSMS processing queue.
  • pending — Waiting for further platform processing.
  • retrying — SendSMS is processing a retry/fallback; do not create another logical message.
  • sent — Submitted to transport; handset delivery is not yet confirmed.
  • submission_ambiguous — The submission outcome is uncertain, including possible partial submission; blind resending can duplicate SMS.
  • ambiguous — Uncertain transport outcome retained by SendSMS; not a safe-to-resend signal.
  • failed — Failure recorded; current runtime can still enter fallback. This name alone is not final-failure proof; status_info.outcome remains uncertain.
  • throttled — Rate throttling recorded. Do not assume final failure or submit a new copy.
  • delivered — SendSMS has delivery confirmation.
  • undeliverable — Negative delivery outcome recorded as undeliverable.
  • suppressed — Sending suppressed by platform policy.
  • blocked_consent — Sending blocked by the recorded consent policy.
  • expired — Message validity/processing time expired.
  • rejected — Rejection recorded by platform or transport handling.
  • cancelled — Message cancelled in the platform workflow.
  • rejected_insufficient_credit — Rejected because the applicable credit/funds check failed.
results[].message.created_atrequiredresults[].found = truestring · date-timeDatabase timestamp set when SendSMS creates the message record; ISO 8601 UTC. PostgreSQL now() is transaction-start time, not proof of commit, send or handset delivery time.
results[].message.updated_atrequiredresults[].found = truestring · date-timeLast message-row update timestamp recorded by SendSMS; ISO 8601 UTC. May reflect a status or other row change. Not a dedicated delivery timestamp.
results[].message.status_inforequiredresults[].found = trueobjectCustomer-facing interpretation calculated by SendSMS from the current status. Does not perform a provider lookup.
results[].message.status_info.knownrequiredresults[].found = truebooleanSendSMS sets true if status is recognized by this API version. false means a future/unknown value; keep it and treat the outcome as uncertain.
results[].message.status_info.outcomerequiredresults[].found = truestringSendSMS summary: pending = processing continues; uncertain = no safe final conclusion; delivered = delivery confirmed; not_delivered = recorded negative outcome.
"pending" "uncertain" "delivered" "not_delivered"
results[].message.status_info.poll_after_secondsrequiredresults[].found = trueinteger | nullPolling delay suggested by SendSMS, in seconds: 5 for pending/uncertain, null for delivered/not_delivered. Not a delivery deadline or a Unix timestamp.
5 null
results[].message.status_info.resubmit_saferequiredresults[].found = truebooleanAlways false in this version: SendSMS never authorizes a new send from a status read. Retry an original send only using its original idempotency contract.
const: false
results[].message.transportrequiredresults[].found = trueobject | nullLast transport attempt stored by SendSMS. null if no attempt record exists. This is not a handset delivery receipt and contains no operator credentials or upstream costs.
results[].message.transport.attemptrequiredresults[].found = trueintegerPer-message attempt number assigned by SendSMS. Identifies an attempt, not another message; do not use it as messageId.
results[].message.transport.statusrequiredresults[].found = truestringAttempt state recorded by SendSMS from transport results. submitted/reconciled_accepted mean transport acceptance, not handset delivery; ambiguous is uncertain. See value descriptions below.
"pending" "submitted" "failed" "throttled" "ambiguous" "reconciled_accepted" "reconciled_rejected"
  • pending — Attempt is being prepared or awaits a transport result.
  • submitted — Transport submission recorded; not handset delivery.
  • failed — Attempt failed; the message can still have another attempt.
  • throttled — Transport throttling recorded for the attempt.
  • ambiguous — Acceptance is uncertain; a blind new send risks a duplicate.
  • reconciled_accepted — Reconciliation established transport acceptance, not delivery.
  • reconciled_rejected — Reconciliation established rejection of the attempt.
results[].message.transport.started_atrequiredresults[].found = truestring | null · date-timeAttempt start recorded by SendSMS. ISO 8601 UTC or null when not recorded/scheduled.
results[].message.transport.resolved_atrequiredresults[].found = truestring | null · date-timeAttempt result resolution recorded by SendSMS, not handset delivery. ISO 8601 UTC or null when not recorded/scheduled.
results[].message.transport.next_attempt_atrequiredresults[].found = truestring | null · date-timeNext retry time scheduled by SendSMS; not a promised delivery time. ISO 8601 UTC or null when not recorded/scheduled.
results[].message.transport.submitted_segmentsrequiredresults[].found = trueintegerCount of SMS segments recorded by SendSMS as submitted in this attempt from transport acknowledgements. Not a count of delivered logical messages.
results[].message.transport.total_segmentsrequiredresults[].found = trueinteger | nullTotal expected SMS segments recorded for this attempt by SendSMS. null means unavailable, not zero.
results[].idrequiredresults[].found = false, results[].error = "message_not_found"string · uuidThe requested UUID copied by SendSMS and normalized to lowercase. Its presence does not prove the message exists or belongs to the caller.
results[].foundrequiredresults[].found = false, results[].error = "message_not_found"booleanSendSMS lookup result: true = message belongs to this account; false = missing or belongs to another account. The two false cases are intentionally indistinguishable.
const: false
results[].errorrequiredresults[].found = false, results[].error = "message_not_found"stringSendSMS returns message_not_found only in the found=false branch. Not a delivery failure status.
const: "message_not_found"
dryRunoptionalbooleanPresent only in the answer to a trial request (X-Dry-Run: true): nothing was executed; identifiers in this answer are conditional.
const: true
400Invalid input

Check required fields, value types and the request format.

Response format

FieldTypeDescription
errorrequiredstringError identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code.
messageoptionalstringOptional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation.
codeoptionalstringOptional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code.
statusCodeoptionalintegerOptional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative.
401Invalid or revoked API key

Check the X-API-Key header and key status. Never expose the key in client-side code. The machine code is in the code field: api_key_missing or api_key_invalid.

Response format

FieldTypeDescription
errorrequiredstringError identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code.
messageoptionalstringOptional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation.
codeoptionalstringOptional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code.
statusCodeoptionalintegerOptional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative.
403Insufficient key permissions or account/channel policy; or the request came from an IP address not allowed for this key (ip_not_allowed)

Check API key permissions, account settings and channel availability.

Response format

FieldTypeDescription
errorrequiredstringError identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code.
messageoptionalstringOptional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation.
codeoptionalstringOptional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code.
statusCodeoptionalintegerOptional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative.
413Body exceeds 8192 bytes

Response format

FieldTypeDescription
errorrequiredstringError identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code.
messageoptionalstringOptional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation.
codeoptionalstringOptional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code.
statusCodeoptionalintegerOptional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative.
429Rate limit

Reduce the request rate and delay retries. The general per-second limit: code = rate_limit_exceeded.

Response format

FieldTypeDescription
errorrequiredstringError identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code.
messageoptionalstringOptional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation.
codeoptionalstringOptional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code.
statusCodeoptionalintegerOptional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative.
503Temporarily unavailable

The service is temporarily unavailable. Before retrying an SMS submission, check whether the previous request was accepted.

Response format

FieldTypeDescription
errorrequiredstringError identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code.
messageoptionalstringOptional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation.
codeoptionalstringOptional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code.
statusCodeoptionalintegerOptional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative.

Type to search