Skip to content

List blog comments

Try it

Readers' comments on the site's blog, newest first. status=waiting (held for approval) or status=approved narrows it; post_id narrows it to one post.

GET/api/v1/sites/{site_id}/comments

Authentication

An API key as Authorization: Bearer or x-api-key. It needs the blog:read scope — read blog posts and topics.

blog:readRead onlyMCP tool: list_post_comments

Parameters

Named placeholders go in the path; the rest in the query string.

site_idstringPath · required
The site's id.1 to 100 characters
post_idstringQuery · optional
Only this post's comments.At most 100 characters
statusstringQuery · optional
One of: waiting, approved
limitintegerQuery · optional
How many to return (1–100).1 to 100Default 50
cursorstringQuery · optional
next_cursor from the previous page.1 to 100 characters

Response

200 with JSON on success (schema on the right). Errors use the standard envelope.

curl
curl -X GET 'https://websites.workflowcorp.com/api/v1/sites/SITE_ID/comments' \
  -H "Authorization: Bearer $WEBSITEBUDDY_API_KEY"
Example arguments
{
  "site_id": "SITE_ID"
}
Response schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "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
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "data",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}