btcintel

Drafts awaiting or past decision (ops)

GET /v1/ops/drafts
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

A pending draft carries guard, the guard that would hold it out of a batch, with the text the CSV and the batch answer give: single_source: …, collision: … or chain_mismatch: ….

Parameters

NameWhereTypeRequiredWhat it does
statusquerystringoptionalOnly the drafts in this state.
limitqueryintegeroptionalDrafts, newest first: 100 by default, at most 500; a value outside 1 to 500 reads as 100.

What it answers

Drafts, newest first.

FieldTypeWhat it carries
itemsarrayThe drafts, newest first, at most limit.
items[].idintegerThe draft's id.
items[].claim_tablestringThe table the payload is for: intel.annotations, intel.entities, intel.entity_relations or intel.events.
items[].payloadobjectWhat the draft would write, as proposed.
items[].proposed_bystringWho proposed it: an operator's id, npub:<hex>, key:<id> or account:<id>.
items[].source_idstring or nullThe source it is published under on approval. Null when it names none.
items[].lead_event_idstring or nullThe Community event that led to it, 64 hex. Null when none did.
items[].statusstringWhere it stands: draft until a human approves or rejects it.
items[].decided_bystring or nullThe operator who decided it. Null while it waits.
items[].decided_atstring or nullWhen it was decided. Null while it waits.
items[].reasonstring or nullWhy it was rejected. Null otherwise.
items[].published_idinteger or nullThe id of the row the approval wrote, in the draft's table. Null until it is approved.
items[].created_atstringWhen it was proposed.
items[].guardstringWhy a pending draft would be held out of a batch; absent when nothing holds it.
schema
  • items array of Draft — The drafts, newest first, at most limit.
    • id integer — The draft's id.
    • claim_table string — The table the payload is for: intel.annotations, intel.entities, intel.entity_relations or intel.events.
    • payload object — What the draft would write, as proposed.
    • proposed_by string — Who proposed it: an operator's id, npub:<hex>, key:<id> or account:<id>.
    • source_id string | null — The source it is published under on approval. Null when it names none.
    • lead_event_id string | null — The Community event that led to it, 64 hex. Null when none did.
    • status string — Where it stands: draft until a human approves or rejects it. · one of "draft", "approved", "rejected", "withdrawn"
    • decided_by string | null — The operator who decided it. Null while it waits.
    • decided_at string | null (date-time) — When it was decided. Null while it waits.
    • reason string | null — Why it was rejected. Null otherwise.
    • published_id integer | null — The id of the row the approval wrote, in the draft's table. Null until it is approved.
    • created_at string (date-time) — When it was proposed.
    • guard string — Why a pending draft would be held out of a batch; absent when nothing holds it.

Absent and empty

The caseIn the answer
No guard holds the draft.No guard field.

Errors

StatusCodeWhen
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/drafts?limit=100' \
  -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.