Message templates
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/message-templates.md. Index of every page and the rules for every call: /llms.txt. Guides and concepts in one file: /llms-full.txt. OpenAPI: /openapi.json.
Reusable email and text messages for sales orders, quotes and purchase orders, with placeholders and attachments.
11 operations
- POSTCreate a message template
/Saves a new email or text message template for sales orders, quotes or purchase orders.v2/ api/ store/ {team_slug}/ setting/ message_template - GETList message templates
/Returns all of the team's message templates: the system ones (the emails YoPrint sends for new sales orders, quotes and purchase orders) and the ones your team saved, with their raw subject and body, placeholders and attachments.v2/ api/ store/ {team_slug}/ setting/ message_template - GETList message template types
/Returns every kind of message template YoPrint supports, with its default name, subject and body, its placeholders and the attachments it can carry.v2/ api/ store/ {team_slug}/ setting/ message_template/ config - GETGet a message template
/Returns one message template with its raw subject and body (placeholders not filled in), its placeholders and its attachments.v2/ api/ store/ {team_slug}/ setting/ message_template/ {hash_id} - GETGet a message template type
/Returns one template type, by itsv2/ api/ store/ {team_slug}/ setting/ message_template/ config/ {type} typevalue (for examplesales_order_message): its default name, subject and body, placeholders and supported attachments. - POSTPreview template text
/Renders template text you are writing, before you save it: send thev2/ api/ store/ {team_slug}/ setting/ message_template/ preview type,bodyand optionalsubject. - PUTUpdate a message template
/Changes a template's name, subject, body or button settings.v2/ api/ store/ {team_slug}/ setting/ message_template/ {hash_id} - PATCHTouch a message template
/Use PUT to change a message template.v2/ api/ store/ {team_slug}/ setting/ message_template/ {hash_id} - POSTFill in a template for a record
/Fills a saved template's placeholders from one record and returns the finishedv2/ api/ store/ {team_slug}/ setting/ message_template/ compile subjectandbody, with the template's attachments. - POSTSend a template for a recordSpends money
/Fills a saved template from one record and sends it now.v2/ api/ store/ {team_slug}/ setting/ message_template/ send - DELETEDelete a message template
/Deletes one of your saved templates for good.v2/ api/ store/ {team_slug}/ setting/ message_template/ {hash_id}
