Reject a draft with a reason (human curator or admin)
POST /v1/ops/drafts/{id}/reject- who may call it
- An operator
- a human:
adminorcurator - how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
id | path | integer | required | The draft's id. |
reason | body | string | required | Why the draft is rejected. Required and never blank. |
The body is application/json.
schema
reasonstring required — Why the draft is rejected. Required and never blank.
What it answers
The rejected draft.
| Field | Type | What it carries |
|---|---|---|
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 or null | The source it is published under on approval. Null when it names none. |
lead_event_id | string or 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. |
decided_by | string or null | The operator who decided it. Null while it waits. |
decided_at | string or null | When it was decided. Null while it waits. |
reason | string or null | Why it was rejected. Null otherwise. |
published_id | integer or null | The id of the row the approval wrote, in the draft's table. Null until it is approved. |
created_at | string | When it was proposed. |
guard | string | Why a pending draft would be held out of a batch; absent when nothing holds it. |
schema Draft
idinteger — The draft's id.claim_tablestring — The table the payload is for: intel.annotations, intel.entities, intel.entity_relations or intel.events.payloadobject — What the draft would write, as proposed.proposed_bystring — Who proposed it: an operator's id,npub:<hex>,key:<id>oraccount:<id>.source_idstring | null — The source it is published under on approval. Null when it names none.lead_event_idstring | null — The Community event that led to it, 64 hex. Null when none did.statusstring — Where it stands:draftuntil a human approves or rejects it. · one of "draft", "approved", "rejected", "withdrawn"decided_bystring | null — The operator who decided it. Null while it waits.decided_atstring | null (date-time) — When it was decided. Null while it waits.reasonstring | null — Why it was rejected. Null otherwise.published_idinteger | null — The id of the row the approval wrote, in the draft's table. Null until it is approved.created_atstring (date-time) — When it was proposed.guardstring — Why a pending draft would be held out of a batch; absent when nothing holds it.
Errors
| Status | Code | When |
|---|---|---|
| 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. |
| 404 | not_found | not_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which. |
| 429 | quota_exceeded | quota_exceeded: the caller's tier ran out of requests for the minute or the day. Retry-After says when to try again; every rate-limited answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Tier. While the deployment runs in log-only mode the decision is logged instead and X-RateLimit-Policy: log-only is set. |
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 -X POST https://api.btcintel.io/v1/ops/drafts/1/reject \
-H "Authorization: Bearer $BTCINTEL_KEY" \
-H 'Content-Type: application/json' \
-d '{"reason":"…"}' | 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.