Send OTP
This API is to send OTP to registered email address of the user for login
GRAPHQL
Headers
| Fields | Type | Description | Example | Data Management |
|---|---|---|---|---|
| URL | string | {base_url}/users | ||
| GRAPHQL | string | MUTATION | ||
| content-type | string | JSON | application/json |
Request
mutation {
send_otp(email: "johndoe@gmail.com") {
message
}
}
Request Parameters
| Fields | Type | Description | Required |
|---|---|---|---|
| string | registered email of the user | ✔ |
Success
{
"data": {
"send_otp": {
"message": "OTP sent successfully"
}
}
}
Error
{
"errors": [
{
"message": "email not registered",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": ["send_otp"]
}
],
"data": {
"send_otp": null
}
}