WhatsApp Templates API

3. Account capabilities

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.

Endpoints

GET /v1/whatsapp-accounts/{id}/capabilities

GET /v1/capabilities/templates?whatsapp_account_id={id}

Cloud with credentials → template_management_supported=true. Device/QR → false + blocker template_api_cloud_only. QR messaging is otherwise unchanged.

cURL
curl "https://staging-mobile.washeej.com/v1/capabilities/templates?whatsapp_account_id=YOUR_CLOUD_ACCOUNT_ID" \
  -H "client-id: YOUR_CLIENT_ID" \
  -H "client-secret: YOUR_CLIENT_SECRET"