Skip to content

Read a comment thread and its comments

PubNio API inbox.comments.get: read a comment thread and its comments. Request fields, examples in five clients, errors, and idempotency.

Read a comment thread and its comments with GET /api/v1/inbox/comments/{threadId}. Requires an API key with the read scope or a signed-in workspace member.

Request

Parameter In Type Required
threadId path UUID Yes
workspaceId query UUID Yes
cursor query string No
limit query string No

Response

  • HTTP 200: InboxCommentThreadDetail with thread, data, hasMore, nextCursor.

The OpenAPI document has each field’s type.

Examples

const thread = await workspace.inbox.thread(threadId);
thread = workspace.inbox.get_comment_thread(thread_id)
curl "https://pubnio.com/api/v1/inbox/comments/$THREAD_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
pnio inbox comments get "$THREAD_ID"
async () => {
  const threadId = "<threadId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/inbox/comments/${threadId}`,
    query: { workspaceId: codemode.workspaceId },
  });
  return response.data;
};

Errors

It declares no problem of its own.

It declares the problems every Inbox operation and most operations declare.

Idempotency

None needed: a read is safe to retry.

Limits

  • Up to 100 items a page; pass nextCursor back as cursor. See Pagination.

Type to search…

↑↓ navigate↵ selectEsc close