SMS billing and errors
Understand segment reservations, final charges, and stable SMS error codes.
Speko estimates GSM-7 or UCS-2 segments and atomically reserves sms.outbound_segment credits when a message is created. Available balance is ledger balance minus active reservations.
The reservation is captured when Telnyx accepts the message and adjusted idempotently if the final segment count differs. Cancellation, revoked consent, local rejection, and definitive pre-provider failures release it. Accepted messages are not refunded when a carrier later reports delivery failure or never confirms delivery (delivery_unconfirmed).
Ambiguous timeouts and provider 5xx responses become submission_unknown; Speko retains the reservation and waits for a correlated webhook rather than risking a duplicate send. A reconciler resolves provider state or releases an unrecoverable hold after 72 hours. Late acceptance still creates one idempotent debit.
Inbound segments are debited idempotently but inbound storage is never rejected for insufficient credits. Final Telnyx cost is stored separately from retail credits for reporting.
10DLC registration fees
Registering your own 10DLC brand and campaign charges Telnyx's fees at cost: $4.50 per brand, $15 per campaign review submission, and the use case's monthly campaign fee, three months up front. A fee is charged before the Telnyx call and refunded if Telnyx refuses the step. If Telnyx does not answer, the fee stays charged until Speko confirms the step with Telnyx or refunds it, within 30 minutes. A fee never takes a balance below zero, even with credit overrun, and it needs $10 left over. See registration fees.
If a month's campaign fee cannot be charged, SMS keeps sending for 7 days. After that, sends from numbers on the campaign fail with CAMPAIGN_BILLING_SUSPENDED until the fee is paid. The campaign stays registered. A campaign whose billing ended, because the carriers rejected it and its unused prepaid months were refunded, does not send from your own numbers until it is resubmitted.
Stable errors
| Code | Meaning |
|---|---|
SMS_SENDING_NOT_APPROVED | No number in the workspace is on an approved 10DLC campaign, so sends, replies, batches, sending settings, and new consent records are refused (403) |
PHONE_NOT_SMS_READY | The workspace can send, but this number is not assigned to an approved campaign or is suspended |
SMS_DESTINATION_NOT_SUPPORTED | A Canadian number was asked to text a number outside Canada (422) |
CAMPAIGN_BILLING_SUSPENDED | The workspace's 10DLC campaign has an unpaid monthly fee past its 7-day grace (402) |
CONSENT_REQUIRED | No active campaign-scoped consent or conversation exception |
RECIPIENT_SUPPRESSED | Organization-wide STOP suppression is active |
RECIPIENT_TIMEZONE_REQUIRED | Proactive send has no resolvable IANA timezone |
INSUFFICIENT_CREDITS | Atomic segment reservation could not be made |
MESSAGE_NOT_CANCELABLE | Submission began or the message is terminal |
IDEMPOTENCY_CONFLICT | Key was reused with a different normalized request (409), or the Idempotency-Key is missing or longer than 128 characters (422) |
INVALID_CURSOR | A list cursor or a stream Last-Event-ID was not one Speko issued |
SMS_THREAD_AGENT_CHANGED | A write sent expected_agent_id, and another agent now handles the conversation |
AGENT_NO_LONGER_HANDLES_THREAD | A queued agent message was canceled before submission because its agent stopped handling the conversation |
AUTOMATION_PAUSED | A queued auto-reply was canceled before submission because automation on the conversation was paused, by a person or an opt-out |
CONVERSATION_REDACTED | A queued or scheduled message was canceled before submission because its conversation was deleted |
A carrier failure (delivery_failed) sets the message's error to the Telnyx error code and its description, for example { "code": "40008", "detail": "Undeliverable: ..." }. These codes come from the carrier and are not part of the stable list above.
Treat submission_unknown as a status, not a signal to retry. Recover by reading the existing message with its original ID or waiting for a webhook.