Create a Message
Create a message.
Permissions
The API token must include the following scopes: Messaging.
Path Parameters |
---|
AccountSid uuid — REQUIREDThe unique identifier of the project that sent or received this message. |
Request Body |
---|
To string — REQUIREDThe phone number in E.164 format that received the message. For inbound messages, this is one of your SignalWire phone numbers; for outbound messages, this is the remote phone number that received the message. |
From string — REQUIREDThe phone number in E.164 format. For inbound messages, this will be the remote phone number who sent the message. For outbound messages, this will be one of your SignalWire phone numbers. |
Body string — REQUIREDThe text of the message. Up to 1600 characters long and can be null if no message was sent. |
MediaUrl string — REQUIREDURL of media you wish to attach and send with the message. Include multiple |
ApplicationSid stringThe SID of a SignalWire Compatibility application used to configure the message's |
MaxPrice stringThe maximum price in USD acceptable for the message to be sent. Once your message is queued, the cost to send the message is calculated and if it is greater than |
StatusCallback stringA URL endpoint to receive callbacks each time the status of the message changes from |
ValidityPeriod integerThe number of seconds a message will allow being queued before canceling. When sending high volume of messages, messages can sit in your sending queue. If the message should only be sent in in a specific timeframe, use |
MessagingServiceSid stringIf a number group was used when sending an outbound message, the number group's ID will be present. If no number group was used, the value will be null. |
Responses | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 OK
|