Create a Template
documentedCreate a new template (draft by default).
POST /api/v1/templatesSendingno 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" \
-X POST \
-H "Authorization: {{SPARKPOST_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id": "{{$template_id}}", "name": "{{$template_name}}", "description": "{{$description}}", "content": {"email_rfc822": "Content-Type: text/plain\\nFrom: {{$from_name}} <{{$from_email}}>\\nSubject: {{$subject}}\\n\\n{{$body}}"}, "options": {"open_tracking": {{$open_tracking}}, "click_tracking": {{$click_tracking}}}, "shared_with_subaccounts": {{$shared_with_subaccounts}}}'