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/v3/captcha
Parameters
| Parameter | Required | Description |
|---|---|---|
text | Yes | The captcha text to generate. Must contain at least one character |
Request Example
GET /v3/captcha?text=test1234?ABCDResponse
The endpoint returns a PNG image of the generated captcha.
cURL
bash
curl -X GET "https://api.sylvain.pro/v3/captcha?text=test1234?ABCD" --output captcha.pngError Handling
If parameters are missing or invalid, the API will return an error:
| Error Message | Description |
|---|---|
Please provide a valid argument (?text={text}) | The text parameter is missing or invalid |