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:
curl https://commentgate.com/api/v1/me \
-H "Authorization: Bearer $COMMENTGATE_API_KEY" {
"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/v1over HTTPS and every body is JSON (content-type: application/json). - Responses wrap the result in
data. Lists addnext_cursor; see Pagination. - Times are ISO 8601 in UTC (
2026-09-22T18:22:30Z). Filters that take a time need an offset (Zor-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
| Endpoint | What it does |
|---|---|
| GET /api/v1/comments | List comments |
| GET /api/v1/comments/:id | Get a comment |
| POST /api/v1/comments/:id/actions | Act on a comment |
| GET /api/v1/autopilot | Autopilot status |
| GET /api/v1/autopilot/needs-you | List Needs you |
| POST /api/v1/autopilot/needs-you/:id/answer | Answer a Needs you comment |
| GET /api/v1/autopilot/guidance | Get guidance |
| PUT /api/v1/autopilot/guidance | Replace guidance |
| GET /api/v1/autopilot/protections | List protections |
| PATCH /api/v1/autopilot/protections | Change protections |
| GET /api/v1/contacts | List contacts |
| GET /api/v1/contacts/:id | Get a contact |
| PATCH /api/v1/contacts/:id | Update a contact |
| GET /api/v1/tags | List tags |
| GET /api/v1/reports/summary | Report totals |
| POST /api/v1/conversions | Record a sale |
| POST /api/v1/hooks | Subscribe |
| GET /api/v1/hooks | List hooks |
| DELETE /api/v1/hooks/:id | Unsubscribe |
| GET /api/v1/hooks/samples/:event | Sample deliveries |
| GET /api/v1/me | Key and workspace |
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.