The relay's write policy (ops)
GET /v1/ops/relay/policy- who may call it
- An operator
- how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
write_enabled (false until the posting policy is signed off), min_pow_difficulty, attack_mode (raises the effective floor to 24 bits) and who changed it last.
Parameters
It takes no parameters.
What it answers
The policy row.
| Field | Type | What it carries |
|---|---|---|
write_enabled | boolean | False until the posting policy is signed off. |
min_pow_difficulty | integer | The proof-of-work floor the policy sets, in bits. Attack mode can raise the effective floor. |
attack_mode | boolean | Raises the effective floor to 24 bits. |
floor | integer | The effective minimum difficulty the door enforces. |
moderation_reasons | array | The vocabulary a moderation reason must come from; legal:<reference> and other:<text> are always accepted. |
updated_at | string | When the policy last changed. |
updated_by | string or null | operator:<id> of the last change. |
schema RelayPolicy
write_enabledboolean required — False until the posting policy is signed off.min_pow_difficultyinteger required — The proof-of-work floor the policy sets, in bits. Attack mode can raise the effectivefloor. · ≥ 0 · ≤ 64attack_modeboolean required — Raises the effective floor to 24 bits.floorinteger required — The effective minimum difficulty the door enforces.moderation_reasonsarray of string — The vocabulary a moderation reason must come from;legal:<reference>andother:<text>are always accepted.updated_atstring (date-time) required — When the policy last changed.updated_bystring | null —operator:<id>of the last change.
Errors
| Status | Code | When |
|---|---|---|
| 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. |
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/relay/policy \
-H "Authorization: Bearer $BTCINTEL_KEY" | jq '{write_enabled, min_pow_difficulty, attack_mode}'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.