ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiAuth

Get a nostr login challenge

GET
/api/v1/auth/nostr/challenge

Issues a single-use challenge for a pubkey (npub or hex). Sign a kind 27235 event with tags ["challenge", c] and ["expires", unix] and POST it to /auth/nostr.

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Response Body

Example Request
curl -X GET 'http://localhost:3001/api/v1/auth/nostr/challenge'
Example Response200
Empty