Skip to content

Approve a blog comment

Try it

Shows a waiting comment under its post on the live site. Approving one already showing changes nothing.

POST/api/v1/sites/{site_id}/comments/{comment_id}/approve

Authentication

An API key as Authorization: Bearer or x-api-key. It needs the blog:write scope — write, publish and delete blog posts (live at once).

blog:writeChanges the draft or a recordIdempotency-Key optionalMCP tool: approve_post_comment

Parameters

Named placeholders go in the path; the rest in a JSON body.

site_idstringPath · required
The site's id.1 to 100 characters
comment_idstringPath · required
The comment's id.1 to 100 characters

Response

201 with JSON on success (schema on the right). Errors use the standard envelope; a retry with the same Idempotency-Key gets the first answer back (how retries work).

curl
curl -X POST 'https://websites.workflowcorp.com/api/v1/sites/SITE_ID/comments/COMMENT_ID/approve' \
  -H "Authorization: Bearer $WEBSITEBUDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
Example arguments
{
  "site_id": "SITE_ID",
  "comment_id": "COMMENT_ID"
}
Response schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "post": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title",
        "slug"
      ],
      "additionalProperties": false
    },
    "name": {
      "type": "string",
      "description": "The name the reader gave."
    },
    "body": {
      "type": "string",
      "description": "The comment, plain text."
    },
    "status": {
      "type": "string",
      "enum": [
        "waiting",
        "approved"
      ],
      "description": "waiting = held for approval, never shown; approved = under the post on the live site."
    },
    "is_sample": {
      "type": "boolean"
    },
    "created_at": {
      "type": "string"
    },
    "approved_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "post",
    "name",
    "body",
    "status",
    "is_sample",
    "created_at",
    "approved_at"
  ],
  "additionalProperties": false
}