btcintel

The moderation trail (ops), newest first

GET /v1/ops/community/moderation
who may call it
An operator
what it costs
1 request of the quota
tiers and keys
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

NameWhereTypeRequiredWhat it does
cursorqueryintegeroptionalReturn rows with an id below this.
limitqueryintegeroptionalRows, newest first: 50 by default, at most 200; a larger value lists 200.

What it answers

A page of the trail.

FieldTypeWhat it carries
itemsarrayThe moderations of the page, newest first.
items[].idintegerThe moderation's id.
items[].actionstringWhat was done: an event hidden or shown again, a pubkey banned or unbanned.
items[].event_idstring64 hex characters (hide/unhide).
items[].pubkeystring64 hex characters (ban/unban).
items[].npubstring or nullThe pubkey as an npub. Only on a ban or an unban.
items[].reasonstringWhy: a word of the policy's vocabulary, legal:<reference> or other:<text>.
items[].actorstringoperator:<id>.
items[].atstringWhen it was done.
next_cursorinteger or nullThe cursor for the next page; null on the last one.
schema
  • items array of Moderation required — The moderations of the page, newest first.
    • id integer required — The moderation's id.
    • action string required — What was done: an event hidden or shown again, a pubkey banned or unbanned. · one of "hide", "unhide", "ban", "unban"
    • event_id string — 64 hex characters (hide/unhide).
    • pubkey string — 64 hex characters (ban/unban).
    • npub string | null — The pubkey as an npub. Only on a ban or an unban.
    • reason string required — Why: a word of the policy's vocabulary, legal:<reference> or other:<text>.
    • actor string required — operator:<id>.
    • at string (date-time) required — When it was done.
  • next_cursor integer | null required — The cursor for the next page; null on the last one.

Errors

StatusCodeWhen
400invalid_inputMalformed input (invalid_input).
401unauthorizedunauthorized: 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.
403forbiddenforbidden: 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" | jq

This 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.