palbaseDocs

Palbase Auth API · API

POST/auth/pow/challenge

Issue proof-of-work challenge

Issues a proof-of-work challenge consumed by /auth/signup and /auth/login when bot detection is on. Clients hash the returned salt with a nonce until the leading-zero difficulty target is met, then submit the challenge ID + nonce on the next signup or login request.

Called by your app, with the publishable key.

curl
curl -X POST "https://<your-ref>.palbase.studio/auth/pow/challenge" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY"

Responses

200Challenge payload

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation PowChallenge of auth's contract.