Skip to content

API

POST /otp/verify — verify code

Confirm the code the user received in WhatsApp, Telegram or SMS.

Request

curl -sS -X POST "https://cascade.kz/api/otp/verify" \
  -H "Authorization: Bearer $OTP_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"phone":"77001234567","code":"482910","purpose":"verification"}'

Fields

Field Required
phone yes
code yes
purpose no (same as in send)

Responses

Success:

{ "success": true, "message": "Номер подтверждён" }

Error:

{ "success": false, "message": "Неверный или просроченный код" }

See send, errors, statuses, documentation.