Skip to Content

List comment threads on a document

You're viewing API version 2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.
GET
/api/v1/documents/{id}/comments

Returns all comment threads attached to a document, with their messages. Filter by status (OPEN, RESOLVED, ALL).

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Path Parameters

id*string

Query Parameters

Header Parameters

authorization*string

Bearer token for API authentication

Response Body

200

application/json
  1. response
threads*array<>
Example Request
curl -X GET 'https://app.sajn.se/api/v1/documents/string/comments?status=%22OPEN%22' \  -H 'authorization: string'
Example Response
{  "threads": [    {      "id": "string",      "documentId": "string",      "status": "OPEN",      "visibility": "INTERNAL",      "excerpt": "string",      "createdAt": null,      "updatedAt": null,      "resolvedAt": null,      "createdBy": {        "id": "string",        "name": "string",        "email": "string"      },      "resolvedBy": {        "id": "string",        "name": "string",        "email": "string"      },      "messages": [        {          "id": "string",          "threadId": "string",          "parentId": "string",          "authorType": "USER",          "body": "string",          "mentions": [            "string"          ],          "createdAt": null,          "editedAt": null,          "deletedAt": null,          "author": {            "id": "string",            "name": "string",            "email": "string"          }        }      ]    }  ]}

Was this page helpful?