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

# Publish Template

> Publish a draft version of a template to make it the active production version.

Promote an in-progress draft template into the published, active template used for sending.

### Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the template to publish.
</ParamField>

### Response

<ResponseField name="data" type="object">
  <ResponseField name="id" type="string">The template ID.</ResponseField>
  <ResponseField name="status" type="string">Published status (`published`).</ResponseField>
  <ResponseField name="publishedAt" type="string">Timestamp when the template was published.</ResponseField>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.mailofly.com/api/v1/templates/tmpl_123/publish \
    -H "Authorization: Bearer mf_live_your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "id": "tmpl_123",
      "status": "published",
      "publishedAt": "2026-09-11T13:45:00Z"
    }
  }
  ```
</ResponseExample>


## Related topics

- [Version History](/templates/version-history.md)
- [Set up your logo on Apple Mail](/guides/tutorials/apple-mail-logo.md)
- [Create Template](/templates/create-template.md)
- [Delete Template](/api/templates/delete-template.md)
