Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Nostr Protocol (NIP-01)

NIP-01 defines the core Nostr protocol: event format (id, pubkey,created_at, kind, tags, content, sig), client-to-relay messages(EVENT, REQ, CLOSE), and relay-to-client messages (EVENT, OK, EOSE,CLOSED, NOTICE) exchanged over a single WebSocket connection. Thisis the minimum surface every client and relay must implement.

Nostr Protocol (NIP-01) is one of 4 APIs that Nostr publishes on the APIs.io network, described by an AsyncAPI event-driven specification.

Tagged areas include NIP-01, Event, WebSocket, Subscription, and Signature. The published artifact set on APIs.io includes an AsyncAPI specification.

Requests are made against the base URL wss://relay.example.

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI
Base URL
wss://relay.example

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

nostr-asyncapi.yml Raw ↑

Other APIs Nostr publishes across the network.

Nostr Implementation Possibilities (NIPs)
Nostr Relay WebSocket Interface
nostr-tools JavaScript Library