messaging

Send an SMS message

post/messages

Request

  • Base URL: https://api.saperly.com
  • URL: https://api.saperly.com/messages
  • Auth: none required

Request body

fromNumberIdstring required

The id of one of your numbers to send the SMS from. Must be a number you own; with a scoped key it must also be within the key's number allow-list.

tostring required

The recipient phone number in E.164 format (e.g. +14155550123).

bodystring required

The message text (1–1600 characters). Long messages are split into multiple segments automatically and billed per segment.

Response

Success

idstring required
numberIdstring required
direction'inbound' | 'outbound' required
tostring required
fromstring required
bodystring required
segmentsnumber required
statusstring required
createdAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.