Delete a comment

Delete a comment (that was created through Outstand) from the social network it lives on.

Delete a comment (that was created through Outstand) from the social network it lives on. Provide the post ID in the path and the comment's platform-specific ID as replyId. Use the platform_post_id or account_username query param to select which connected account's credentials to use (optional when the post was published to only one account). Supported on Instagram and Threads. On Threads (requires the threads_delete scope) only comments/replies created by the connected account can be deleted - other users' replies can be hidden instead (see the Threads API). Comment deletion is not supported on every network and will return an error where unavailable.

DELETE/v1/posts/{id}/replies/{replyId}

Path Parameters

idstring
replyIdstring

Query Parameters

platform_post_id?string

The platform-specific post ID of the account whose credentials should be used to delete the comment. Optional when the post was published to only one account.

account_username?string

The username or nickname of the connected account whose credentials should be used. Optional when the post was published to only one account.

Response Body

fetch("https://api.outstand.so/v1/posts/string/replies/string?platform_post_id=123456789&account_username=mycompany", {  method: "DELETE"})
{
  "success": true
}
{
  "success": false,
  "error": "Invalid payload",
  "code": "idempotency_key_reuse",
  "details": {
    "content": {
      "_errors": [
        "Required"
      ]
    }
  }
}
{
  "success": false,
  "error": "Invalid payload",
  "code": "idempotency_key_reuse",
  "details": {
    "content": {
      "_errors": [
        "Required"
      ]
    }
  }
}
{
  "success": false,
  "error": "Internal server error",
  "code": "idempotency_recovery_failed",
  "message": "Database connection failed"
}