Skip to content
moxon home

Captcha Generation

The /captcha endpoint generates an image from a text provided as a parameter. This endpoint can be useful for testing a user with the generated captcha by storing the text in memory.

gethttps://api.moxon.dev/v3/captcha

Parameters

  • textstringrequired

    The captcha text to generate. Must contain at least one character

Request Example

Request
GET /v3/captcha?text=test1234?ABCD

Response

The endpoint returns a PNG image of the generated captcha.

cURL

cURL
curl -X GET "https://api.moxon.dev/v3/captcha?text=test1234?ABCD" --output captcha.png

Error Handling

If parameters are missing or invalid, the API will return an error:

  • 400Please provide a valid argument (?text={text})The text parameter is missing or invalid