Skip to main content
POST
/
v1
/
platforms
/
youtube
/
comments
/
{commentId}
/
moderate
Moderate a YouTube comment
curl --request POST \
  --url https://api.social-api.ai/v1/v1/platforms/youtube/comments/{commentId}/moderate \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_id": "<string>",
  "ban_author": true,
  "post_id": "<string>",
  "status": "<string>"
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Path Parameters

commentId
string
required

YouTube comment ID

Body

application/json

Moderation action (post_id is required to resolve the channel that owns the comment)

account_id
string
ban_author
boolean
post_id
string
status
string

Response

Comment moderated

success
boolean
Example:

true