Post a reply to an existing space comment
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$commentIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$Body
bodyone ofRequired
The content of the comment.
or
or
object · EmptyOptional
Responses
200
The reply was posted.
application/json
objectstring · enumRequiredPossible values:
Type of Object, always equals to "comment-reply"
idstringRequired
Unique identifier for the reply.
postedAtstring · date-timeRequired
editedAtstring · date-timeOptional
Date when the reply was edited, if it has been edited.
bodyone ofRequired
or
or
object · EmptyOptional
post/spaces/{spaceId}/comments/{commentId}/replies
POST /v1/spaces/{spaceId}/comments/{commentId}/replies HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 113
{
"body": {
"markdown": "# Hello World\n\nThis is a markdown document linking to [another page](/pages/page_id).\n"
}
}200
The reply was posted.
{
"object": "comment-reply",
"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"
}
]
}
],
"body": {
"markdown": "# Hello World\n\nThis is a markdown document linking to [another page](/pages/page_id).\n"
},
"urls": {
"location": "https://example.com"
},
"permissions": {
"view": true,
"edit": true,
"reply": true,
"delete": true
}
}Last updated
Was this helpful?