Skip to content

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.

Parameters

ParameterRequiredDescription
textYesThe captcha text to generate. Must contain at least one character

Request Example

GET /v2/captcha?text=test1234?ABCD

Response

The endpoint returns a PNG image of the generated captcha.

cURL

bash
curl -X GET "https://api.sylvain.pro/v2/captcha?text=test1234?ABCD" --output captcha.png

Error Handling

If the value of text is empty, an error will be returned.