---
title: "moderate_comment"
description: "Publish, hold for review, or reject (hide) a comment on one of the account's posts. banAuthor with 'rejected' also hides the author's future comments. Needs the **comments** permission. Also available as the MCP tool `moderate_comment`."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mixetape.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: mixetape API › comments

`POST /api/v1/tools/moderate_comment`

Publish, hold for review, or reject (hide) a comment on one of the account's posts. banAuthor with 'rejected' also hides the author's future comments. Needs the **comments** permission. Also available as the MCP tool `moderate_comment`.

## Authentication

- `apiKey`, http, header `Authorization`

## Request body

_Required._

- `moderate_comment.id` (string, required) — mixetape post id (list_posts)
- `moderate_comment.commentId` (string, required)
- `moderate_comment.status` (string, required)
  - one of `"published"`, `"heldForReview"`, `"rejected"`
- `moderate_comment.banAuthor` (boolean, optional)

## Example request

```json
{
  "id": "string",
  "commentId": "string",
  "status": "published",
  "banAuthor": true
}
```

## Code samples

### cURL

```curl
curl --request POST \
  --url https://mixetape.com/api/v1/tools/moderate_comment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "string",
  "commentId": "string",
  "status": "published",
  "banAuthor": true
}
'
```

### TypeScript

```typescript
const url = 'https://mixetape.com/api/v1/tools/moderate_comment';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({id: 'string', commentId: 'string', status: 'published', banAuthor: true})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://mixetape.com/api/v1/tools/moderate_comment"

payload = {
    "id": "string",
    "commentId": "string",
    "status": "published",
    "banAuthor": True
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The tool's result.

#### Example

```json
{
  "result": null
}
```

- `moderate_comment.response.200.result` (unknown, required) — What the tool returns

### 400

The request is invalid; `error` says why.

#### Example

```json
{
  "error": "string"
}
```

- `moderate_comment.response.400.error` (string, required) — What went wrong, in plain words

### 401

No valid API key.

#### Example

```json
{
  "error": "string"
}
```

- `moderate_comment.response.401.error` (string, required) — What went wrong, in plain words

### 403

The key lacks the permission this needs.

#### Example

```json
{
  "error": "string"
}
```

- `moderate_comment.response.403.error` (string, required) — What went wrong, in plain words

### 404

Not found, or not yours.

#### Example

```json
{
  "error": "string"
}
```

- `moderate_comment.response.404.error` (string, required) — What went wrong, in plain words


Source: https://docs.mixetape.com/api/comments/moderate_comment/index.md
