Skip to content
Console
On this page

Send carrier sms on a secret version

Sends one SMS with a pinned same-environment carrier credential in Secrets.

Sends one SMS with a pinned same-environment carrier credential in Secrets. Requires an exact-version broker:sms:send grant and an Idempotency-Key. Returns only a carrier receipt; never exports credentials or retries on a different carrier. The credential is a JSON secret payload with provider "telnyx" and an api_key string. Receipts are retained for 24 hours. If the outcome is unknown, reconcile with the carrier before attempting a new send.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/secrets/secret/secret_versions/secret-version:sendCarrierSms
  • Scope broker:sms:send
  • Effect write — a successful call changes state.
  • Collection secret_versions

Request

FieldTypeWhat it is
namestringExact SecretVersion name; the "latest" alias is not accepted. Required.
sender_numberstringSending number, in E.164 form. Required. Never returned again.
recipient_numberstringRecipient number, in E.164 form. Required. Never returned again.
textstringText to send, at most 1,600 UTF-8 bytes. Required. Never returned again.

Response

FieldTypeWhat it is
receiptstringOpaque carrier-assigned receipt, qualified with the carrier name.

Errors

Every error arrives in the body Errors describes.

Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/secrets/secret/secret_versions/secret-version:sendCarrierSms" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipient_number":"…","sender_number":"…","text":"…"}'