Skip to main content
POST
/
api
/
v1
/
whatsapp
/
templates
/
sync
Bulk-sync templates for a WABA from Meta into local DB
curl --request POST \
  --url https://{subdomain}.mihu.ai/api/v1/whatsapp/templates/sync \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "waba_id": "123456789012345"
}
'
{
  "success": true,
  "message": "Synced N templates from Meta",
  "data": {
    "waba_id": "<string>",
    "meta_returned": 123,
    "local_total_after_sync": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Body

application/json
waba_id
string
required
Example:

"123456789012345"

Response

Sync complete. Response includes how many templates Meta returned and what's now in local DB for that WABA.

success
boolean
Example:

true

message
string
Example:

"Synced N templates from Meta"

data
object