direct; a chat with two or more is a group.
Create a chat
You create a chat by sending its first message withPOST /v1/chats. See Sending Messages.
List chats
next_cursor as cursor for the next page. See Pagination.
Find a person’s chats
Addto to list only the chats a person is in, direct and group, by their phone number or email address. Add from to keep only the chats on one of your numbers. Together they find the direct chat between your number and that person:
totakes a US phone number, in E.164 or US format, or an email address. Groups the person has left aren’t included.- Passing one of your own numbers in
toreturns400VALIDATION_ERROR; usefromfor that. - A
fromnumber that isn’t in your workspace returns an empty list.
Retrieve a chat
Read a chat’s messages
GET /v1/chats/{chat_id}/messages returns the messages in one chat. See Sending Messages.
Mark a chat as read
POST /v1/chats/{chat_id}/read marks the chat read and, in direct iMessage and RCS chats, sends a read receipt. See Typing and Read Receipts.
Related
Group Chats
Start a group, change its name and photo, and manage who’s in it.
Number Lookup
Check whether a number uses iMessage before you text it.
Typing and Read Receipts
Show typing and mark chats as read.
Name and Photo Sharing
Share your number’s name and photo with the people you text.