The embedded Nostr relay (WebSocket) and its NIP-11 document
GET /relay- who may call it
- Anyone
- no key and no session
- what it costs
- Not counted
- The relay limits itself: per pubkey, per address and per connection. · tiers and keys
- how fresh
- Depends on the request
- MCP tool
- None
- how fresh, by case
- the JSON pointer: a GET with neither
Upgrade: websocketnorAccept: application/nostr+json: never cached - the NIP-11 document (
Accept: application/nostr+json): no cache header
On this page
wss://relay.btcintel.io (Caddy rewrites the relay host to this path; wss://api.btcintel.io/relay is the same relay). A request with Upgrade: websocket opens the NIP-01 connection; Accept: application/nostr+json returns the NIP-11 information document (name, supported NIPs, limitations including the current min_pow_difficulty, posting_policy); any other GET answers a small JSON pointer with the relay URL, the posting policy, whether writes are open and the current proof-of-work floor. The door accepts kinds 1111 (NIP-22 comments), 1985 (NIP-32 labels) and 5 (NIP-09 deletions) that carry a NIP-73 bitcoin: subject and NIP-13 proof of work at or above the floor; it is read-only until the posting policy is signed off. Reads serve only events this relay accepted, with the moderation lens applied. Not counted against tiers: the relay limits per pubkey (30 events / 10 min), per address (60 / 10 min) and per connection.
Parameters
It takes no parameters.
What it answers
The JSON pointer (or the NIP-11 document with Accept: application/nostr+json).
| Field | Type | What it carries |
|---|---|---|
relay | string | The public wss:// URL. |
nip11 | string | How to read the relay's NIP-11 document: a GET with Accept: application/nostr+json. |
posting_policy | string | The address of the relay's posting policy. |
write_enabled | boolean | Whether the relay takes events now. While false it is read-only. |
min_pow_difficulty | integer | The proof of work an event must reach now, in bits: the relay's floor, raised to 24 while attack mode is on. |
accepted_kinds | array | The kinds the relay takes: 5 (deletions), 1111 (comments) and 1985 (labels). |
schema
relaystring — The public wss:// URL.nip11string — How to read the relay's NIP-11 document: a GET withAccept: application/nostr+json.posting_policystring (uri) — The address of the relay's posting policy.write_enabledboolean — Whether the relay takes events now. While false it is read-only.min_pow_difficultyinteger — The proof of work an event must reach now, in bits: the relay's floor, raised to 24 while attack mode is on.accepted_kindsarray of integer — The kinds the relay takes: 5 (deletions), 1111 (comments) and 1985 (labels).
Errors
| Status | Code | When |
|---|---|---|
| 429 | the contract names no code | Too many new connections from this address in a minute (WebSocket upgrades only). The relay answers with no body: no envelope and no code. |
Example
curl and jq, in any shell.
curl -s https://api.btcintel.io/relay | jq '{relay, nip11, posting_policy}'The answer, read on 23 Nov 2026 at 14:56 UTC
{
"relay": "wss://relay.btcintel.io",
"nip11": "GET with Accept: application/nostr+json",
"posting_policy": "https://btcintel.io/docs/community"
}Its headers
Cache-Control: no-store