Inbound Polling - only pull the new messages and not the ones already seen
Inbound SMS Polling
Docs can be found here - scroll to 'Pull inbound SMS'. To fetch inbound SMS:
- Call the GET /sms/inbound endpoint (docs)
- The messages show in the response.
- The next step is to mark the messages as read using PUT /sms/inbound-read (docs). This marks all messages as read so they won't be shown in the next poll. You can optionally supply a unix timestamp as the date you want to mark as read. It's recommended to use the date from the last message in the GET /sms/inbound response.
Another option instead of polling for inbound SMS is for us to post them to your URL (webhooks).