To Read Some SMS Messages

Read some SMS messages using the Twilio API.

This procedure is part of the Twilio Book (BDK). To use this book, you must first learn it in your agent.

Output Concepts

Concept
Description
Type

A list of SMS messages that matches the specified filtering criteria

sms message

Examples

  1. Retrieve SMS messages filtered by sender and recipient numbers

read some sms messages whose sender number is "+18004445555" and whose recipient number is "+18004446666"

2. Retrieve SMS messages filtered by the date in which they were sent

convert "2022-03-01T15:00:00Z" to a datetime
use the above as the message date
read some sms messages whose date sent is the message date

3. Retrieve SMS messages that were sent in the specified time period

convert "2022-03-01T15:00:00Z" to a datetime
use the above as the start date
convert "2022-03-03T15:00:00Z" to a datetime
use the above as the end date
read some sms messages whose date sent is after the start date and whose date sent is before the end date

Last updated

Was this helpful?