The moderation trail (ops), newest first
GET /v1/ops/community/moderation- quién puede llamarla
- Un operador
- 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
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
cursor | consulta | integer | opcional | Return rows with an id below this. |
limit | consulta | integer | opcional | Rows, newest first: 50 by default, at most 200; a larger value lists 200. |
Qué responde
A page of the trail.
| Campo | Tipo | Qué lleva |
|---|---|---|
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 o 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 o null | The cursor for the next page; null on the last one. |
esquema
itemsarray de Moderation obligatorio — The moderations of the page, newest first.idinteger obligatorio — The moderation's id.actionstring obligatorio — What was done: an event hidden or shown again, a pubkey banned or unbanned. · uno de "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 obligatorio — Why: a word of the policy's vocabulary,legal:<reference>orother:<text>.actorstring obligatorio —operator:<id>.atstring (date-time) obligatorio — When it was done.
next_cursorinteger | null obligatorio — The cursor for the next page; null on the last one.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 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. |
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" | 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.