Sync templates
Pull the number's templates and their review statuses from WhatsApp into your list. Run it after you create or edit a template in Meta. It runs at most once a minute per number: a second call inside that minute answers 429.
Set up WhatsApp first. Connect a WhatsApp number in the dashboard or with Connect numbers. Included on every paid plan. See plans.
number_idrequiredcurl -X POST 'https://backend.omnidim.io/api/v1/whatsapp/numbers/{number_id}/templates/sync' \ -H 'Authorization: Bearer YOUR_API_KEY'
{ "count": 0, "kept": [ "string" ], "synced_at": "string" }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
number_id*integerId of a WhatsApp number in your workspace, from
listWhatsappNumbers.
A number in another workspace answers 404.
Response body
application/jsonThe templates were synced.
application/jsoncount?integerHow many templates the provider listed.
kept?array<string>Templates the provider no longer lists but that a campaign still uses, so they were not deleted.
synced_at?stringList templates
The number's message templates, as last synced, oldest first. Pass status=approved to see exactly the templates a send accepts. Sync the list with syncWhatsappTemplates first if a template you expect is missing.
Get calling settings
Whether calling is on for this number and whether it can be turned on, with the list of checks. A failing check does not fail the request: the response stays 200 and names the check that blocks. Meta Cloud numbers only. Calling must be included in your plan.
