Skip to content

Publish a comment

Create a reply to a post or another reply. A reply is a comment on a post that you have published through Outstand. We currently do not support interacting with posts that were not published through Outstand. You can either reply to a post by providing the platform post ID or the account username. You can reply to either your own post directly (root post) or to another account's reply/comment under your own post.

POST/v1/posts/{id}/replies

Path Parameters

idstring

Request Body

application/json

contentstring

The content of the reply

platform_post_id?string

The platform-specific post ID to reply to (e.g., X post ID, Threads post ID, etc.)

account_username?string

The username or nickname of the social account to reply from

Response Body

200application/json

JavaScript

Go

Java

C#

cURL

TypeScript

Python

Swift

const body = JSON.stringify({
  "content": "Great post! I agree with you."
})

fetch(" {
  method: "POST",
  headers: {
    "Content-Type": "application/json"
  },
  body
})

200

{
  "success": true,
  "reply_id": "123456789"
}

Create a first comment\ \ Previous Page Get post replies/comments GET\ \ Next Page