btcintel

The caller's own proposals and what came of them

GET /v1/annotations/proposals
quién puede llamarla
Una sesión o una clave
nivel t2 o superior · con el ámbito intel:propose
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
list_proposals
en el servidor MCP
En esta página

The drafts the caller filed through POST /v1/annotations/propose, newest first. The proposer is resolved as that route resolves it, from the credential: an account session as account:<id>, a Nostr session or NIP-98 as npub:<hex>, a t2/t4 key with intel:propose as the allowed npub pubkey names (or its only one), else the key. Each item carries its status; decided_at once a human decided, claim_id once approved (the published claim) and reason when a rejection gives one. The reviewer is never named, and no other caller's draft is ever listed.

Parámetros

NombreDóndeTipoObligatorioQué hace
limitconsultaintegeropcionalProposals per page, newest first: 50 by default, 1 to 100. Any other value is a 400.
cursorconsultaintegeropcionalThe next_cursor of the page before.
pubkeyconsultastringopcionalt2/t4 keys only: which of the key's allowed_npubs proposed (64 hex or npub1…).

Qué responde

The page, newest first.

CampoTipoQué lleva
itemsarrayThe caller's proposals, newest first. Empty when there is none.
items[].draft_idintegerThe draft's id.
items[].created_atstringWhen the proposal was made.
items[].statusstringWhere it stands: draft while it waits for a review, then approved or rejected by a human.
items[].source_idstringThe source the claim would be published under. Absent when the draft names none.
items[].subjectobjectThe subject the proposal is about. Absent when its draft names none.
items[].labelstringThe proposed label. Absent when its draft has none.
items[].decided_atstringAbsent until a human decides.
items[].claim_idstringThe published claim (ann_<n>), once approved.
items[].reasonstringThe reviewer's reason, when a rejection gives one.
next_cursorintegerAbsent on the last page.
esquema ProposalPage
  • items array de ProposalOutcome obligatorio — The caller's proposals, newest first. Empty when there is none.
    • draft_id integer obligatorio — The draft's id.
    • created_at string (date-time) obligatorio — When the proposal was made.
    • status string obligatorio — Where it stands: draft while it waits for a review, then approved or rejected by a human. · uno de "draft", "approved", "rejected", "withdrawn"
    • source_id string — The source the claim would be published under. Absent when the draft names none.
    • subject Subject — The subject the proposal is about. Absent when its draft names none.
      • kind string — What the key names, which also sets the key's form. · uno de "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
      • key string — Canonical key.
    • label string — The proposed label. Absent when its draft has none.
    • decided_at string (date-time) — Absent until a human decides.
    • claim_id string — The published claim (ann_<n>), once approved.
    • reason string — The reviewer's reason, when a rejection gives one.
  • next_cursor integer — Absent on the last page.

Ausente y vacío

El casoEn la respuesta
The caller has proposed nothing.items: [].
A draft no human has decided.No decided_at and no claim_id.
A rejection that gives no reason.No reason.

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.
422nip98_invalidThe NIP-98 event was refused (nip98_invalid): wrong URL or method, stale, bad signature, wrong payload hash, or used before; the message names the reason.
501not_configurednot_configured: this deployment does not run what the route needs, for example the mempool engine, accounts, the intel store or watchlists. The message names it.

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/annotations/proposals?limit=50' \
  -H "Authorization: Bearer $BTCINTEL_KEY" | jq

This route needs a key. Set BTCINTEL_KEY in your environment first: the snippet reads it from there and holds no key. The description above names the tiers the route takes.