Send SMS/MMS using powerpack

POST https://api.plivo.com/v1/Account/{{auth_id}}/Message/

Send Message or MMS, below is the list of arguments that can be passed in this API request, more information can be found here

ArgumentsDescriptionRequired/Conditional/Optional
srcSet this parameter to the sender ID you wish to use. This could a phone number, shortcode or alphanumeric string.Conditional
dstSet this parameter to the phone number to which the message is to be delivered.Required
textSet this parameter to the content of the text message.Required
typeSet this parameter either as sms for SMS messages or as mms for MMS messages. Defaults to sms.Optional
media_urlsA comma separated list of URL encoded hyperlinks to the images or gifs to be included in the MMS message. This is a required field if the message type is mms.Conditional
urlSet this parameter to the fully qualified URL to which status update callbacks for the message should be sentOptional
methodThe HTTP method to be used when calling the url defined above. Defaults to POST when not specified. Note that only GET and POST are presently supported.Optional
logIf set to false, the text and media content of this message will not be logged on Plivo infrastructure, and the dst value will be masked (e.g., +141XXXXX528)Optional
trackableSet this parameter to true for messages that have a trackable user action, for example, entering a 2FA verification code. Setting this parameter to true implies that you intend to update Plivo upon successful delivery of the message using the Conversion Feedback API. Read our guide on Providing Conversion Feedback for trackable SMS messages for details. This parameter defaults to false when no specified.Optional

Request Body

{"powerpack_uuid"=>"your_powerpack_uuid", "dst"=>"14152223333", "text"=>"Hello, this is a sample text", "type"=>"mms", "media_urls"=>"https://media.giphy.com/media/26gscSULUcfKU7dHq/source.gif", "url"=>"http://foo.com/sms_status/", "method"=>"POST", "log"=>"true", "trackable"=>"false"}