List record comment threads

List a record's comment threads

Lists every thread on the record, open and resolved, with their comments, newest activity first. Threads on fields the user may not see are left out. Fails with 404 NOT_FOUND if the record does not exist or the user may not see it.

Request

GET https://www.activityinfo.org/resources/form/{formId}/record/{recordId}/comments

Successful response

application/json

array[object]
thread object The thread itself. required
subscribed boolean True if the user is notified of activity in the thread. required
unread boolean True if the thread has activity the user has not yet seen. required
recordLabel string The record's label as the user sees it, or absent when the thread was listed without labels. optional
comments array[object] The thread's entries in time order, or empty when the thread was listed without its comments. required
users array[object] The authors, subscribers and mentioned users referred to by this view, so that the client can show names without a lookup. required

Error responses

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated

Example

curl -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/form/ck8pu9ha07/record/ck34ujs6v8/comments
Next item
Mark all read