Use this method to get access to all of your outbound and inbound SMS or MMS using a single API endpoint. Messages can be filtered by date, originating (SenderID) and destination phone numbers or message tag
. By default, the results are paginated, with 25 records per page.
This endpoint requires authentication.
GET /messages
Messaging
HTTP Status Code | Error Description | Exception Class |
---|---|---|
400 | Request failed. One or more parameters are not valid | |
403 | Request failed. Outbound messaging service is disabled. | |
Default | Request failed. One or more parameters are not valid |
curl -X GET -G \
--url 'https://api.wavix.com/v2/messages' \
-H 'Accept: application/json' \
-d 'appid=appid' \
-d 'sent_after=2021-04-10T00%3A00%3A00.000Z' \
-d 'sent_before=2021-04-13T00%3A00%3A00.000Z' \
-d 'type=outbound' \
-d 'from=441517010141' \
-d 'to=441517010141' \
-d 'status=accepted' \
-d 'tag=some%20external%20id' \
-d 'page=2' \
-d 'per_page=100'