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 status

GET/v1/messages/{id}

Required permission: messages.read

Read a tenant-owned message and last transport attempt in one bounded read-only transaction. Same404 for absent and foreign IDs. No provider calls. failed may still enter fallback; poll uncertain states without automatic resubmission. No delivery timestamp is invented from updated_at.

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"

#Parameters

FieldTypeDescription
idrequiredpath · string

#Responses

200Successful result

Response format

FieldTypeDescription
idrequiredstring · 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.
channelrequiredstringTransport channel stored by SendSMS at admission. SMS uses sms.
destinationrequiredstringRecipient destination stored by SendSMS from the accepted request. Use your retained message ID for correlation, not assumptions about plus-sign formatting.
statusrequiredstringCurrent 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.
created_atrequiredstring · 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.
updated_atrequiredstring · 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.
status_inforequiredobjectCustomer-facing interpretation calculated by SendSMS from the current status. Does not perform a provider lookup.
status_info.knownrequiredbooleanSendSMS sets true if status is recognized by this API version. false means a future/unknown value; keep it and treat the outcome as uncertain.
status_info.outcomerequiredstringSendSMS summary: pending = processing continues; uncertain = no safe final conclusion; delivered = delivery confirmed; not_delivered = recorded negative outcome.
"pending" "uncertain" "delivered" "not_delivered"
status_info.poll_after_secondsrequiredinteger | 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
status_info.resubmit_saferequiredbooleanAlways 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
transportrequiredobject | 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.
transport.attemptrequiredintegerPer-message attempt number assigned by SendSMS. Identifies an attempt, not another message; do not use it as messageId.
transport.statusrequiredstringAttempt 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.
transport.started_atrequiredstring | null · date-timeAttempt start recorded by SendSMS. ISO 8601 UTC or null when not recorded/scheduled.
transport.resolved_atrequiredstring | null · date-timeAttempt result resolution recorded by SendSMS, not handset delivery. ISO 8601 UTC or null when not recorded/scheduled.
transport.next_attempt_atrequiredstring | null · date-timeNext retry time scheduled by SendSMS; not a promised delivery time. ISO 8601 UTC or null when not recorded/scheduled.
transport.submitted_segmentsrequiredintegerCount of SMS segments recorded by SendSMS as submitted in this attempt from transport acknowledgements. Not a count of delivered logical messages.
transport.total_segmentsrequiredinteger | nullTotal expected SMS segments recorded for this attempt by SendSMS. null means unavailable, not zero.
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.
404Resource unavailable to this account

Check the resource ID and whether it belongs to the API key account.

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