couponsby La Crypta
ApiMinters

Authorize a minter

Accepts npub, nprofile, hex, or NIP-05. Only hex is stored.

POST/api/coupons/minters

Accepts npub, nprofile, hex, or NIP-05. Only hex is stored.

Authorization<token>

Nostr <base64 of kind 27235 event>. Tags: u, method, optional payload (sha256 hex of body), and a random nonce to avoid replay.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/coupons/minters" \  -H "Content-Type: application/json" \  -d '{    "pubkey": "caja2@lacrypta.ar",    "label": "Caja 2"  }'
{  "minter": {    "pubkey": "string",    "npub": "string",    "label": "string",    "createdAt": 0  }}