Quickstart
Run the full flow in 4 API calls.
Stealth endpoints
Create and scan stealth payments.
Yellow endpoints
Private trading channels.
Base URLs
| Environment | URL |
|---|---|
| Production | https://backend.specterpq.com |
| Local dev | http://localhost:3001 |
Endpoint map
| Group | Endpoints | Purpose |
|---|---|---|
| Keys | POST /keys/generate | Generate ML-KEM-768 keypairs and meta-address |
| Stealth | POST /stealth/create, POST /stealth/scan | Create stealth payments, discover incoming payments |
| Registry | POST /registry/announcements, GET /registry/announcements, GET /registry/stats | Store and query announcements |
| Names | GET /ens/resolve/:name, GET /suins/resolve/:name | ENS and SuiNS name resolution |
| IPFS | POST /ipfs/upload, GET /ipfs/:cid | Meta-address storage and retrieval |
| Yellow | POST /yellow/channel/*, GET /yellow/config | Private channel operations |
The integration loop
Quick health check
- cURL
- JavaScript
- Python
Authentication and security
The API server includes built-in security middleware:- API key auth for write endpoints (when
API_KEYenv var is set) - Per-IP rate limiting (default: 10 req/s, 30 burst)
- Security headers (CSP, X-Frame-Options, X-Content-Type-Options)
- Body size limits to prevent abuse
- CORS configurable via
ALLOWED_ORIGINS
Need help with the API? Email pranshurastogi3196@gmail.com or open an issue on GitHub.
