Private preview of the new site. Not live.

messages.previewTemplate

Show how one kind of automatic customer email reads, filled with sample customer details and the shop's name. Send subject and body to preview unsaved wording (checked the same way as saving); leave them out to preview the wording in use. Sends nothing.

WhoAgents can call this
RESTPOST /v1/messages/templates/preview
MCP toolmessages_previewTemplate
Writesno
AreaCustomer hub, requests and customer emails

When to use it

The shop can set its own wording for the automatic customer emails: invoice reminders, quote follow-ups and review requests. Read messages.templates for the wording in use and the placeholders each kind takes.

What to tell the owner

Tell them what you found in plain words. Don't read back raw fields.

Input

FieldTypeRequired
shop_idstring (uuid)yes
kindstring (one of invoice_reminder, quote_followup, review_request)yes
subjectstringno
bodystringno

Example

POST https://doingwork.work/v1/messages/templates/preview
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "kind": "invoice_reminder"
}

Output

FieldTypeAlways there
subjectstringyes
bodystringyes
from_namestringyes
notestringyes
{
  "subject": "...",
  "body": "...",
  "from_name": "...",
  "note": "..."
}

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.