Skip to content
Developer docs Overview and quickstart

Developer docs

Everything in CommentGate is open to your own code, on every plan: a REST API to read comments and act on them, work the autopilot, pull report totals and record sales; signed webhooks that push events to you; a hosted MCP server for Claude, ChatGPT and Cursor; and the commentgate command line tool.

Updated September 26, 2026

Quickstart

1. Create a key

In CommentGate, open Settings, then API keys, and create a key. It is shown once, so store it somewhere safe, then put it in your shell:

export COMMENTGATE_API_KEY="cg_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

2. Make your first call

GET /me answers with the workspace (brand) the key belongs to:

Request
curl https://commentgate.com/api/v1/me \
  -H "Authorization: Bearer $COMMENTGATE_API_KEY"
Response
{
  "data": {
    "workspace": { "id": "a5bf2b64-1c0e-4f8a-9d3b-2e7c6f5a4b19", "name": "Wildermere" },
    "key": { "id": "3ac0fccd-7e21-4b9d-8f6a-1d2c3b4a5e6f", "name": "Quickstart", "prefix": "cg_live_qwn7" },
    "created_by": { "name": "Jordan Hayes" },
    "can_act": true
  }
}

3. Read the comments waiting for a person

curl "https://commentgate.com/api/v1/comments?status=review&limit=10" \
  -H "Authorization: Bearer $COMMENTGATE_API_KEY"

4. Hide one

Use the id of a comment from the list. The platform confirms within seconds:

curl -X POST https://commentgate.com/api/v1/comments/2a8d5bac-3084-472a-92d9-700577412c23/actions \
  -H "Authorization: Bearer $COMMENTGATE_API_KEY" \
  -H "content-type: application/json" \
  -d '{"action":"hide"}'

5. Get events as they happen

Rather than polling, subscribe a URL with a REST hook or add a webhook in Settings, then Alerts. Every delivery is signed.

From the command line

The same things without writing code. Save your key once, then work what is waiting:

npx commentgate login
npx commentgate needs-you

Install it for good with npm install -g commentgate. See Command line.

From an AI assistant

Add https://commentgate.com/mcp as a connector in Claude, ChatGPT or Cursor, sign in and pick your brand. The assistant can then tell you how the autopilot is doing, answer what is waiting, hide and reply, and pull your numbers. See MCP server.

Conventions

  • Every request goes to https://commentgate.com/api/v1 over HTTPS and every body is JSON (content-type: application/json).
  • Responses wrap the result in data. Lists add next_cursor; see Pagination.
  • Times are ISO 8601 in UTC (2026-09-22T18:22:30Z). Filters that take a time need an offset (Z or -04:00).
  • Every platform id is a string. TikTok and Threads ids do not fit in a JavaScript number.
  • Responses call a brand a workspace. A key sees every connected account in its workspace.
  • Errors are JSON with a stable code; see Errors.

Every endpoint

In the help center

  • Connect Zapier and Make

    Start a Zap or a Make scenario when a comment arrives, is hidden, needs you or turns into a lead, and hide, reply or record a sale from any other app.

  • Send sales and leads to Meta

    Connect your Meta dataset so sales from your tracked links and emails people give you in DMs reach Events Manager, and your ads learn who buys.