List posts

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

List posts with comments, ordered by most recent activity. You can also get a post by id or change the agent that handles it.

Example

const { data: posts } = await platic.posts.list({ platform: "instagram" });

Query parameters

ParameterTypeDescriptionRequired
workspacestringOnly if the credential covers several workspaces: the workspace you read. It is required there—
limitintegerPosts per page, from 1 to 100. Default: 25—
pageTokenstringnextPageToken from the previous response—
channelIdstringComments channel (igc-… or fbc-…). Cannot be combined with platform—
platformstringinstagram or facebook—
startDatestringActivity since this date (ISO 8601)—
endDatestringActivity until this date (ISO 8601)—
sortDirectionstringdesc (default) or asc, by last activity—

Response

{
  "status": "success",
  "data": [
    {
      "id": "conv_post_001",
      "externalId": "17912345678901234",
      "platform": "instagram",
      "channelId": "igc-17841400000000000",
      "title": "New autumn collection 🍂",
      "permalink": "https://www.instagram.com/p/Cxyz/",
      "contactName": "Acme",
      "media": {
        "type": "IMAGE",
        "productType": "FEED",
        "url": "https://scontent.cdninstagram.com/…",
        "thumbnailUrl": null
      },
      "publishedAt": "2026-10-20T15:00:00.000Z",
      "operation": "automatic",
      "paused": false,
      "agentId": null,
      "status": "active",
      "topic": "Pricing",
      "tags": [],
      "owners": [],
      "openThreadsCount": 3,
      "assistanceThreadsCount": 1,
      "cases": {
        "open": true,
        "openCount": 1,
        "openIds": ["Es9mK2nB4vC6xZ8lP0qW"],
        "topPriority": "normal",
        "oldestOpenAt": "2026-10-21T17:40:00.000Z",
        "releasedAt": null,
        "untakenCount": 1,
        "attention": true
      },
      "unreadCommentsCount": 5,
      "participantsCount": 12,
      "stats": { "reactions": 240, "comments": 31, "shares": 4 },
      "lastComment": {
        "commentId": "17890000000000001",
        "text": "Do you have size M?",
        "authorName": "Ana",
        "role": "user",
        "at": "2026-10-21T18:22:00.000Z"
      },
      "creationDate": "2026-10-20T15:05:00.000Z",
      "lastUpdate": "2026-10-21T18:22:00.000Z"
    }
  ],
  "nextPageToken": null
}

data has the posts of this page and nextPageToken the token of the next one (null on the last).

FieldDescription
idPost ID in Platica. Use it as postId
externalIdPost ID at Meta
platforminstagram or facebook
channelIdThe account's comments channel
titleText of the post
operationAgent control: automatic (answers) or supervised (does not answer)
pausedtrue when a person paused the agent on this post
agentIdThe post's own agent. null = the channel's agent answers
openThreadsCountThreads waiting for a reply
assistanceThreadsCountThreads where the agent asked for help
casesSummary of the cases of all its threads. See the cases summary
unreadCommentsCountUnread comments in the inbox
statsReactions, comments and shares according to Meta
lastCommentThe most recent comment

Errors

Statusdetails.codeWhen
400INVALID_REQUESTA parameter is not valid (details.issues says which), channelId comes together with platform or is not a comments channel, 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

Get a post

const post = await platic.posts.get("post_123");

Answers { "status": "success", "data": { … } }, with the post in data and the same shape as a list element.

Statusdetails.codeWhen
400INVALID_REQUESTThe credential covers several workspaces and workspace is missing
404NOT_FOUNDThe id is not a post of the workspace

Update a post

Pause or resume the agent for the entire post, or assign a different agent from the channel's.

await platic.posts.update("post_123", { operation: "supervised" });

Request body

Send at least one of the two fields.

FieldTypeRequiredDescription
operationstring—supervised pauses the agent; automatic resumes it
agentIdstring | null—Agent that answers on this post. null goes back to the channel's agent
{
  "operation": "supervised"
}

Answers the updated post in data, with message: "Post updated".

Statusdetails.codeWhen
400INVALID_REQUESTThe body is empty, has a field that is not accepted, or the credential covers several workspaces and workspace is missing
404NOT_FOUNDThe id is not a post of the workspace

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

Notes