line | string | Your account number the thread is on, normalized. |
number | string | The other party's number, normalized. |
messages | object[] | The thread's messages, oldest first. |
messages[].id | integer | The message's id. |
messages[].direction | in | out | in = they texted you, out = you texted them. Spelled this way rather than the carrier's MO/MT, which reads backwards to everyone the first time. |
messages[].from | string | The sender's number, normalized. |
messages[].to | string | The recipient's number, normalized. |
messages[].text | string | The body. Empty is legal and normal for an MMS that carries only an image. |
messages[].media | string[] | Attachment URLs. Publicly readable — the URL is the only thing protecting the file. Treat them as secrets and do not log them. |
messages[].sentAt | string (RFC 3339) | When it was sent, RFC 3339 UTC. |
messages[].read | boolean | Whether YOU have read it. |
messages[].readBy | integer[] | Every user who has read it, matching id in GET /users. |
messages[].sentBy | integer | The user who sent it. Absent when an integration sent it rather than a person. |
messages[].delivery | object | The carrier's receipt. Absent means the carrier has not reported yet — normal for a message sent seconds ago, and permanent for an inbound one. Absent is NOT "failed"; a client that treats it that way shows a false failure on every fresh send. |
messages[].delivery.status | string | The carrier's own word for the outcome, passed through unmapped so the detail that makes a failure diagnosable survives. |
messages[].delivery.error | string | The carrier's failure detail. Empty on success. |
messages[].delivery.at | string (RFC 3339) | When the carrier reported this status, RFC 3339 UTC. |
messages[].groupParticipants | string[] | Every number on a group thread. Absent for a 1:1. |
messages[].scheduled | boolean | Queued for future delivery — in the thread, but not sent yet. |
messages[].scheduledAt | string (RFC 3339) | When it is queued to go out, RFC 3339 UTC. Present only while scheduled is true. |
messages[].blocked | boolean | Not delivered because the other party is on this line's blocked-sender list. The message exists and was charged for. |
messages[].blockReason | string | Why it was blocked, when blocked is true. |
markedRead | boolean | Whether this request also marked the messages read. Only ever true when you passed markRead=true. |