requestWhatsAppOtp
Public: no authentication required.
Send an OTP via WhatsApp (stub — not configured).
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation RequestWhatsAppOtp($input: RequestWhatsAppOtpInput!) {
requestWhatsAppOtp(input: $input)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RequestWhatsAppOtp($input: RequestWhatsAppOtpInput!) {\n requestWhatsAppOtp(input: $input)\n}",
"variables": {
"input": {
"email": "string"
}
}
}
EOF
Variables:
{
"input": {
"email": "string"
}
}
Response:
{
"data": {
"requestWhatsAppOtp": true
}
}
requestWhatsAppOtp(
input: RequestWhatsAppOtpInput!
): Boolean!
Arguments
requestWhatsAppOtp.input ● RequestWhatsAppOtpInput! non-null input
The details of the request whats app otp request.
Type
Boolean scalar
The Boolean scalar type represents true or false.