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.
GET/v2/captcha
Parameters
| Parameter | Required | Description |
|---|---|---|
text | Yes | The captcha text to generate. Must contain at least one character |
Request Example
GET /v2/captcha?text=test1234?ABCDResponse
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.pngError Handling
If the value of text is empty, an error will be returned.