Verify New User

This API is for verifying newly registered user


GRAPHQL


Headers

FieldsTypeDescriptionExampleData Management
URLstring{base_url}/users
GRAPHQLstringQUERY
content-typestringJSONapplication/json

Request

query{
  verify_new_account(email:"sachinsuresh704@gmail.com",otp:"12345"){
    message
  }
}

Request Parameters

FieldsTypeDescriptionRequired
emailstringemail of the user
otpstringOTP received on the registered email

Success

{
    "data": {
        "verify_new_account": {
            "message": "User account Verified"
        }
    }
}

Error

{
    "errors": [
        {
            "message": "Incorrect OTP",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": ["verify_new_account"]
        }
    ],
    "data": {
        "verify_new_account": null
    }
}