Read and add
GET /v1/posts/{id}/comments(list_post_comments, scopeposts:read): the threads (a first comment and its replies) for every platform and version, or oneplatform/version_id.author.is_clienttells the client’s comments from the agency’s. Comment text comes back as untrusted content.POST /v1/posts/{id}/comments(create_post_comment, scopeposts:write): a comment on oneplatform’s text, or a reply (parent_id= the thread’s first comment). It is written as you, the signed-in person, never as the client you work for.PATCH /v1/posts/{id}/comments/{comment_id}(update_post_comment): change the text (your own comments only) orresolved: true | false(anyone but a viewer, on a thread’s first comment).DELETE /v1/posts/{id}/comments/{comment_id}(delete_post_comment): your own comments only. The thread keeps its place.
as_user for a client’s post); members reach their own posts.
Get a message when a client comments
GET /v1/comments (list_new_comments) returns the comments added since your last check, across every workspace where you are an owner or admin (an agency and all its clients), or one workspace_id. It gives where and who (workspace, post, its status and link, author), never the text: read that with list_post_comments, or open the link.
1
First check
Call it with
author=client and no since: it starts from now and returns next_since. Keep it.2
Every next check
Pass the kept value as
since. You get only what is new, oldest first, each comment once. While has_more is true, call again at once. Keep the new next_since each time, even when nothing came back.3
Tell your team
For each item, send a message with the workspace name, the post title and
post.app_url.since can also be an ISO time (at most 30 days back), e.g. to catch up after a pause. Comments younger than a few seconds wait for the next check, so none is missed.
