---
updatedAt: 2026-05-28T15:48:11.000Z
agentTools:
  projectIndex: https://dev.frontapp.com/llms.txt
---

# Create team message template

Create a new message template for the given team (workspace).

Required scope: `message_templates:write`

# 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": "Core API",
    "contact": {
      "name": "Front Platform",
      "url": "https://community.front.com"
    }
  },
  "security": [
    {
      "http": []
    }
  ],
  "servers": [
    {
      "url": "https://api2.frontapp.com"
    }
  ],
  "components": {
    "schemas": {
      "Attachment": {
        "type": "object",
        "required": [
          "id",
          "url",
          "filename",
          "content_type",
          "size",
          "metadata"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the attachment.",
            "example": "fil_3q8a7mby"
          },
          "filename": {
            "type": "string",
            "description": "Name of the attached file",
            "example": "Andy_Anger_Management_Certificate.png"
          },
          "url": {
            "type": "string",
            "description": "URL to download the attached file",
            "example": "https://yourCompany.api.frontapp.com/download/fil_3q8a7mby"
          },
          "content_type": {
            "type": "string",
            "description": "Content type of the attached file in [MIME format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types). Note that some attachments types may not be supported.",
            "example": "image/png"
          },
          "size": {
            "type": "integer",
            "description": "Size (in byte) of the attached file",
            "example": 4405
          },
          "metadata": {
            "description": "Attachment metadata",
            "type": "object",
            "properties": {
              "is_inline": {
                "type": "boolean",
                "description": "Whether or not the attachment is part of the message body",
                "example": true
              },
              "cid": {
                "type": "string",
                "description": "Unique identifier used to link an attachment to where it is used in the message body",
                "example": "526b45586d0e6b1c484afab63d1ef0be"
              }
            }
          }
        }
      },
      "CreateSharedMessageTemplate": {
        "type": "object",
        "description": "A message template that is used for pre-written responses",
        "required": [
          "name",
          "body"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the message template",
            "example": "Out of Office"
          },
          "subject": {
            "type": "string",
            "description": "Subject of the message template.",
            "example": "Out of Office"
          },
          "body": {
            "type": "string",
            "description": "Body of the message template. You can supply HTML with inline CSS to structure and style your template.",
            "example": "<p>Sorry, I'm OOO until <span style=\"color: green;\">October 25th</span>.</p>\n"
          },
          "folder_id": {
            "type": "string",
            "description": "ID of the message template folder to place this message template in",
            "example": null
          },
          "inbox_ids": {
            "type": "array",
            "description": "The specific inboxes this template is available in. If unspecified or null, then it will be available in all inboxes. Array should be non-empty.",
            "items": {
              "type": "string"
            },
            "example": null
          },
          "attachments": {
            "description": "Binary data of attached files. Must use `Content-Type: multipart/form-data` if specified. See [example](https://dev.frontapp.com/docs/attachments-1).  Max 25 MB.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "binary"
            }
          }
        }
      },
      "MessageTemplateResponse": {
        "type": "object",
        "required": [
          "_links",
          "id",
          "name",
          "subject",
          "body",
          "attachments",
          "is_available_for_all_inboxes",
          "inbox_ids"
        ],
        "properties": {
          "_links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "string",
                "description": "Link to resource",
                "example": "https://yourCompany.api.frontapp.com/responses/rsp_16yc"
              },
              "related": {
                "type": "object",
                "properties": {
                  "owner": {
                    "type": "string",
                    "nullable": true,
                    "description": "Link to resource's owner",
                    "example": "https://yourCompany.api.frontapp.com/teams/tim_s47"
                  },
                  "parent_folder": {
                    "nullable": true,
                    "type": "string",
                    "description": "Link to the parent folder that contains the message template",
                    "example": "https://yourCompany.api.frontapp.com/message_template_folders/rsf_g2"
                  }
                }
              }
            }
          },
          "id": {
            "type": "string",
            "description": "Unique identifier of the message template",
            "example": "rsp_16yc"
          },
          "name": {
            "type": "string",
            "description": "Name of the message template",
            "example": "Pam wedding planning complaint"
          },
          "subject": {
            "type": "string",
            "nullable": true,
            "description": "Subject of the message template",
            "example": "Work time being used for wedding planning"
          },
          "body": {
            "type": "string",
            "description": "Body of the message template",
            "example": "<div><p>Pam is spending time planning her <span style=\"color:red;\">wedding</span> at the office. This message <b>WAS NOT</b> sent by Angela.</p></div>\n"
          },
          "attachments": {
            "type": "array",
            "description": "List of files attached to the response",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            }
          },
          "is_available_for_all_inboxes": {
            "type": "boolean",
            "description": "Whether or not the template is available in all inboxes.",
            "example": true
          },
          "inbox_ids": {
            "type": "array",
            "nullable": true,
            "description": "List of inboxes the template is available in. Null if there are no restrictions.",
            "items": {
              "type": "string",
              "example": null
            }
          }
        }
      }
    },
    "securitySchemes": {
      "http": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "cannedAnswer": {
        "description": "A message template",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/MessageTemplateResponse"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/teams/{team_id}/message_templates": {
      "post": {
        "summary": "Create team message template",
        "operationId": "create-team-message-template",
        "description": "Create a new message template for the given team (workspace).\n\nRequired scope: `message_templates:write`",
        "tags": [
          "Message Templates"
        ],
        "requestBody": {
          "required": true,
          "description": "Message template to create",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSharedMessageTemplate"
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "required": true,
            "description": "The team ID",
            "schema": {
              "type": "string",
              "default": "tim_55c8c149"
            }
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/cannedAnswer"
          }
        },
        "x-required-scopes": [
          "message_templates:write"
        ]
      }
    }
  }
}
```