⚡ Powered by Agile Solution Labs

The REST API for
the Nostr Protocol

Build on Nostr without learning WebSockets, NIPs, or Schnorr signatures. One API key. Simple HTTP endpoints. Ship in minutes.

Get your API key → View API docs
Post to Nostr in 2 lines
# 1. Register (free) curl -X POST https://gateway.agilesolutionlabs.com/v1/auth/register \ -d '{"email":"you@example.com"}' # → {"api_key": "nk_live_...", "pubkey": "..."} # 2. Post a note curl -X POST https://gateway.agilesolutionlabs.com/v1/posts \ -H "Authorization: Bearer nk_live_..." \ -d '{"content":"Hello Nostr!"}' # → {"event_id": "...", "published_to": 1}

Built on world-class infrastructure

☁️ Cloudflare Workers 🔐 Schnorr / secp256k1 ⚡ Nostr Protocol 💳 Stripe Payments 📧 Resend Email
Features

Everything you need to build on Nostr

No WebSocket knowledge required. No NIP specs to read. Just make HTTP requests.

🔑

Managed Keypairs

We generate and securely store a Nostr keypair for every API key. AES-256-GCM encrypted at rest. You never touch a private key.

🌐

Multi-Relay Publishing

Publish to multiple Nostr relays in a single API call. Results per relay returned instantly. Defaults to ASL Relay.

📝

Full NIP Support

Posts, profiles, reactions, reposts, DMs, follow lists — all supported out of the box with simple endpoints.

🔍

Event Queries

Query any relay with filters: kinds, authors, tags, timestamps, full-text search. Returns clean JSON arrays.

🛡️

BYOK Mode

Bring your own Nostr private key. Pass it per-request via header — never stored. Full control over your identity.

📊

Usage Analytics

Track requests per endpoint, success rates, and rate limit usage. Full 90-day log retention.

Global Edge Network

Runs on Cloudflare Workers — deployed to 300+ cities worldwide. Sub-100ms response times globally.

🔄

Key Rotation

Rotate your API key secret instantly without changing your keypair or losing any data.

🚦

Rate Limiting

Per-key rate limits with standard headers. Upgrade your tier to unlock higher throughput.

How it works

Ship in 3 steps

From zero to publishing on Nostr in under 5 minutes.

Register & get your API key

One POST request to create your account. Receive an API key and a Nostr pubkey instantly. Verify your email to start publishing.

Make HTTP requests

Use any language, any HTTP client. Pass your API key as a Bearer token. Call endpoints like POST /v1/posts.

Events publish to Nostr

The Gateway signs your event with your keypair, connects to the relay network, and returns the result — all within one HTTP request.

Pricing

Simple, transparent pricing

Start free. Upgrade when you need more. No credit card required for free tier.

Free
$0/month
Perfect for side projects and prototypes.
  • 10 requests / minute
  • 1,000 requests / day
  • 2 API keys
  • 3 relays per publish
  • Managed keypairs
  • Usage analytics
  • Priority support
  • Custom relay config
Get started free
Enterprise
Custom
For high-volume apps and teams.
  • 300 requests / minute
  • 500,000 requests / day
  • 50 API keys
  • 50 relays per publish
  • Managed keypairs
  • Full usage analytics
  • Dedicated support
  • SLA guarantee
Contact us

Start building on Nostr today

Free tier, no credit card required. Your first Nostr note in under 5 minutes.

Create free account →