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
Body
PARAM
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. |
HEADERS
Key | Curl curl -X GET '2010-04-01-Accounts-AccountSid-Messages.json-Url/2010-04-01/Accounts/:AccountSid/Messages.json?From=TWILIO_PHONE_NUMBER?To=<string>&From=TWILIO_PHONE_NUMBER&DateSent=<dateTime>&DateSent<=<dateTime>&DateSent>=<dateTime>&PageSize=<integer>' ENDPOINTS |