Email templates

Account-token CRUD for campaign email templates (campaign/template/email/*, authentication, no throttle).

Account-token CRUD for campaign email templates (campaign/template/email/*, authentication, no throttle). Endpoints: create, list ({value,label} dropdown of store + company + global templates), update (subject/HTML/JSON, optional channel wiring, copy-on-write for global templates), and get-by-id (optional store placeholder resolution). Scoped to the caller's company_id; templates must belong to the caller's company or be global. Called by the campaign builder / templates UI.

Prerequisites

  • A bearer token in the Authorization header. Any endpoint that needs no token says so on its own page.
  • The id of each record the call targets. Every endpoint page lists the ids it needs.

Errors

StatusMeaning
401The bearer token is missing, expired or invalid
403The token is valid but the record sits outside your account
422The request failed validation — the response names the fields
500Unexpected server error

Individual endpoints may return more; each page lists its own.

Endpoints

MethodEndpointDescription
POSTCreate email templateCreate a new campaign email template owned by the authenticated caller's company.
GETList email templatesGet email templates selectable for the caller as a {value,label} dropdown source: the given store's templates (when you provide store_id) plus the caller company's templates plus global (company_id NULL) templates, sorted by name.
POSTUpdate email templateUpdate an existing email template (subject, HTML/JSON content, name, editor mode, manager emails).
GETGet email template by IDGet a single email template by id.