WhatsApp Templates API

12. Error codes

Public Developer API for Meta template lifecycle on Cloud WhatsApp accounts. Same Meta engine as the Washeej dashboard. Access requires explicit template scopes; Device/QR management is rejected. Provider Meta delete stays deferred.

Envelope

JSON
{
  "ok": false,
  "error": {
    "code": "template_api_cloud_only",
    "message": "إدارة قوالب Meta متاحة لحسابات Cloud فقط.",
    "details": {"whatsapp_account_id": 74, "channel_type": "device"},
    "request_id": "req_..."
  }
}

See also the Errors page and OpenAPI ErrorEnvelope.