Templates

Sync templates from Meta

Pull the latest template inventory from Meta and upsert into the Kirim DB for this WhatsApp account. Idempotent — call any time, returns a { created, updated, synced } summary. Useful for platform integrations (multi-tenant Customers) so they don't need to wait for an operator to click "Sync" in the dashboard.

post/{phone_number_id}/templates/sync

Request

  • Base URL: https://api.kirimdev.com/v1
  • URL: https://api.kirimdev.com/v1/{phone_number_id}/templates/sync
  • Auth: HTTP bearer

Path parameters

phone_number_idstring required

Meta WhatsApp Business phone_number_id of the connected account that should send / own this resource. Discoverable via GET /v1/accounts (returned as phone_number_id on each row).

Example:106540352242922

Headers

Idempotency-Keystring

Optional retry key. Reusing the same key with the same method, path, and body within 24 hours returns the original response; reusing it for a different request returns 422.

Example:order-20260910-0001

Response

Sync summary

request_idstring required

Unique request identifier to include when contacting support.

Example response

{
  "data": {
    "synced": 12,
    "created": 2,
    "updated": 10
  },
  "request_id": "req_01HXYZABCDEFGHJKMNPQRSTVWX"
}

Changes

No recorded changes to this operation across all 1 revision of this API.