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

# Sync Template Localizations

> Queue AI translation for selected or all enabled template locales

Queue AI translation for selected enabled locales. Send an empty object to sync
every enabled non-primary locale. This explicit operation works even when the
company's automatic on-save localization mode is disabled.

## Request

<ParamField path="templateId" type="string" required>
  Template ID, transactional email ID, or transactional slug.
</ParamField>

<ParamField body="locales" type="array">
  Enabled non-primary locale codes to sync. Omit to sync every enabled
  non-primary locale.
</ParamField>

```bash theme={null}
curl -X POST "https://api.sequenzy.com/api/v1/templates/email_abc123/localizations/sync" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locales":["es","fr"]}'
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "templateId": "email_abc123",
    "queuedLocales": ["es", "fr"],
    "queuedVariantCount": 2
  }
  ```

  ```json 400 theme={null}
  {
    "error": "No supported non-primary locales are configured for this company."
  }
  ```

  ```json 404 theme={null}
  {
    "error": "Template not found"
  }
  ```
</ResponseExample>
