WA.cr APP - API v2
  1. Templates
WA.cr APP - API v2
  • API v2 Documentation
    • Account
      • Get Account Info
      • Get Usage Statistics
      • Get Plan Limits
    • Authentication (OTP Verification)
      • Send OTP/Verification Code
      • Resend OTP
      • Verify OTP
      • Check OTP Status
      • List Authentication Templates
    • Comments
      • Get Comments
      • Add Comment
    • Contacts
      • List Contacts
      • Create Contact
      • Get Contact
      • Update Contact
      • Delete Contact
      • Batch Create Contacts
      • Batch Delete Contacts
    • Groups
      • List Groups
      • Create Group
      • Get Group
      • Update Group
      • Delete Group
      • Add Contacts to Group
      • Remove Contacts from Group
    • Messages
      • Send Text Message
      • Send Template Message
      • Send Media Message
      • Send Interactive Message
      • List Messages
      • Get Message
    • Sources
      • List Sources
      • Create Source
      • Get Source
      • Update Source
      • Delete Source
    • Statuses
      • List Statuses
      • Create Status
      • Get Status
      • Update Status
      • Delete Status
    • Templates
      • List Templates
        GET
      • Sync Templates from WhatsApp
        POST
      • Get Template
        GET
  1. Templates

Sync Templates from WhatsApp

POST
/templates/sync
Synchronize WhatsApp message templates from the WhatsApp Business API into your account.
This endpoint fetches all templates from your connected WhatsApp Business Account and updates the local template database. Use this after creating, modifying, or deleting templates in Meta Business Manager to keep your local data in sync.
Required Scope: templates:sync

Prerequisites#

Your WhatsApp Business API must be configured with:
Business Account ID (wm_business_account_id) — set in account WhatsApp settings
Access Token (wm_access_token) — set in account WhatsApp settings
If these are not configured, the API will return a WHATSAPP_NOT_CONFIGURED error.

Response Fields#

FieldTypeDescription
synced_countintegerNumber of templates synchronized
templatesarrayList of synced template objects

Error Responses#

StatusError CodeDescription
401UNAUTHORIZEDInvalid or missing API token
403INSUFFICIENT_SCOPEToken missing templates:sync scope
422WHATSAPP_NOT_CONFIGUREDWhatsApp Business API is not configured for this account
500WHATSAPP_API_ERRORFailed to sync templates from WhatsApp
500INTERNAL_ERRORAn unexpected error occurred

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or

Responses

🟢200
application/json
Successful response
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/templates/sync' \
--header 'Authorization: Bearer <token>'
Response Response Example
{}
Modified at 2026-02-25 01:06:20
Previous
List Templates
Next
Get Template
Built with