---
updatedAt: 2026-04-28T13:19:55.000Z
agentTools:
  projectIndex: https://dev.frontapp.com/llms.txt
---

# Sync application message template

Import an application message template from an external service (such as WhatsApp or Facebook). The message template becomes available for use by the channel specified if configured as described in [this topic](https://dev.frontapp.com/update/docs/application-channel-message-templates).

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-api-id": "front",
  "x-explorer-enabled": false,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "info": {
    "version": "1.0.0",
    "title": "Channel API",
    "contact": {
      "name": "Front Platform",
      "url": "https://community.front.com"
    }
  },
  "security": [
    {
      "http": []
    }
  ],
  "servers": [
    {
      "url": "https://api2.frontapp.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "http": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "applicationMessageTemplate": {
        "description": "An application message template",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApplicationMessageTemplateResponse"
            }
          }
        }
      }
    },
    "schemas": {
      "ApplicationMessageTemplate": {
        "required": [
          "external_id",
          "name",
          "blurb",
          "is_disabled",
          "status_name",
          "variable_mappings",
          "template_preview"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/ApplicationMessageTemplateEditBlob"
          },
          {
            "type": "object",
            "properties": {
              "external_id": {
                "type": "string"
              }
            }
          }
        ]
      },
      "ApplicationMessageTemplateEditBlob": {
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the message template."
          },
          "blurb": {
            "type": "string",
            "description": "A limited preview of the message template content."
          },
          "is_disabled": {
            "type": "boolean",
            "description": "Whether the message template is enabled for use in the external service."
          },
          "status_name": {
            "type": "string",
            "description": "Either \"PENDING\", \"APPROVED\", or \"REJECTED\". This value helps admins understand why a template may be enabled or disabled in the external service."
          },
          "variable_mappings": {
            "type": "array",
            "description": "List of variable mappings",
            "items": {
              "type": "object",
              "required": [
                "uid",
                "type",
                "name"
              ],
              "properties": {
                "uid": {
                  "type": "string",
                  "description": "Value of the variable"
                },
                "name": {
                  "type": "string",
                  "description": "Name of the variable"
                },
                "type": {
                  "type": "string",
                  "description": "Type of the variable"
                }
              }
            }
          },
          "template_preview": {
            "type": "string",
            "description": "Preview of the template"
          }
        }
      },
      "ApplicationMessageTemplateResponse": {
        "description": "Response for an application message template.",
        "type": "object",
        "properties": {
          "template_id": {
            "type": "number",
            "description": "ID of the application message template",
            "example": "msg_777"
          }
        }
      }
    }
  },
  "paths": {
    "/channels/{channel_id}/application_message_templates": {
      "put": {
        "summary": "Sync application message template",
        "operationId": "sync-application-message-template",
        "description": "Import an application message template from an external service (such as WhatsApp or Facebook). The message template becomes available for use by the channel specified if configured as described in [this topic](https://dev.frontapp.com/update/docs/application-channel-message-templates).",
        "tags": [
          "Application Message Templates"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channel_id",
            "required": true,
            "description": "The channel ID. Alternatively, you can supply the channel address as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1).",
            "schema": {
              "type": "string",
              "default": "cha_123"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationMessageTemplate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/applicationMessageTemplate"
          },
          "400": {
            "description": "Channel is not an application channel or does not support application message templates."
          }
        },
        "x-required-scopes": [
          "message_templates:write"
        ]
      }
    }
  }
}
```