Captcha Verification
The /captcha endpoint verifies an answer submitted for a challenge-mode captcha: send back the token from the X-Captcha-Token header, along with the text the user typed.
posthttps://api.moxon.dev /v6/captcha
Try itpost/v6/captcha
curl -X POST \ "https://api.moxon.dev/v6/captcha" \ -H "Content-Type: application/json" \ -d '{}'Send the request to see the response here.
The request body must be JSON:
tokenstringrequiredToken from the
X-Captcha-TokenheaderanswerstringrequiredText typed by the user. Case-insensitive, trimmed
validbooleantrueif the answer matchesreasonstringWhy it was rejected — absent when
validistrue
| Reason | Meaning |
|---|---|
wrong | The answer does not match the image |
expired | The token is older than 5 minutes |
used | The token was already redeemed — each one works exactly once |
invalid | The token is malformed |
If parameters are missing or invalid, the API will return an error:
- 400
Please provide a token (?token={token})Thetokenis missing - 400
Please provide an answer (&answer={answer})Theansweris missing
- get/v6/captcha - Generate a captcha in challenge mode
- get/v6/pow - Proof of work, the recommended alternative
Last updated on September 12, 2026