ONE social:comments
← Receivers

social:comments

social family

mcp

The comment inbox: comments on the workspace's posts, newest first. Facebook and Instagram comments arrive by Meta's webhook; YouTube, Threads and Reddit comments are polled for posts ONE published (no webhook exists for them), at most 100 per page and 30 posts per read, so a busy post can lag a little and says so in pollGaps. `capped` is true when more comments exist than were returned (ask again with `before`). Each comment carries the reply drafted for it, if any, and its state: drafted, approved, sent, failed, rejected or unknown. Read only: the workspace's owner or a delegate with that right (read_corpus) may read it.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
read_corpus
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/social:comments \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": <string>, "network": <string>, "variantId": <string>, "status": <string> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • workspace string optional Group slug. Omit for the attested workspace.
  • network string optional Only one network: youtube, threads, reddit, instagram or messenger.
  • variantId string optional Only the comments on one network's version of a post.
  • status string optional needs_reply (no reply asked for) · drafted · approved · sent · failed · rejected · unknown. Omit for all.
  • limit number optional Default 50, at most 100.
  • before number optional Epoch ms; only comments older than this. Take it from `next.before` of a capped answer.

Response

What comes back from the call.

  • ok boolean
  • error string forbidden · no_db
  • message string
  • workspace string
  • comments object[]
  • count number
  • limit number
  • capped boolean True when more comments match than were returned.
  • next object
  • note string
  • pollGaps object[] Posts whose last poll did not reach every comment, in plain words (page cap, a first read, a network that cannot page).

Traffic

Every call to social:comments, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names social:comments, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 1
  • one.ie/web/src/components/social/CommentsPanel.tsx:131
API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:455
CLI 3
  • packages/cli/src/lib/receivers-index.generated.ts:479
  • packages/cli/src/lib/receivers.generated.ts:479
  • packages/cli/src/social.ts:513
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Group slug. Omit for the attested workspace.",
      "type": "string"
    },
    "network": {
      "description": "Only one network: youtube, threads, reddit, instagram or messenger.",
      "type": "string"
    },
    "variantId": {
      "description": "Only the comments on one network's version of a post.",
      "type": "string"
    },
    "status": {
      "description": "needs_reply (no reply asked for) · drafted · approved · sent · failed · rejected · unknown. Omit for all.",
      "type": "string"
    },
    "limit": {
      "description": "Default 50, at most 100.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "before": {
      "description": "Epoch ms; only comments older than this. Take it from `next.before` of a capped answer.",
      "type": "number"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "description": "forbidden · no_db",
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "workspace": {
      "type": "string"
    },
    "comments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The inbox id. YouTube, Threads and Reddit ids start with the network and a colon."
          },
          "network": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "postId": {
            "type": "string",
            "description": "The network's id for the post."
          },
          "variantId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The social_post_variants row it was left on; null for a Meta comment on a post ONE did not publish."
          },
          "at": {
            "type": "number",
            "description": "Epoch ms the network stamped the comment."
          },
          "reply": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string"
                  },
                  "draft": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "draftedBy": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvedBy": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "decidedAt": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "externalId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "note": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "status",
                  "draft",
                  "draftedBy",
                  "approvedBy",
                  "decidedAt",
                  "externalId",
                  "note"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "network",
          "author",
          "text",
          "postId",
          "variantId",
          "at",
          "reply"
        ]
      }
    },
    "count": {
      "type": "number"
    },
    "limit": {
      "type": "number"
    },
    "capped": {
      "description": "True when more comments match than were returned.",
      "type": "boolean"
    },
    "next": {
      "type": "object",
      "properties": {
        "before": {
          "type": "number"
        }
      },
      "required": [
        "before"
      ]
    },
    "note": {
      "type": "string"
    },
    "pollGaps": {
      "description": "Posts whose last poll did not reach every comment, in plain words (page cap, a first read, a network that cannot page).",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "variantId": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "variantId",
          "platform",
          "note"
        ]
      }
    }
  },
  "required": [
    "ok"
  ]
}