Create a Message
Sends a message through the account and creates a Message resource for tracking its delivery. Use this form-encoded route for SID-based integrations; use SignalWire REST Send a message for a JSON request.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Messaging.
Authentication
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example:
Authorization: Basic base64(project_id:token)
Path parameters
Request
The phone number in E.164 format that will send the message. Either From or MessagingServiceSid must be provided.
The text of the message. Either Body or MediaUrl must be provided.
URL(s) of media you wish to attach and send with the message. Can be specified multiple times for up to 8 media items.
The maximum price in USD acceptable for the message to be sent. Format: decimal with up to 4 decimal places.
A URL endpoint to receive callbacks each time the status of the message changes. See the SMS status callback webhook for the payload your URL will receive.
The number of seconds a message will allow being queued before canceling. Must be between 1 and 172800 (48 hours). Default is 14400 (4 hours).
The ID of a number group to use when sending the message. Either From or MessagingServiceSid must be provided.
Response
The currency in which price is charged as.