The moderation trail (ops), newest first
GET /v1/ops/community/moderation- who may call it
- An operator
- how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
The append-only lens trail, paged by id (cursor = the id to continue below).
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
cursor | query | integer | optional | Return rows with an id below this. |
limit | query | integer | optional | Rows, newest first: 50 by default, at most 200; a larger value lists 200. |
What it answers
A page of the trail.
| Field | Type | What it carries |
|---|---|---|
items | array | The moderations of the page, newest first. |
items[].id | integer | The moderation's id. |
items[].action | string | What was done: an event hidden or shown again, a pubkey banned or unbanned. |
items[].event_id | string | 64 hex characters (hide/unhide). |
items[].pubkey | string | 64 hex characters (ban/unban). |
items[].npub | string or null | The pubkey as an npub. Only on a ban or an unban. |
items[].reason | string | Why: a word of the policy's vocabulary, legal:<reference> or other:<text>. |
items[].actor | string | operator:<id>. |
items[].at | string | When it was done. |
next_cursor | integer or null | The cursor for the next page; null on the last one. |
schema
itemsarray of Moderation required — The moderations of the page, newest first.idinteger required — The moderation's id.actionstring required — What was done: an event hidden or shown again, a pubkey banned or unbanned. · one of "hide", "unhide", "ban", "unban"event_idstring — 64 hex characters (hide/unhide).pubkeystring — 64 hex characters (ban/unban).npubstring | null — The pubkey as an npub. Only on a ban or an unban.reasonstring required — Why: a word of the policy's vocabulary,legal:<reference>orother:<text>.actorstring required —operator:<id>.atstring (date-time) required — When it was done.
next_cursorinteger | null required — The cursor for the next page; null on the last one.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 401 | unauthorized | unauthorized: the request does not say who makes it, or what it offers does not verify: no key or session where one is needed, or a password, a code, a passkey or a signed event that does not check. The message says what is missing. |
| 403 | forbidden | forbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which. |
Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.
Example
curl and jq, in any shell.
curl -s 'https://api.btcintel.io/v1/ops/community/moderation?limit=50' \
-H "Authorization: Bearer $BTCINTEL_KEY" | jqThis route needs an operator credential. Set BTCINTEL_KEY to the ops bearer or a btci_ key with the ops:agent scope first: the snippet reads it from there and holds no key.