Skip to main content
POST
/
api
/
v1
/
documents
/
{id}
/
comments
/
{threadId}
/
messages
Add a message to a comment thread
curl --request POST \
  --url https://app.sajn.se/api/v1/documents/{id}/comments/{threadId}/messages \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "body": "<string>",
  "parentMessageId": "<string>",
  "mentions": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "threadId": "<string>",
  "parentId": "<string>",
  "body": "<string>",
  "mentions": [
    "<string>"
  ],
  "createdAt": "<unknown>",
  "editedAt": "<string>",
  "deletedAt": "<string>",
  "author": {
    "id": "<string>",
    "name": "<string>",
    "email": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sajn.se/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string
required

Bearer token for API authentication

Path Parameters

id
string
required
threadId
string
required

Body

application/json

Body

body
string
required

Message body

Minimum string length: 1
parentMessageId
string | null

Reply to a specific message in the thread

mentions
string[]

User IDs mentioned in the message

Response

200

id
string
required
threadId
string
required
parentId
string | null
required
authorType
enum<string>
required
Available options:
USER,
AI
body
string
required
mentions
string[]
required
createdAt
any
required
editedAt
string | null
required
deletedAt
string | null
required
author
object
required