Skip to content
AdCrunch
Esc
↑↓navigate↵open⌘Jpreview

List the Comments of a Campaign Plan

Lists the Comments of a Campaign Plan, by thread, newest thread first. A Comment is a post on an AdCrunch Campaign Plan, by a person or by an agent for a person: an update, a question, or a decision. It is not a comment on a campaign at Meta, Google or TikTok.

Each row is a top-level Comment with its live replies, oldest first. A deleted top-level Comment that a reply still answers stays in the list with deleted: true and no text.

One page at a time: limit threads at most, 100 by default. When the answer holds nextCursor, more threads exist: send it back as cursor to get the next page.

GET/context/campaign-plans/{slug}/comments
Authorization
AuthorizationBearer token · headerrequired

Send Authorization: Bearer <credential>.

Use an API key (acr_…), from the AdCrunch console under Settings → API keys.

The credential names the organization, and no operation takes an organization parameter.

See https://docs.adcrunch.dev/api/authentication.

Path parameters
slugstringrequired
Query parameters
cursorstring
min length 1
limitintegerrequired
min 1 · max 500 · default: 100
Responses
200

One page of the threads of the Campaign Plan, newest first. This page is the last one, so it carries no nextCursor.

dataobject[]required
Show properties
Array of object
bodystring | nullrequired

The markdown text, 1 to 10,000 characters. null for a deleted Comment that stays as the head of its thread.

clientIdstring | nullrequired

The OAuth client of the agent that posted the Comment, or null when a person posted it. A Comment posted over this API has null.

createdAtnumberrequired

Milliseconds since the Unix epoch, UTC.

createdBystringrequired

The author of the Comment, usr_…: the person who posted it, or for whom an agent posted it.

deletedbooleanrequired

true for a deleted Comment that a live reply still answers. Its body is null.

editedAtnumber | nullrequired

When the author last edited the text, or null.

idstringrequired

The id of the Comment, cmt_….

parentIdstring | nullrequired

The top-level Comment that this reply answers, or null for a top-level Comment.

repliesobject[]required

Each live reply, oldest first. A reply has no replies.

Show properties
Array of object
bodystring | nullrequired

The markdown text, 1 to 10,000 characters. null for a deleted Comment that stays as the head of its thread.

clientIdstring | nullrequired

The OAuth client of the agent that posted the Comment, or null when a person posted it. A Comment posted over this API has null.

createdAtnumberrequired

Milliseconds since the Unix epoch, UTC.

createdBystringrequired

The author of the Comment, usr_…: the person who posted it, or for whom an agent posted it.

deletedbooleanrequired

true for a deleted Comment that a live reply still answers. Its body is null.

editedAtnumber | nullrequired

When the author last edited the text, or null.

idstringrequired

The id of the Comment, cmt_….

parentIdstring | nullrequired

The top-level Comment that this reply answers, or null for a top-level Comment.

replyCountnumberrequired

The number of live replies.

nextCursorstring

Send this value as cursor to get the next page. It is absent on the last page.

400

The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. error is invalid_request, and issues names each field. Nothing was changed. Or AdCrunch cannot use the cursor: it cannot read it, or the cursor belongs to a different query. Then error is invalid_cursor. Send the nextCursor of the previous page with no change, or omit cursor to get the first page.

Any of:
object
issuesobject[]required

One entry for each field that does not match.

Show properties
Array of object
instringrequired

The part of the request that holds the field.

Allowed:bodycookieheadersparamsquery
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

pathstringrequired

A JSON Pointer into that part of the request, such as /filename. An empty string is the whole part.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:invalid_request
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

object
errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:invalid_cursor
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

401

No API key, or one that does not resolve. See the security scheme. error is unauthorized.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:unauthorized
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

402

The organization has no active subscription. An owner subscribes at paywallUrl. error is organization_unentitled.

paywallUrlstring<uri>required

The page where an owner of the organization subscribes. Show it to the person.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:organization_unentitled
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

403

The caller does not hold campaign_plan:read. error is forbidden.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:forbidden
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

404

No Campaign Plan with that slug. error is not_found.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

Request
curl -X GET 'https://api.adcrunch.dev/context/campaign-plans/string/comments?limit=100' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "data": [
    {
      "body": "Meta carries the reach. TikTok tests the younger audience first.",
      "clientId": null,
      "createdAt": 1789610000000,
      "createdBy": "usr_5d2b71",
      "deleted": false,
      "editedAt": null,
      "id": "cmt_8b3f10",
      "parentId": null,
      "replies": [
        {
          "body": "The TikTok test ends on 15 April. I will post the CPA then.",
          "clientId": "https://claude.ai/oauth/mcp-oauth-client-metadata",
          "createdAt": 1789610060000,
          "createdBy": "usr_5d2b71",
          "deleted": false,
          "editedAt": null,
          "id": "cmt_c41a92",
          "parentId": "cmt_8b3f10"
        }
      ],
      "replyCount": 1
    }
  ]
}