Comments
Add a comment
Starts a thread on the record or replies with reply_to (a resolved thread reopens). Users in mentions are added to the text as @Full Name and notified.
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope:
crm.writeBody application/json
kindstringrequiredRecord type.
Values
customeroppcontactthreadlentryobj_idintegerrequiredRecord id.
bodystringrequiredText (max 5,000 characters).
reply_tointegeroptionalComment being replied to.
mentionsarrayoptionalMentioned user ids (max 10).
Errors
| HTTP | error | Meaning |
|---|---|---|
400 | invalid | Missing or invalid field (`message` explains). |
Request
curl -X POST https://ornek.solk.app/api/v1/comments \
-H "Authorization: Bearer $SOLK_API_KEY"const res = await fetch("https://ornek.solk.app/api/v1/comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOLK_API_KEY}`,
},
});
const data = await res.json();import os, requests
r = requests.post(
"https://ornek.solk.app/api/v1/comments",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
)
print(r.json())Response