Post a new comment on a change request
Posts a new top-level comment on the change request. Comments can be general or anchored to a specific page and inline location within the change request content. Use this to provide review feedback, ask questions, or flag issues. To reply to an existing comment, use the comment replies endpoint instead.
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$changeRequestIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$Body
nodestringOptional
The node to which the comment is posted, if any.
pagestringOptional
The page to which the comment is posted, if any.
bodyone ofRequired
The content of the comment.
or
or
object · EmptyOptional
Responses
200
The comment was posted.
application/json
and
anyOptional
or
post/spaces/{spaceId}/change-requests/{changeRequestId}/comments
POST /v1/spaces/{spaceId}/change-requests/{changeRequestId}/comments HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 191
{
"node": "text",
"page": "text",
"body": {
"markdown": "# Hello World\n\nThis is a markdown document linking to [another page](/pages/page_id).\n"
},
"tableCell": {
"record": "text",
"definition": "text"
}
}200
The comment was posted.
{
"object": "comment",
"id": "text",
"postedBy": {
"object": "user",
"id": "text",
"displayName": "text",
"email": "text",
"photoURL": "text",
"urls": {
"location": "https://example.com"
}
},
"postedAt": "2026-01-01T00:00:00.000Z",
"editedAt": "2026-01-01T00:00:00.000Z",
"reactions": [
{
"emoji": "text",
"count": 1,
"users": [
{
"user": {
"object": "user",
"id": "text",
"displayName": "text",
"email": "text",
"photoURL": "text",
"urls": {
"location": "https://example.com"
}
},
"reactedAt": "2026-01-01T00:00:00.000Z"
}
]
}
],
"replies": 1,
"repliers": [
{
"updatedAt": "2026-01-01T00:00:00.000Z",
"count": 1,
"user": {
"object": "user",
"id": "text",
"displayName": "text",
"email": "text",
"photoURL": "text",
"urls": {
"location": "https://example.com"
}
}
}
],
"body": {
"markdown": "# Hello World\n\nThis is a markdown document linking to [another page](/pages/page_id).\n"
},
"target": {
"node": {
"id": "text"
},
"tableCell": {
"record": "text",
"definition": "text"
},
"changeRequest": "text",
"review": "text",
"page": {
"id": "text"
},
"space": "text",
"revision": "text"
},
"urls": {
"location": "https://example.com"
},
"permissions": {
"view": true,
"edit": true,
"reply": true,
"delete": true
},
"status": "resolved",
"resolvedAt": "2026-01-01T00:00:00.000Z",
"resolvedBy": {
"object": "user",
"id": "text",
"displayName": "text",
"email": "text",
"photoURL": "text",
"urls": {
"location": "https://example.com"
}
}
}Last updated
Was this helpful?