> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeplo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# POST Sync Templates

> Sync local templates with WhatsApp.

## Sync templates

`POST /api/templates/sync`

Synchronize templates between the platform and WhatsApp Business API. Fetches the latest template statuses and creates new templates from WhatsApp.

### Headers

**Cookie** `string` *required*

Session cookie (login via POST /api/auth/login)

```bash cURL theme={null}
curl -X POST https://zeplo.ai/api/templates/sync \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```

```json Response theme={null}
{
  "success": true,
  "message": "Templates synced successfully",
  "data": {
    "synced": 15,
    "new": 2,
    "updated": 3,
    "deleted": 0
  }
}
```

***

## Get template metadata from Meta

`GET /api/whatsapp/templates/:templateId/meta`

Fetch detailed template information directly from the WhatsApp/Meta API.

### Path parameters

**templateId** `string` *required*

Meta template ID.

```bash cURL theme={null}
curl https://zeplo.ai/api/whatsapp/templates/1234567890/meta \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.