Scopes

Restrict each key to the send routes it needs.

Empty or omitted scopes at create time grant SMS send and SMS OTP only. Add whatsapp:send and whatsapp:otp explicitly when you need WhatsApp routes. Missing a required scope returns INSUFFICIENT_PERMISSIONS.

  • sms:send Send SMS and list approved sender IDs
  • sms:otp Send and verify one-time passwords over SMS
  • whatsapp:send Send WhatsApp templates or session text and list templates
  • whatsapp:otp Send and verify one-time passwords over WhatsApp

Response: missing scope (403)

json

{
  "success": false,
  "error": "API key is missing required scope",
  "code": "INSUFFICIENT_PERMISSIONS"
}