Skip to content
Docs
Open Escouade
Documentation contents

Docs › Mail › Tools

save_campaign_template

View as .md

Save a template.

Creates or updates a reusable template of the space: subject, text and optional HTML. No send is scheduled.

Access

  • Key: an Escouade Mail key with send.
  • Space: a verified space.
  • Changes nothing: no, it acts.
  • Safe to replay: use an idempotency_key where the tool offers one.

Parameters

ParameterTypeRequiredDescription
template_idstringnoIdentifier of the existing template.
namestringyesName.
subjectstringyesSubject.
textstringyesText.
htmlstringnoOptional HTML.

Call it

Terminal
curl -s https://api.subagent.fr/v1/save_campaign_template \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer sak_…' \
  -d '{"name": "…", "subject": "…", "text": "…"}'

The full page in French, with the response fields and every refusal the tool can return: /mail/docs/reference/save_campaign_template.