Email Signatures

Preview Template

Preview a signature template with resolved placeholders.

If content_html is not provided in the request, uses the current tenant template. The content is cleaned exactly as saving would store it, and placeholders resolve exactly as in a sent email: your real details, the real company logo, and empty fields stay empty. Per-field overrides replace single values; use_sample_values: true fills empty values with sample data.

Required Scopes: email_signatures:read

post/api/v1/email-signatures/template/preview

Request

  • Base URL: https://api.sendseven.com
  • URL: https://api.sendseven.com/api/v1/email-signatures/template/preview
  • Auth: HTTP bearer

Request body

content_htmlstring nullable

Custom HTML to preview (if not provided, uses tenant template)

agent_namestring nullable

Override agent name

agent_emailstring nullable

Override agent email

agent_phonestring nullable

Override agent phone

agent_titlestring nullable

Override agent title

company_namestring nullable

Override company name

company_logostring nullable

Override company logo URL

company_websitestring nullable

Override company website

use_sample_valuesboolean

Fill placeholders whose real value is empty with sample values (e.g. 'Support Agent'). Default false: the preview resolves exactly like a sent email (your real details, real company logo, empty fields stay empty).

Example request

{
  "agent_name": "John Smith",
  "agent_title": "Support Agent",
  "company_name": "Acme Corp"
}

Response

Successful Response

resolved_htmlstring required

HTML with placeholders resolved

resolved_textstring nullable

Plain text with placeholders resolved

placeholders_usedstring[] required

List of placeholders found in the template

Example response

{
  "placeholders_used": [
    "{agent_name}",
    "{agent_title}",
    "{company_name}"
  ],
  "resolved_html": "<div><p><strong>John Smith</strong></p><p>Support Agent</p></div>",
  "resolved_text": "John Smith\nSupport Agent"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.