# Nostr Protocol (NIP-01)

**Canonical:** https://apis.io/apis/nostr/nostr-protocol/  
**Provider:** Nostr — https://apis.io/providers/nostr/  
**Base URL:** wss://relay.example  
**Documentation:** https://github.com/nostr-protocol/nips/blob/master/01.md

Nostr Protocol (NIP-01) is one of 4 APIs that [Nostr](https://apis.io/providers/nostr/) publishes on the [APIs.io](https://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.

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. This is the minimum surface every client and relay must implement.

## Machine-readable artifacts (5)

- **Specification** — https://github.com/nostr-protocol/nips/blob/master/01.md
- **SpecificationIndex** — https://github.com/nostr-protocol/nips
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/nostr/refs/heads/main/asyncapi/nostr-asyncapi.yml
- **Repository** — https://github.com/nostr-protocol
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/nostr/refs/heads/main/apis.yml

## Other Nostr APIs (3)

- [Nostr Implementation Possibilities (NIPs)](https://apis.io/apis/nostr/nostr-nips/)
- [Nostr Relay WebSocket Interface](https://apis.io/apis/nostr/relay-interface/)
- [nostr-tools JavaScript Library](https://apis.io/apis/nostr/nostr-tools/)

## Tags

NIP-01, Event, WebSocket, Subscription, Signature

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/nostr/nostr-protocol/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/nostr/.
