List all messages sent from your Twilio number
GET {{2010-04-01-Accounts-AccountSid-Messages.json-Url}}/2010-04-01/Accounts/:AccountSid/Messages.json?From={{TWILIO_PHONE_NUMBER}}
Retrieve a list of messages belonging to the account used to make the request. You can filter for example for only the messages that were sent from a specific phone number.
Read more about it in the Twilio Docs
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
To | string | Read messages sent to only this phone number. | |
From | string | Read messages sent from only this phone number or alphanumeric sender ID. | |
DateSent | string | The date of the messages to show. Specify a date as YYYY-MM-DD in GMT to read only messages sent on this date. For example: 2009-07-06 . You can also specify an inequality, such as DateSent<=YYYY-MM-DD , to read messages sent on or before midnight on a date, and DateSent>=YYYY-MM-DD to read messages sent on or after midnight on a date. | |
DateSent< | string | The date of the messages to show. Specify a date as YYYY-MM-DD in GMT to read only messages sent on this date. For example: 2009-07-06 . You can also specify an inequality, such as DateSent<=YYYY-MM-DD , to read messages sent on or before midnight on a date, and DateSent>=YYYY-MM-DD to read messages sent on or after midnight on a date. | |
DateSent> | string | The date of the messages to show. Specify a date as YYYY-MM-DD in GMT to read only messages sent on this date. For example: 2009-07-06 . You can also specify an inequality, such as DateSent<=YYYY-MM-DD , to read messages sent on or before midnight on a date, and DateSent>=YYYY-MM-DD to read messages sent on or after midnight on a date. | |
PageSize | string | How many resources to return in each list page. The default is 50, and the maximum is 1000. |
RESPONSES
status: OK
{"end":51142961,"first_page_uri":"https://ZvltuXKxENEyvG.fnbzDIxrccIwHE6GxsyHjMd","messages":[{"account_sid":"AC9E","api_version":"commodo sint sunt eu","body":"ut cillum","date_created":"fugiat ipsum enim quis","date_sent":"o","date_updated":"laborum id esse elit","direction":"outbound-reply","error_code":89665305,"error_message":"deserunt","from":"anim esse","messaging_service_sid":"MGC0","num_media":"enim et","num_segments":"quis qui ipsum","price":"exercitation Duis","price_unit":"consequat qu","sid":"SMe5","status":"scheduled","subresource_uris":{},"to":"nulla","uri":"cillum ut in irure"},{"account_sid":"ACD4","api_version":"incididunt in non","body":"deserunt incididunt irure eiusmod","date_created":"sint ea","date_sent":"Ut ut consectetur","date_updated":"non dolore","direction":"outbound-api","error_code":-69524035,"error_message":"dolore Ut officia","from":"reprehenderit","messaging_service_sid":"MGEe","num_media":"voluptate fugiat eiusmod qui Ut","num_segments":"ea","price":"consequat","price_unit":"fugiat aliquip","sid":"MM38","status":"received","subresource_uris":{},"to":"in tempor labore eiusmod","uri":"elit non dol"}],"next_page_uri":"http://fSikGpthYZQbOt.sncsPW4TzW44TkKnuDgx8f2FJz.","page":-43897926,"page_size":12121047,"previous_page_uri":"https://lSrGpSrECCMzKudcyRlwJdfhlnZEaAQ.hytgI,rCvOIy,x1C6vbgTvc9p6X2hkAdrqkd5jx8JKwJPiCrpsg2w","start":-23084704,"uri":"https://USSzIQwA.hvxpmaT2476DlQGIi"}