Overview
A Thread is a 1:1 conversation between one of your sending numbers and another party. Threads are created automatically the first time you send to a new address or receive a message from one, and they are returned byGET /v1/threads. The same peer messaged from two different sending numbers is two distinct threads.
Properties
Unique thread identifier (UUID). Use it to send follow-up messages in the conversation and to read its history.
Your sending number the conversation is on. Follow-up sends in the thread always go out from this number.
The other party’s address in canonical form:
+1XXXXXXXXXX for US phone numbers, or the raw email address for email-style iMessage handles.Contact display name when known, otherwise
null.Text of the most recent message in the thread. Empty string if the thread has no messages yet.
Timestamp of the most recent activity in the thread, in milliseconds since the Unix epoch.
Service of the most recent message:
iMessage or SMS.Example
Address Canonicalization
Addresses you pass toPOST /v1/messages are canonicalized before the thread is matched or created:
- 10-digit US numbers become
+1XXXXXXXXXX(e.g.5551234567→+15551234567) - Numbers already carrying a leading
1country code are normalized to+1XXXXXXXXXX - Email addresses (iMessage handles) are left untouched
5551234567, (555) 123-4567, and +15551234567 all resolve to the same thread.