Skip to main content
Version: 1.0.0

Verify

Description : Verify that user solved the challenge correctly.

Method : POST

Endpoint : https://api.arcaptcha.co/arcaptcha/api/verify

Request parameters :

ParametersDescription
challenge_idRequired. The field name arcaptcha-token token you received from your form
site_keyRequired. The sitekey you expect to see.
secret_keyRequired. Your account secret key.

Response body :

ParametersDescription
successStatus of challenge. Can be true or false

Example(NodeJS) :

const arcaptcha_api = "https://api.arcaptcha.co/arcaptcha/api/verify";

const result = await axios.post(arcaptcha_api, {
challenge_id: req.body["arcaptcha-token"],
site_key: "SITE_KEY",
secret_key: "SECRET_KEY",
});
if (result.data.success) {
// its OK
} else {
// throw Error
}