AAtlas CRM

Templates

Sync template status

Fetch the latest WhatsApp message template approval and category details from Meta and refresh matching Notifyy CRM templates.

Overview

Use this API to fetch the latest WhatsApp message template approval and category details from Meta and refresh matching Notifyy CRM templates. It requires public api oauth access token authentication and the templates:write scope.

POST/templates/sync-status

cURL

POST
bash
curl --request POST \  --url 'https://api.atlascrm.dev/v1/templates/sync-status' \  --header 'Authorization: Bearer nfy_public_api_access_token'

Authorization

Public API OAuth access token

templates:write

Sample Request Body

This endpoint does not require a request body.

Sample Response

json
{  "success": true,  "message": "Template sync completed",  "data": {    "total_fetched_from_meta": 12,    "matched": 10,    "updated": 2,    "unchanged": 8,    "not_found": 2,    "updated_templates": [      {        "template_name": "order_confirmation",        "language_code": "en_US",        "old_status": "PENDING",        "new_status": "APPROVED",        "old_category": "MARKETING",        "new_category": "UTILITY"      }    ]  }}

Status Codes

CodeDescription
200Template sync completed.
400Request included tenant or user identifiers, or WABA credentials are not configured.
401Public API access token is missing, invalid, expired, or revoked.
403Access token does not include the templates:write scope.

Headers

AuthorizationstringRequired

Public API OAuth bearer token. Tenant is derived from this token.

Example: Bearer nfy_public_api_access_token

Response fields

successboolean

Indicates whether the public API request succeeded.

messagestring

Human-readable summary of the sync result.

data.total_fetched_from_metainteger

Number of WhatsApp templates fetched from Meta.

data.matchedinteger

Number of Meta templates matched to local Notifyy templates by template name and language.

data.updatedinteger

Number of matched templates with status or category changes written locally.

data.unchangedinteger

Number of matched templates that did not require status or category updates.

data.not_foundinteger

Number of Meta templates that were not found locally.

data.updated_templatesUpdatedTemplate[]

Templates whose status or category changed during the sync.

data.updated_templates[].template_namestring

Template name returned by Meta.

data.updated_templates[].language_codestring

Template language code used for matching.

data.updated_templates[].old_statusstring

Previous local template status.

data.updated_templates[].new_statusstring

Latest template status returned by Meta.

data.updated_templates[].old_categorystring

Previous local template category.

data.updated_templates[].new_categorystring

Latest template category returned by Meta.