{ "type": "object", "description": "Paginated collection of conversation threads", "name": "ThreadCollection", "properties": { "results": { "type": "array", "description": "Array of thread records", "items": { "type": "object", "description": "Represents a conversation thread containing messages between participants.", "properties": { "id": { "type": "string", "description": "Unique identifier for the thread" }, "inboxId": { "type": "string", "description": "ID of the inbox containing this thread" }, "status": { "type": "string", "description": "Current status of the thread", "enum": [ "OPEN", "CLOSED" ] }, "spam": { "type": "boolean", "description": "Whether the thread is marked as spam" }, "associatedContactId": { "type": "string", "description": "ID of the associated CRM contact" }, "assignedTo": { "type": "string", "description": "User ID the thread is assigned to" }, "originalChannelId": { "type": "string", "description": "ID of the original communication channel" }, "originalChannelAccountId": { "type": "string", "description": "ID of the original channel account" }, "latestMessageTimestamp": { "type": "datetime", "description": "ISO 8601 timestamp of the latest message" }, "latestMessageSentTimestamp": { "type": "datetime", "description": "ISO 8601 timestamp of the latest sent message" }, "latestMessageReceivedTimestamp": { "type": "datetime", "description": "ISO 8601 timestamp of the latest received message" }, "closedAt": { "type": "datetime", "description": "ISO 8601 timestamp when the thread was closed" }, "createdAt": { "type": "datetime", "description": "ISO 8601 timestamp when the thread was created" }, "archived": { "type": "boolean", "description": "Whether the thread is archived" } }, "required": [ "id", "inboxId", "status", "createdAt" ] } }, "paging": { "type": "object", "description": "Pagination information for list responses.", "properties": { "next": { "type": "object", "description": "Pagination cursor information for retrieving the next page.", "properties": { "after": { "type": "string", "description": "Cursor token for the next page" }, "link": { "type": "string", "description": "API link to the next page" } } } } } }, "required": [ "results" ], "$schema": "https://json-structure.org/draft/2020-12/schema" }