Sign in

Preview a Template (draft or published)

documented

Preview a template version.

GET /api/v1/templates/{id}/preview{?draft}Sendingno 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/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": {{$substitution_data}}}'