SMS & WhatsApp

SMS reference

Transactional SMS, OTP, and WhatsApp template messages.

Endpoints

MethodPathScopeDescription
POST/v1/sms/sendsms:sendSend an SMS or WhatsApp template message.
POST/v1/sms/otp/startsms:otpStart an OTP challenge.
POST/v1/sms/otp/verifysms:otpVerify a code.

Quickstart

Try in playground →
curl -X POST https://api.valienz.io/v1/sms/send \
  -H "Authorization: Bearer $VALIENZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+14155551212",
    "body": "Your code is 123456",
    "channel": "SMS"
  }'

Errors

CodeHTTPDescriptionResolution
E_INVALID_E164400Phone number is not E.164.Format like +14155551212 (country code prefix, no spaces).
E_WHATSAPP_TEMPLATE_NOT_APPROVED403WhatsApp template is pending or rejected.Wait for approval (up to 24h) or pick an approved template.