Skip to content

Sms

Send SMS and MMS from your numbers. Replies arrive in the inbox (platform sms) and as message.received events.

GET/v1/phone-numbers/{id}/sms/opt-outs

Texts from this number to them are refused.

Parameters

  • idstringrequired

Response 200

data []
  • phoneNumberstringrequired
  • atstring (date-time)
Terminal window
curl "https://api.marsial.dev/v1/phone-numbers/num_…/sms/opt-outs" \
-H "Authorization: Bearer $MARSIAL_API_KEY"
POST/v1/sms/messages

From one of your numbers with SMS on. Replies thread into the inbox conversation it returns.

Body

  • numberIdstringrequired

    The number that sends it (num_…), with SMS on.

  • tostringrequired
  • textstring

    Up to 10 SMS segments.

    max 1,530

  • mediaUrlsstring (uri)[]

    Public media URLs: sends an MMS where the carrier allows it.

    max 10 items

  • sendAtstring (date-time)

    Schedule it for later.

  • idempotencyKeystring

    max 100

Response 201

data
  • conversationIdstring | nullrequired

    The inbox conversation (cnv_…) replies thread into.

  • statusstringrequired

    Values: sent · scheduled

Terminal window
curl -X POST "https://api.marsial.dev/v1/sms/messages" \
-H "Authorization: Bearer $MARSIAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"numberId": "num_…",
"to": "+447700900123",
"text": "Your order 4821 is on its way"
}'

© 2026 Marsial by TWOFACES ·marsial.dev ·Dashboard ·soporte@twofacesco.com