Understand the Template object, merge token syntax, and the full set of endpoints for creating and managing reusable message templates.
Templates are pre-defined messages with text and optional media. They support merge tokens that auto-populate contact fields when sending, so you can personalize messages at scale without writing custom copy for every recipient.
The Template object
integer
Unique identifier for the template.
string
Display name of the template.
string
Client-provided unique identifier. Use this to map templates to records in your own system.
object
A GalleryContent object containing the message text and optional images. See the Content object section below.
integer
Identifier of the team that owns this template.
integer
Identifier of the user who created the template.
boolean
Whether the template is shared with all members of the team.
string
ISO 8601 timestamp when the template was created.
string
ISO 8601 timestamp when the template was last updated.
integer
Revision number. Increments on each update.
boolean
Whether the template has been archived.
The GalleryContent object
string
The message body. May contain merge tokens such as {{first_name}}.
object[]
Array of GalleryEntry objects representing images attached to the message.
Show GalleryEntry properties
string
URL of the image as stored by Heymarket.
string
Original source URL of the image before upload.
string
Optional caption or annotation text displayed with the image.
string
Position of the annotation relative to the image.
Merge tokens
Merge tokens let you personalize template text using contact field values. When a message is sent, Heymarket replaces each token with the corresponding value from the recipient’s contact record.
Token
Replaced with
{{first_name}}
Contact’s first name
{{last_name}}
Contact’s last name
{{custom_field_name}}
Value of a custom contact field
Endpoints
Method
Endpoint
Description
POST
/v1/template
Create a template
GET
/v1/template/{id}
Get a template by ID
PUT
/v1/template/{id}
Update a template
DELETE
/v1/template/{id}
Delete a template
POST
/v1/templates
List templates
Was this page helpful?
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Heymarket API Documentation","colors":{"primary":"#FACC15","light":"#FEF08A","dark":"#0F0F0F"},"logo":"https://mintcdn.com/heymarket/GJKeY5d8-xGJrsi0/images/logo-hey-black.svg?fit=max\u0026auto=format\u0026n=GJKeY5d8-xGJrsi0\u0026q=85\u0026s=f94b7dce9d8015a0cc51ec555b7e3019","favicon":"https://mintcdn.com/heymarket/GJKeY5d8-xGJrsi0/images/logo-hey-black.svg?fit=max\u0026auto=format\u0026n=GJKeY5d8-xGJrsi0\u0026q=85\u0026s=f94b7dce9d8015a0cc51ec555b7e3019","navbar":{"links":[{"href":"/api-reference/openapi/heymarket-openapi-3.1.2.yaml","label":"OpenAPI spec"},{"href":"https://www.heymarket.com/","label":"Website"},{"href":"https://www.heymarket.com/demo/","label":"Book a demo"}],"primary":{"type":"button","label":"Sign in","href":"https://app.heymarket.com"}},"footer":{"socials":{"website":"https://www.heymarket.com/"},"links":[{"header":"Heymarket","items":[{"label":"Website","href":"https://www.heymarket.com/"},{"label":"Sign in","href":"https://app.heymarket.com"},{"label":"Book a demo","href":"https://www.heymarket.com/demo"},{"label":"Contact sales","href":"https://www.heymarket.com/contact-sales"}]}]},"contextual":{"options":["download-spec","copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"heymarket","hasAudioNarration":false,"actualSubdomain":"heymarket","customDomains":["developers.heymarket.com"],"gitSource":{"type":"github","owner":"commonsun","repo":"docs","deployBranch":"master","isPrivate":true,"contentDirectory":"","mountPath":"","label":"","_id":"6b10e2e09ffae5051c4121be"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b130f5e78ecd0144d228568","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API Reference","count":83},{"language":"default","tag":"Contacts","count":26},{"language":"default","tag":"Other Resources","count":17},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Lists","count":10},{"language":"default","tag":"Conversations","count":9},{"language":"default","tag":"Links","count":8},{"language":"default","tag":"Templates","count":7},{"language":"default","tag":"Messages","count":6},{"language":"default","tag":"Core Concepts","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/templates/overview","slug":"/api-reference/templates/overview","pageMetadata":{"title":"Templates API overview and objects","sidebarTitle":"Overview","description":"Understand the Template object, merge token syntax, and the full set of endpoints for creating and managing reusable message templates.","href":"/api-reference/templates/overview"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Understand the Template object, merge token syntax, and the full set of endpoints for creating and managing reusable message templates.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,ResponseField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Templates are pre-defined messages with text and optional media. They support merge tokens that auto-populate contact fields when sending, so you can personalize messages at scale without writing custom copy for every recipient.`}),`\n`,_jsx(Heading,{level:`2`,id:`the-template-object`,children:`The Template object`}),`\n`,_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the template.`})}),`\n`,_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Display name of the template.`})}),`\n`,_jsx(ResponseField,{name:`local_id`,type:`string`,id:`param-local-id`,children:_jsx(_components.p,{children:`Client-provided unique identifier. Use this to map templates to records in your own system.`})}),`\n`,_jsx(ResponseField,{name:`content`,type:`object`,id:`param-content`,children:_jsxs(_components.p,{children:[`A GalleryContent object containing the message text and optional images. See the `,_jsx(_components.a,{href:`#the-gallerycontent-object`,children:`Content object`}),` section below.`]})}),`\n`,_jsx(ResponseField,{name:`team_id`,type:`integer`,id:`param-team-id`,children:_jsx(_components.p,{children:`Identifier of the team that owns this template.`})}),`\n`,_jsx(ResponseField,{name:`creator_id`,type:`integer`,id:`param-creator-id`,children:_jsx(_components.p,{children:`Identifier of the user who created the template.`})}),`\n`,_jsx(ResponseField,{name:`shared`,type:`boolean`,id:`param-shared`,children:_jsx(_components.p,{children:`Whether the template is shared with all members of the team.`})}),`\n`,_jsx(ResponseField,{name:`created`,type:`string`,id:`param-created`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the template was created.`})}),`\n`,_jsx(ResponseField,{name:`updated`,type:`string`,id:`param-updated`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the template was last updated.`})}),`\n`,_jsx(ResponseField,{name:`rev`,type:`integer`,id:`param-rev`,children:_jsx(_components.p,{children:`Revision number. Increments on each update.`})}),`\n`,_jsx(ResponseField,{name:`archived`,type:`boolean`,id:`param-archived`,children:_jsx(_components.p,{children:`Whether the template has been archived.`})}),`\n`,_jsx(Heading,{level:`2`,id:`the-gallerycontent-object`,children:`The GalleryContent object`}),`\n`,_jsx(ResponseField,{name:`text`,type:`string`,id:`param-text`,children:_jsxs(_components.p,{children:[`The message body. May contain merge tokens such as `,_jsx(_components.code,{children:`{{first_name}}`}),`.`]})}),`\n`,_jsxs(ResponseField,{name:`gallery`,type:`object[]`,id:`param-gallery`,children:[_jsx(_components.p,{children:`Array of GalleryEntry objects representing images attached to the message.`}),_jsxs(Expandable,{title:`GalleryEntry properties`,children:[_jsx(ResponseField,{name:`url`,type:`string`,id:`param-url`,children:_jsx(_components.p,{children:`URL of the image as stored by Heymarket.`})}),_jsx(ResponseField,{name:`original_url`,type:`string`,id:`param-original-url`,children:_jsx(_components.p,{children:`Original source URL of the image before upload.`})}),_jsx(ResponseField,{name:`annotation_text`,type:`string`,id:`param-annotation-text`,children:_jsx(_components.p,{children:`Optional caption or annotation text displayed with the image.`})}),_jsx(ResponseField,{name:`annotation_position`,type:`string`,id:`param-annotation-position`,children:_jsx(_components.p,{children:`Position of the annotation relative to the image.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`merge-tokens`,children:`Merge tokens`}),`\n`,_jsx(_components.p,{children:`Merge tokens let you personalize template text using contact field values. When a message is sent, Heymarket replaces each token with the corresponding value from the recipient’s contact record.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Token`}),_jsx(_components.th,{children:`Replaced with`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{{first_name}}`})}),_jsx(_components.td,{children:`Contact’s first name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{{last_name}}`})}),_jsx(_components.td,{children:`Contact’s last name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{{custom_field_name}}`})}),_jsx(_components.td,{children:`Value of a custom contact field`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`endpoints`,children:`Endpoints`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/v1/template`})}),_jsx(_components.td,{children:`Create a template`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/v1/template/{id}`})}),_jsx(_components.td,{children:`Get a template by ID`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PUT`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/v1/template/{id}`})}),_jsx(_components.td,{children:`Update a template`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/v1/template/{id}`})}),_jsx(_components.td,{children:`Delete a template`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/v1/templates`})}),_jsx(_components.td,{children:`List templates`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Templates API overview and objects","sidebarTitle":"Overview","description":"Understand the Template object, merge token syntax, and the full set of endpoints for creating and managing reusable message templates.","href":"/api-reference/templates/overview"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The Template object","slug":"the-template-object","depth":2,"children":[]},{"title":"The GalleryContent object","slug":"the-gallerycontent-object","depth":2,"children":[]},{"title":"Merge tokens","slug":"merge-tokens","depth":2,"children":[]},{"title":"Endpoints","slug":"endpoints","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"heymarket","siteName":"Heymarket API Documentation","title":"Templates API overview and objects - Heymarket API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T17:16:13.003Z","originalFileLocation":"api-reference/templates/overview.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Understand the Template object, merge token syntax, and the full set of endpoints for creating and managing reusable message templates.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Heymarket API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Templates API overview and objects - Heymarket API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand the Template object, merge token syntax, and the full set of endpoints for creating and managing reusable message templates.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Heymarket API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.heymarket.com/api-reference/templates/overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://heymarket.mintlify.site/_mintlify/api/og/v2?division=Templates\u0026amp;title=Templates+API+overview+and+objects\u0026amp;description=Understand+the+Template+object%2C+merge+token+syntax%2C+and+the+full+set+of+endpoints+for+creating+and+managing+reusable+message+templates.\u0026amp;theme=d55bf0f558d4b9dd1f2d1b26\u0026amp;signature=a9317dbd627a7477bf2c6e1620475d7169e8af855cb03b503f1f42a7ed065865\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Templates API overview and objects - Heymarket API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand the Template object, merge token syntax, and the full set of endpoints for creating and managing reusable message templates.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://heymarket.mintlify.site/_mintlify/api/og/v2?division=Templates\u0026amp;title=Templates+API+overview+and+objects\u0026amp;description=Understand+the+Template+object%2C+merge+token+syntax%2C+and+the+full+set+of+endpoints+for+creating+and+managing+reusable+message+templates.\u0026amp;theme=d55bf0f558d4b9dd1f2d1b26\u0026amp;signature=a9317dbd627a7477bf2c6e1620475d7169e8af855cb03b503f1f42a7ed065865\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Heymarket API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FACC15\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.heymarket.com/api-reference/templates/overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/templates/overview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.heymarket.com/#organization\",\"name\":\"Heymarket API Documentation\",\"url\":\"https://developers.heymarket.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/heymarket/GJKeY5d8-xGJrsi0/images/logo-hey-black.svg?fit=max\u0026auto=format\u0026n=GJKeY5d8-xGJrsi0\u0026q=85\u0026s=f94b7dce9d8015a0cc51ec555b7e3019\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.heymarket.com#website\",\"name\":\"Heymarket API Documentation\",\"url\":\"https://developers.heymarket.com\",\"publisher\":{\"@id\":\"https://developers.heymarket.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.heymarket.com/api-reference/templates/overview#webpage\",\"url\":\"https://developers.heymarket.com/api-reference/templates/overview\",\"name\":\"Templates API overview and objects\",\"description\":\"Understand the Template object, merge token syntax, and the full set of endpoints for creating and managing reusable message templates.\",\"dateModified\":\"2026-11-16T17:16:13.003Z\",\"isPartOf\":{\"@id\":\"https://developers.heymarket.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.heymarket.com/api-reference/templates/overview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.heymarket.com/api-reference/templates/overview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heymarket API Documentation\",\"item\":\"https://developers.heymarket.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Templates API overview and objects\",\"item\":\"https://developers.heymarket.com/api-reference/templates/overview\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developers.heymarket.com/api-reference/templates/overview#article\",\"headline\":\"Templates API overview and objects\",\"name\":\"Templates API overview and objects\",\"description\":\"Understand the Template object, merge token syntax, and the full set of endpoints for creating and managing reusable message templates.\",\"url\":\"https://developers.heymarket.com/api-reference/templates/overview\",\"mainEntityOfPage\":{\"@id\":\"https://developers.heymarket.com/api-reference/templates/overview#webpage\"},\"dateModified\":\"2026-11-16T17:16:13.003Z\",\"publisher\":{\"@id\":\"https://developers.heymarket.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.heymarket.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Heymarket API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Heymarket API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/templates/overview.md","siteName":"Heymarket API Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Contacts","pages":[{"title":"Contacts API overview","sidebarTitle":"Overview","href":"/api-reference/contacts/overview"},{"title":"Create contact","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact","href":"/api-reference/contacts/create"},{"title":"Create contact (v2)","sidebarTitle":"Create v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contact","href":"/api-reference/contacts/create-v2"},{"title":"Get contact","sidebarTitle":"Get","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/contact/{id}","href":"/api-reference/contacts/get"},{"title":"Get contact by phone or ID","sidebarTitle":"Get by Phone","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact/get","href":"/api-reference/contacts/get-by-phone-or-id"},{"title":"Get contact (v2)","sidebarTitle":"Get v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v2/contact/{contactID}","href":"/api-reference/contacts/get-v2"},{"title":"List contacts","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contacts","href":"/api-reference/contacts/list"},{"title":"List contacts (v2)","sidebarTitle":"List v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contacts/list","href":"/api-reference/contacts/list-v2"},{"title":"Count contacts","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contacts/count","href":"/api-reference/contacts/count"},{"title":"List contact fields","sidebarTitle":"Contact Fields","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact-fields","href":"/api-reference/contacts/contact-fields"},{"title":"Create contact fields","sidebarTitle":"Create Contact Fields","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contacts/fields","href":"/api-reference/contacts/create-contact-fields"},{"title":"Update contact","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/contact/{id}","href":"/api-reference/contacts/update"},{"title":"Update contact (v2)","sidebarTitle":"Update v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v2/contact/{contactID}","href":"/api-reference/contacts/update-v2"},{"title":"Delete contact","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/contact/{id}","href":"/api-reference/contacts/delete"},{"title":"Delete contact (v2)","sidebarTitle":"Delete v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/contact/{contactID}","href":"/api-reference/contacts/delete-v2"},{"title":"Batch create contacts","sidebarTitle":"Batch Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/batch/contacts","href":"/api-reference/contacts/bulk"},{"title":"Bulk create contacts (v2)","sidebarTitle":"Bulk Create v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contacts","href":"/api-reference/contacts/bulk-v2"},{"title":"Bulk delete contacts (v2)","sidebarTitle":"Bulk Delete v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/contacts","href":"/api-reference/contacts/bulk-delete-v2"},{"title":"Search contacts","sidebarTitle":"Search","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contacts/search","href":"/api-reference/contacts/search"},{"title":"Create contact channel","sidebarTitle":"Create Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contact/{contactID}/channel","href":"/api-reference/contacts/channels"},{"title":"Update contact channel","sidebarTitle":"Update Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v2/contact/{contactID}/channel","href":"/api-reference/contacts/channels-update"},{"title":"Get contact channel","sidebarTitle":"Get Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v2/contact/{contactID}/channel/{channelType}","href":"/api-reference/contacts/channels-get"},{"title":"List contact channels","sidebarTitle":"List Channels","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v2/contact/{contactID}/channels","href":"/api-reference/contacts/channels-list"},{"title":"Delete contact channel","sidebarTitle":"Delete Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/contact/{contactID}/channel/{channelType}","href":"/api-reference/contacts/channels-delete"},{"title":"Get contact status","sidebarTitle":"Get Status","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact/status","href":"/api-reference/contacts/status"},{"title":"Set contact status","sidebarTitle":"Set Status","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact/set_status","href":"/api-reference/contacts/set-status"}]},{"group":"Messages","pages":[{"title":"Send SMS and MMS messages","sidebarTitle":"Send Message","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/message/send","href":"/api-reference/messages/send"},{"title":"Send email messages","sidebarTitle":"Send Email","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/email/send","href":"/api-reference/messages/send-email"},{"title":"Get message history from a conversation","sidebarTitle":"Get History","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/messages","href":"/api-reference/messages/get-history"},{"title":"Hide or unhide a message","sidebarTitle":"Hide or Unhide","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/message/hide_toggle/{id}","href":"/api-reference/messages/toggle-hidden"},{"title":"List all messages","sidebarTitle":"List All","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/messages/all","href":"/api-reference/messages/list-all"},{"title":"Count messages","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/messages/all/count","href":"/api-reference/messages/count"}]},{"group":"Links","pages":[{"title":"Links API overview and object","sidebarTitle":"Overview","href":"/api-reference/links/overview"},{"title":"Create link","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/link","href":"/api-reference/links/create"},{"title":"Bulk create links","sidebarTitle":"Bulk Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/batch/links","href":"/api-reference/links/bulk-create"},{"title":"Get link","sidebarTitle":"Get by ID","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/link/{id}","href":"/api-reference/links/get"},{"title":"Get link by short code","sidebarTitle":"Get by Short Code","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/link/code/{code}","href":"/api-reference/links/get-by-short-code"},{"title":"Update link URL","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/link/{id}","href":"/api-reference/links/update"},{"title":"Delete link","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/link/{id}","href":"/api-reference/links/delete"},{"title":"List links","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/links","href":"/api-reference/links/list"}]},{"group":"Conversations","pages":[{"title":"List conversations","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations","href":"/api-reference/conversations/list"},{"title":"Count conversations","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/count","href":"/api-reference/conversations/count"},{"title":"Get conversation","sidebarTitle":"Get","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/conversations/{id}","href":"/api-reference/conversations/get"},{"title":"Open conversation","sidebarTitle":"Open","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/open","href":"/api-reference/conversations/open-close"},{"title":"Close conversation","sidebarTitle":"Close","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/close","href":"/api-reference/conversations/close"},{"title":"Mark conversation as read","sidebarTitle":"Mark Read","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/read","href":"/api-reference/conversations/mark-read"},{"title":"Mark conversation as unread","sidebarTitle":"Mark Unread","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/unread","href":"/api-reference/conversations/mark-unread"},{"title":"Reassign conversation","sidebarTitle":"Reassign","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/reassign","href":"/api-reference/conversations/reassign"},{"title":"Transfer conversation","sidebarTitle":"Transfer","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/transfer","href":"/api-reference/conversations/transfer"}]},{"group":"Lists","pages":[{"title":"Lists API overview","sidebarTitle":"Overview","href":"/api-reference/lists/overview"},{"title":"Paginate lists","sidebarTitle":"Paginate","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists/paginate","href":"/api-reference/lists/paginate-v2"},{"title":"Count lists","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists/count","href":"/api-reference/lists/count-v2"},{"title":"Search lists","sidebarTitle":"Search","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists/search","href":"/api-reference/lists/search-v2"},{"title":"Create list","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists","href":"/api-reference/lists/create"},{"title":"Update list","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v2/lists/{id}","href":"/api-reference/lists/update"},{"title":"Delete list","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/lists/{id}","href":"/api-reference/lists/delete"},{"title":"Paginate lists (v1)","sidebarTitle":"Paginate (v1)","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/lists","href":"/api-reference/lists/list"},{"title":"Count lists (v1)","sidebarTitle":"Count (v1)","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/lists/count","href":"/api-reference/lists/count"},{"title":"Search lists (v1)","sidebarTitle":"Search (v1)","description":"Search lists by name with the deprecated v1 endpoint.","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/search/lists","href":"/api-reference/lists/search"}]},{"group":"Templates","pages":[{"title":"Templates API overview and objects","sidebarTitle":"Overview","href":"/api-reference/templates/overview"},{"title":"Template operations","sidebarTitle":"Operations","description":"Use the split template operation pages for generated request and response details.","href":"/api-reference/templates/manage"},{"title":"List templates","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/templates","href":"/api-reference/templates/list"},{"title":"Create template","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/template","href":"/api-reference/templates/create"},{"title":"Get template","sidebarTitle":"Get","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/template/{id}","href":"/api-reference/templates/get"},{"title":"Update template","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/template/{id}","href":"/api-reference/templates/update"},{"title":"Delete template","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/template/{id}","href":"/api-reference/templates/delete"}]},{"group":"Other Resources","pages":[{"title":"Create scheduled message","sidebarTitle":"Create Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/schedule","href":"/api-reference/schedule"},{"title":"Get scheduled message","sidebarTitle":"Get Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/schedule/{id}","href":"/api-reference/schedule-get"},{"title":"Update scheduled message","sidebarTitle":"Update Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/schedule/{id}","href":"/api-reference/schedule-update"},{"title":"Delete scheduled message","sidebarTitle":"Delete Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/schedule/{id}","href":"/api-reference/schedule-delete"},{"title":"Get inboxes","sidebarTitle":"Inboxes","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/inboxes","href":"/api-reference/inboxes"},{"title":"Update inbox members","sidebarTitle":"Update Inbox Members","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/inbox/update_members","href":"/api-reference/inboxes-update-members"},{"title":"Get team","sidebarTitle":"Team","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/team","href":"/api-reference/team"},{"title":"Get users","sidebarTitle":"Users","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/users/get","href":"/api-reference/users"},{"title":"Update users","sidebarTitle":"Update Users","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/users/update","href":"/api-reference/users-update"},{"title":"List user groups","sidebarTitle":"User Groups","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/user-groups","href":"/api-reference/user-groups"},{"title":"List tags","sidebarTitle":"Tags","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/tags","href":"/api-reference/tags"},{"title":"Create tag","sidebarTitle":"Create Tag","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/tag","href":"/api-reference/tags-create"},{"title":"Get tag","sidebarTitle":"Get Tag","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/tag/{id}","href":"/api-reference/tags-get"},{"title":"Delete tag","sidebarTitle":"Delete Tag","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/tag/{id}","href":"/api-reference/tags-delete"},{"title":"List surveys","sidebarTitle":"Surveys","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/surveys","href":"/api-reference/surveys"},{"title":"Get survey","sidebarTitle":"Get Survey","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/survey/{id}","href":"/api-reference/surveys-get"},{"title":"Receive webhook event","sidebarTitle":"Webhook Event","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml webhook heymarketEvent","href":"/api-reference/webhooks"}]}]}]},"basePath":"","title":"Templates API overview and objects - Heymarket API Documentation","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":[],"chunks":[]}