Compare input values
    • PDF

    Compare input values

    • PDF

    Article summary

    Available in Classic and VPC

    Compare the value (string or number) of the CAPTCHA image entered by the user to the actual CAPTCHA value (string or number).

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    GET/nkey

    Request headers

    For headers common to all CAPTCHA APIs, see Common CAPTCHA headers.

    Request query parameters

    The following describes the request query parameters.

    FieldTypeRequiredDescription
    codeIntegerOptionalInput value for comparing CAPTCHA keys
    • 0 | 1 (default)
    keyStringRequiredKey value received from the Issue CAPTCHA key API call
    valueStringRequiredUser's input value for the CAPTCHA image

    Request example

    The following is a sample request.

    curl --location --request GET 'https://naveropenapi.apigw.ntruss.com/captcha/v1/nkey?code=1&key={key}&value={value}' \
    --header 'X-NCP-APIGW-API-KEY-ID: {Client ID issued when registering the app}' \
    --header 'X-NCP-APIGW-API-KEY: {Client secret issued when registering the app}'
    

    Response

    The following describes the response format.

    Response body

    The following describes the response body.

    FieldTypeRequiredDescription
    resultBoolean-Whether the user's CAPTCHA input is correct
    • true | false
      • true: correct
      • false: incorrect
    responseTimeDouble-Time taken to get the correct answer (second)
    • -1 - 7200
    • Represent up to 2 decimal places
      • <e.g.> 123.12

    Response status codes

    For response status codes common to all CAPTCHA APIs, see Common CAPTCHA response status codes.

    Response example

    The following is a sample example.

    {
        "result": true,
        "responseTime": 22.9
    }
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.