Overview
POST
/discussion/topics/{id}/postsdiscussionReply to a topic (bumps the topic’s reply count + last activity)
Create a record in posts.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
Request body
application/json · optional
- bodystring
Reply markdown; stored as a content.markdown body document.
- parentPostIdoptionalstring
Id of the post this reply nests under (a flat reply when omitted).
Example
{
"body": "string",
"parentPostId": "string"
}Responses
201
The created reply post
- idstring
- topicIdstring
- parentPostIdstring?
- postNumberinteger
- bodyDocumentIdstring?
The content.markdown doc backing this post’s body.
- customerIdoptionalstring
Author (server-stamped principal). Omitted on the public surface.
- ecosystemIdoptionalstring
Owning ecosystem (present on create only).
- communityIdoptionalstring
The community instance (inherited from the topic; present on create only).
- contentoptionalstring?
Resolved markdown body (present on the list routes; null if the body doc was deleted).
- isDeletedoptionalboolean
- createdAtstring
- updatedAtstring
- deletedAtoptionalstring?
Example
{
"id": "string",
"topicId": "string",
"parentPostId": "string",
"postNumber": 0,
"bodyDocumentId": "string",
"customerId": "string",
"ecosystemId": "string",
"communityId": "string",
"content": "string",
"isDeleted": true,
"createdAt": "string",
"updatedAt": "string",
"deletedAt": "string"
}400
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}404
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}409
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/discussion/topics/{id}/posts" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"body": "string",
"parentPostId": "string"
}'JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/discussion/topics/{id}/posts", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"body\": \"string\",\n \"parentPostId\": \"string\"\n}",
});
const data = await res.json();