Suprsonic

Send SMS or WhatsApp messages. Default channel is SMS (reliable delivery). WhatsApp requires recipient opt-in: they must have messaged your Business number within 24 hours. Returns the message id, channel, recipient, sender number and send status. Sends a real message to a phone number: a sent message cannot be recalled, and every call sends a new one. Use it to text a number the user gave you. Cost: 1 credit, charged only when a call succeeds.

post/v1/messages/send

Request

Request body

tostring required
channel'auto' | 'sms' | 'whatsapp'
messagestring required
from_numberstring nullable

Response

The call's envelope: success, data (the capability's result), metadata, and credits_used (0 when the call did not succeed).

successboolean required
credits_usedinteger

Changes

    • breaking

      request property was restricted to a list of enum values

    • breaking

      request property list-of-types was narrowed by removing types null from media type application/json

    • info

      added the new auto enum value to the request property

    • info

      added the new sms enum value to the request property

    • info

      added the new whatsapp enum value to the request property

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status