Skip to content

Cascade API response formats

Unified response style: JSON with success and message.

On this page
  1. Successful send
  2. Successful verify
  3. Error

Successful send

{
  "success": true,
  "message": "OTP отправлен через WhatsApp",
  "expires_in": 300
}

Successful verify

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

Error

{
  "success": false,
  "message": "Недостаточно токенов рассылки. Пополните баланс."
}

Laravel validation responses may include an errors object — handle it alongside message.

API message strings are always Russian, whatever the docs language is. Branch on error_code / HTTP status, not on the text.

See errors, statuses, documentation, blog.