btcintel

The moderation trail (ops), newest first

GET /v1/ops/community/moderation
quién puede llamarla
Un operador
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Nunca en caché
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
En esta página

The append-only lens trail, paged by id (cursor = the id to continue below).

Parámetros

NombreDóndeTipoObligatorioQué hace
cursorconsultaintegeropcionalReturn rows with an id below this.
limitconsultaintegeropcionalRows, newest first: 50 by default, at most 200; a larger value lists 200.

Qué responde

A page of the trail.

CampoTipoQué lleva
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 o 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 o nullThe cursor for the next page; null on the last one.
esquema
  • items array de Moderation obligatorio — The moderations of the page, newest first.
    • id integer obligatorio — The moderation's id.
    • action string obligatorio — What was done: an event hidden or shown again, a pubkey banned or unbanned. · uno de "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 obligatorio — Why: a word of the policy's vocabulary, legal:<reference> or other:<text>.
    • actor string obligatorio — operator:<id>.
    • at string (date-time) obligatorio — When it was done.
  • next_cursor integer | null obligatorio — The cursor for the next page; null on the last one.

Errores

EstadoCódigoCuándo
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.

Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.

Ejemplo

curl y jq, en cualquier 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.