# Captcha API Service Methods; ## Generate Challenge `https://api.alveus.dev/captcha/v1/challenge?apiKey=xxxx:xxxx` Generates a challenge and returns the answer symbol, the symbol name, and the captcha image as a base64 encoded jpeg image. ### Successful Response: ```json { "success": true, "data": { "symbol": "", "symbolName": "", "imageData": "data:image/jpeg;base64,...." } } ``` - `success`: A boolean of true when successful. - `symbol`: The symbol (i.e. emoji) that is the correct answer. - `symbolName`: The name of a symbol (i.e. "popcorn"). - `imageData`: Base64 encoded image data. ### Unsuccessful Response: ```json { "success": false, "error": "", "message": "" } ``` - `success`: A boolean of false indicating that the request failed. - `error`: An error code (See below). - `message`: A humanised message describing the error. ### Error codes: - `unauthorized`: The provided API key is invalid. - `unknown_error`: An unknown error has occured.