Create landing page template

Create a new campaign landing-page template owned by the caller's company. template_editor_mode defaults to custom. Only title, company_id, store_id and template_editor_mode are persisted at create time; content is added via the update endpoint.

Auth

  • bearer token, account role — authentication. Stamped with company_id = user.person.company_id. store_id, if supplied, must belong to the caller's hierarchy (an ownership check).

Rate limit

  • No rate limit.

Body

FieldTypeRequiredNotes
titlestringRequiredUnique among the caller's company templates and global templates.
html_contentstringOptionalHTML body. Optional when you send html_content_b64. Not persisted at create (set via update).
html_content_b64string (base64)OptionalBase64 of html_content for WAF-blocked bytes; decoded before validation.
json_contentstring (JSON)OptionalEditor JSON, validated as json.
template_editor_modestringOptionalcustom or html_editor. Defaults to custom.
store_idintegerOptionalScope to one store; must be in the caller's hierarchy.

Behaviour

  • Synchronous. 200 OK returns data.data = only(id,title,description,store_id,enable_direct_to_customer,enable_direct_to_manager,enable_direct_to_owner,manager_email,other_manager_email) — unset fields serialise as null on a fresh create. 422 on validation failure (e.g. duplicate title).
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
string
string
string
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json