Preview an inline Template
documentedPreview an inline template version.
POST /api/v1/templates/{id}/previewSendingno implementation yet0 runsNo 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/templates/{{$template_id}}/preview?draft={{$draft}}" \
-X POST \
-H "Authorization: {{SPARKPOST_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"substitution_data": {"name": "{{$name}}", "age": {{$age}}, "member": {{$member}}}}'