Verify New User
This API is for verifying newly registered user
GRAPHQL
Headers
| Fields | Type | Description | Example | Data Management |
|---|---|---|---|---|
| URL | string | {base_url}/users | ||
| GRAPHQL | string | QUERY | ||
| content-type | string | JSON | application/json |
Request
query{
verify_new_account(email:"sachinsuresh704@gmail.com",otp:"12345"){
message
}
}
Request Parameters
| Fields | Type | Description | Required |
|---|---|---|---|
| string | email of the user | ✔ | |
| otp | string | OTP 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
}
}