Send an SMS
Send a Mobile-Originated (MO) SMS from a number provisioned on your
account. Requires the account’s Admin role tier. MO SMS is only
implemented for some operators (SpenzaJ today) — everyone else gets
501. This is a synchronous endpoint that returns 201 directly
(NestJS’s default for @Post(), since the handler has no @HttpCode
override); it does not follow the async 202 + transaction-polling
pattern used elsewhere. fromNumber, toNumber, and text are all
shown as required below to reflect this endpoint’s actual runtime
behavior — enforcement happens in controller logic, not in the
underlying DTO. toNumber is only validated for E.164 format; it is
not checked against any ownership/allow-list.
Authorizations
Bearer token obtained from POST /api/v1.1/auth/token.
Headers
Any string unique to this logical request. On a retry with the same key
and the same request body, the original response is replayed verbatim
(with an Idempotency-Replayed: true response header) instead of the
action repeating. Reusing the key with a different body or on a
different route returns 409 IDEMPOTENCY_KEY_REUSED. A replay attempted
while the original call is still in flight returns 409 CONFLICT.
Optional — omit it and the endpoint behaves exactly as it would otherwise.
"a1b2c3d4-idem-key-001"
Body
Response
Sent.

