Sign in

Preview Template Content

documented

Preview the rendered content for a template.

POST /api/v1/utils/content-previewerSendingno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.sparkpost.com/api/v1/utils/content-previewer" \
  -X POST \
  -H "Authorization: {{SPARKPOST_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"substitution_data": {"name": "{{$name}}"}, "content": {"from": "{{$from_email}}", "subject": "{{$subject}}", "html": "<p>Hello {{name}}! This is a preview.</p>"}}'