List comments on a CRM entry (roots newest first, with preview replies)
curl --request GET \
--url https://www.dench.com/api/v1/crm/objects/{objectName}/entries/{entryId}/comments \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.dench.com/api/v1/crm/objects/{objectName}/entries/{entryId}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.dench.com/api/v1/crm/objects/{objectName}/entries/{entryId}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"page": [
{
"_id": "cmt_01",
"entryId": "ent_lead99",
"depth": 0,
"body": "Kickoff went well — [@Bob](/?member=user_bob) can you send the proposal?",
"actor": {
"kind": "user",
"label": "Ada",
"displayName": "Ada Lovelace",
"userId": "user_ada",
"isDench": false
},
"mentionedUserIds": [
"user_bob"
],
"mentionsDench": false,
"replyCount": 1,
"reactionSummary": [
{
"emoji": "👍",
"count": 2
}
],
"viewerReactions": [
"👍"
],
"canEdit": true,
"createdAt": 1765526400000,
"replies": [
{
"_id": "cmt_02",
"entryId": "ent_lead99",
"parentCommentId": "cmt_01",
"rootCommentId": "cmt_01",
"depth": 1,
"body": "On it.",
"actor": {
"kind": "user",
"label": "Bob",
"displayName": "Bob Smith",
"userId": "user_bob",
"isDench": false
},
"mentionedUserIds": [],
"mentionsDench": false,
"replyCount": 0,
"reactionSummary": [],
"viewerReactions": [],
"canEdit": false,
"createdAt": 1765530000000
}
]
}
],
"isDone": true,
"continueCursor": ""
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}crm
List comments on a CRM entry (roots newest first, with preview replies)
List comments on a CRM entry (roots newest first, with preview replies).
GET
/
crm
/
objects
/
{objectName}
/
entries
/
{entryId}
/
comments
List comments on a CRM entry (roots newest first, with preview replies)
curl --request GET \
--url https://www.dench.com/api/v1/crm/objects/{objectName}/entries/{entryId}/comments \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.dench.com/api/v1/crm/objects/{objectName}/entries/{entryId}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.dench.com/api/v1/crm/objects/{objectName}/entries/{entryId}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"page": [
{
"_id": "cmt_01",
"entryId": "ent_lead99",
"depth": 0,
"body": "Kickoff went well — [@Bob](/?member=user_bob) can you send the proposal?",
"actor": {
"kind": "user",
"label": "Ada",
"displayName": "Ada Lovelace",
"userId": "user_ada",
"isDench": false
},
"mentionedUserIds": [
"user_bob"
],
"mentionsDench": false,
"replyCount": 1,
"reactionSummary": [
{
"emoji": "👍",
"count": 2
}
],
"viewerReactions": [
"👍"
],
"canEdit": true,
"createdAt": 1765526400000,
"replies": [
{
"_id": "cmt_02",
"entryId": "ent_lead99",
"parentCommentId": "cmt_01",
"rootCommentId": "cmt_01",
"depth": 1,
"body": "On it.",
"actor": {
"kind": "user",
"label": "Bob",
"displayName": "Bob Smith",
"userId": "user_bob",
"isDench": false
},
"mentionedUserIds": [],
"mentionsDench": false,
"replyCount": 0,
"reactionSummary": [],
"viewerReactions": [],
"canEdit": false,
"createdAt": 1765530000000
}
]
}
],
"isDone": true,
"continueCursor": ""
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}Authorizations
DenchApiKeyAgentSession
Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.
Query Parameters
Required range:
1 <= x <= 100continueCursor from the prior page.
Preview replies per root (default 2).
Required range:
0 <= x <= 50