Threads

SDK platic.posts.threads.list()
SDK platic.posts.threads.get()
SDK platic.posts.threads.update()

Read a post's threads or update their status and handling. Each thread contains a root comment and its replies; its id is the root comment's id at Meta.

Example

const { data: threads } = await platic.posts.threads.list("post_123", { needsReply: true });

List threads

Query parameters

ParameterTypeDescriptionRequired
workspacestringOnly if the credential covers several workspaces: the workspace you read. It is required there—
limitintegerThreads per page, from 1 to 100. Default: 25—
pageTokenstringnextPageToken from the previous response—
sortBystringrootCreatedAt (default, date of the root comment) or lastCommentAt—
sortDirectionstringdesc (default) or asc. asc only with rootCreatedAt and without status—
statusstringopen or resolved—
needsReplybooleantrue: the last comment is from the person and nobody has answered—
operationstringautomatic, supervised or assistance. Only threads with their own value; those that inherit from the post do not match—
ownerstringOwner's email—

Response

{
  "status": "success",
  "data": [
    {
      "id": "17890000000000001",
      "postId": "conv_post_001",
      "status": "open",
      "needsReply": true,
      "commentCount": 2,
      "topic": "Sizes",
      "tags": ["Purchase interest"],
      "operation": null,
      "effectiveOperation": "automatic",
      "owners": [],
      "cases": {
        "open": false,
        "openCount": 0,
        "openIds": [],
        "topPriority": null,
        "oldestOpenAt": null,
        "releasedAt": null,
        "untakenCount": 0,
        "attention": false
      },
      "clientId": "cli_123",
      "authorName": "Ana",
      "authorPhotoUrl": null,
      "authorType": null,
      "authorRole": "user",
      "root": { "text": "Do you have size M?", "isSpam": false, "moderationAction": "none" },
      "replyState": null,
      "resolvedAt": null,
      "resolvedReason": null,
      "privateReplies": {},
      "rootCreatedAt": "2026-10-21T18:20:00.000Z",
      "lastCommentAt": "2026-10-21T18:22:00.000Z"
    }
  ],
  "nextPageToken": null
}
FieldDescription
statusopen or resolved. A new comment from the person reopens the thread
needsReplyThe last comment is from the person and nobody has answered
operationThe thread's own value. null = inherits from the post
effectiveOperationWhat applies: automatic, supervised or assistance
ownersEmails of the owners
casesSummary of the thread's cases. On comments, each case lives in a thread: conversationId is the post and threadId the thread id. See the cases summary
rootText and moderation of the root comment
replyStateprocessing while the agent answers; failed if it could not
resolvedReasonWhy it was resolved without a reply (for example spam), or null
privateRepliesBy commentId, the private reply that was sent: status, sentAt, the DM's conversationId

Errors

Statusdetails.codeWhen
400INVALID_REQUESTA parameter is not valid (details.issues says which), you combine two filters, you ask for asc with lastCommentAt or with status, the pageToken is not from this query, or the credential covers several workspaces and workspace is missing
401UNAUTHENTICATEDThe credential is missing or not valid
403FORBIDDENThe credential does not have the Conversations module in that workspace
404NOT_FOUNDThe postId is not a post of the workspace

Get a thread

Get the thread with up to 500 comments in order. Each comment has the fields of comment in the comment.created payload.

const thread = await platic.posts.threads.get("post_123", "thread_123");
{
  "status": "success",
  "data": {
    "id": "17890000000000001",
    "status": "open",
    "needsReply": true,
    "comments": [
      {
        "id": "17890000000000001",
        "postId": "17912345678901234",
        "parentCommentId": null,
        "rootCommentId": "17890000000000001",
        "platform": "instagram",
        "channelId": "igc-17841400000000000",
        "content": "Do you have size M?",
        "contentType": "text",
        "attachments": [],
        "direction": "incoming",
        "role": "user",
        "clientId": "cli_123",
        "authorName": "Ana",
        "isSpam": false,
        "moderation": { "action": "none", "synced": false, "moderatedAt": null },
        "creationDate": "2026-10-21T18:20:00.000Z"
      }
    ],
    "commentsTruncated": false
  }
}
Statusdetails.codeWhen
400INVALID_REQUESTThe credential covers several workspaces and workspace is missing
404NOT_FOUNDThe post or the thread does not exist in the workspace

Update a thread

await platic.posts.threads.update("post_123", "thread_123", { status: "resolved" });

Request body

Send at least one field.

FieldTypeRequiredDescription
statusstring—resolved marks it resolved; open reopens it
operationstring | null—supervised pauses the agent only on this thread; automatic resumes it; null goes back to inheriting from the post. On a thread in assistance, supervised accepts the assistance
ownersarray—Emails of the owners (maximum 25). Replaces the list
{
  "status": "resolved"
}

Answers the updated thread in data, with its comments and message: "Thread updated".

Statusdetails.codeWhen
400INVALID_REQUESTThe body is empty, has a field that is not accepted, an email in owners is not a member of the workspace, or the credential covers several workspaces and workspace is missing
404NOT_FOUNDThe post or the thread does not exist in the workspace

See errors for the rest of the codes in this section.