List messages
Changed onReturns a paginated list of SMS and MMS messages for the authenticated account, filtered by direction, date, and other criteria.
Request
- Base URLhttps://api.wavix.com
- URLhttps://api.wavix.com/v3/messages
- AuthHTTP bearer
Query parameters
Returns messages sent on or after this date, in YYYY-MM-DD format.
Returns messages sent on or before this date, in YYYY-MM-DD format.
Filters messages by direction. One of inbound (messages received by the account) or outbound (messages sent by the account).
Filters by message sender. For outbound messages, the Sender ID used to send the message; for inbound messages, the originating phone number.
Filters by message recipient. For outbound messages, the destination phone number; for inbound messages, an SMS-enabled number on the Wavix platform.
Current delivery status of the message. One of:
- accepted — the message was accepted by the platform for sending.
- pending — the message is queued and awaiting a carrier response.
- sent — the message was handed to the carrier.
- delivered — the carrier confirmed delivery to the handset.
- undelivered — the carrier reported that delivery failed.
- expired — the validity period elapsed before the message was sent.
- rejected — the message was rejected before sending.
- dlr_expired — no delivery receipt arrived from the carrier within the expected window.
Filters messages by delivery status. Accepts a MessageDeliveryStatus value.
Filters messages by tag. Supported for outbound messages only.
Filters messages by type. One of sms (text message) or mms (multimedia message).
Page number to retrieve. Default 1.
Number of records to return per page. Default 25.
Response
Returns a paginated list of messages.
Example response
{
"items": [
{
"message_id": "871b4eeb-f798-4105-be23-32df9e991456",
"message_type": "sms",
"from": "Wavix",
"to": "447537151866",
"direction": "outbound",
"mcc": "301",
"mnc": "204",
"message_body": {
"text": "Hi there, this a message from Wavix",
"media": null
},
"tag": "Fall sale",
"status": "delivered",
"segments": 1,
"charge": "0.01",
"submitted_at": "2022-04-14T13:51:16.096Z",
"sent_at": "2022-04-14T13:51:16.096Z",
"delivered_at": "2022-04-14T13:51:16.096Z",
"error_message": ""
}
],
"pagination": {
"current_page": 2,
"per_page": 25,
"total": 101,
"total_pages": 5
}
}Changes
- breaking
the
queryrequest parameterstatuswas restricted to a list of enum values - breaking
for the
queryrequest parametersent_after, the format changed from no format todate - breaking
for the
queryrequest parametersent_before, the format changed from no format todate - breaking
the response's body type changed from no type to
objectfor status - info
added the new enum value
acceptedto thequeryrequest parameterstatus - info
added the new enum value
deliveredto thequeryrequest parameterstatus - info
added the new enum value
dlr_expiredto thequeryrequest parameterstatus - info
added the new enum value
expiredto thequeryrequest parameterstatus - info
added the new enum value
pendingto thequeryrequest parameterstatus - info
added the new enum value
rejectedto thequeryrequest parameterstatus - info
added the new enum value
sentto thequeryrequest parameterstatus - info
added the new enum value
undeliveredto thequeryrequest parameterstatus - info
for the
queryrequest parameterstatus, the type was generalized from no type tostring - info
removed
subschema #2from the response bodyallOflist for the response status - info
added the non-success response with the status
- info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
the endpoint scheme security
bearerAuthwas added to the API
- info