post
https://production-api.shoutaboutus.com/api/v1/campaign/template/landing-page/create
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
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | Required | Unique among the caller's company templates and global templates. |
html_content | string | Optional | HTML body. Optional when you send html_content_b64. Not persisted at create (set via update). |
html_content_b64 | string (base64) | Optional | Base64 of html_content for WAF-blocked bytes; decoded before validation. |
json_content | string (JSON) | Optional | Editor JSON, validated as json. |
template_editor_mode | string | Optional | custom or html_editor. Defaults to custom. |
store_id | integer | Optional | Scope to one store; must be in the caller's hierarchy. |
Behaviour
- Synchronous.
200 OKreturnsdata.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 asnullon a fresh create.422on validation failure (e.g. duplicatetitle).
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
