The Message Object
Attributes
The exact timestamp at which an outbound message was initiated or an inbound message was received.
Current status of the message. Outbound:
queued, sent, failed, delivered, undelivered, read (WhatsApp only). Inbound: received, delivered, undelivered.Source address of the message. For outbound: Plivo phone number, short code, alphanumeric sender ID, or WhatsApp Business number. For inbound: the sender’s phone number.
Destination phone number. For inbound messages, this is the Plivo phone number that received the message.
Plivo error code.
000 for successful delivery. See error codes for failure codes.WhatsApp-only. How the conversation was initiated. Values:
utility, authentication, marketing, service.Example Message Object
List All Messages
Retrieve a list of message records with optional filters.Arguments
Retrieve a Message
Get details of a specific message by its UUID.Arguments
Send a Message
Send an SMS, MMS, or WhatsApp message to one or more recipients.Arguments
Sender ID: phone number, short code, or alphanumeric string. For WhatsApp, use your WhatsApp Business number. Either
src or powerpack_uuid is required.Destination phone number in E.164 format. For multiple recipients, separate with
< (e.g., 14156667777<14157778888).Message content. For SMS: max 1,600 GSM characters or 737 Unicode characters. For WhatsApp freeform: max 4,096 characters.
Deprecated. Plivo no longer supports domestic India SMS via DLT; messages to India are delivered over international (ILDO) routes.
Deprecated. Plivo no longer supports domestic India SMS via DLT; messages to India are delivered over international (ILDO) routes.
Deprecated. Plivo no longer supports domestic India SMS via DLT; messages to India are delivered over international (ILDO) routes.
Response
Returns the message UUID(s) and API request ID.Response
List MMS Media
Retrieve media files associated with an MMS message.Arguments
Message Status Callbacks
Configure a callback URL to receive delivery status updates for your messages.Callback Parameters
Status callback parameters
Status callback parameters
Handling Incoming Messages
When a message is received on your Plivo number, Plivo sends a request to your configured Message URL.Incoming Message Parameters
Configuration
- Create a Messaging Application
- Set your Message URL endpoint
- Assign the application to your Plivo number
200 OK response. Optionally, return Message XML to send a reply.