Add a message to a comment thread
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.POST
Append a reply or new message to an existing comment thread on a document. Posting to a resolved thread will reopen it.
header
AuthorizationBearer <token>Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
id*stringthreadId*stringIdempotency-Key?stringMakes retries safe. A retry with the same key and the same request replays the stored response for 24 hours (header Idempotent-Replayed: true); the same key with a different request returns 400.
Length
length <= 255Body
application/json- body
body*stringMessage body
Length
1 <= lengthparentMessageId?|Reply to a specific message in the thread
mentions?array<string>User IDs mentioned in the message
200
application/json- response
id*stringthreadId*stringparentId*string|nullauthorType*stringValue in
"USER""AI""SIGNER"body*stringmentions*array<string>createdAt*unknowneditedAt*unknowndeletedAt*unknownauthor*|nullcurl -X POST 'https://app.sajn.se/api/v1/documents/string/comments/string/messages' \ -H 'authorization: string' \ -H 'Content-Type: application/json' \ -d '{ "body": "string"}'Example Response
{ "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?