content is the HTML of the page, and everything else is a field.
The two things a page always needs
- A list.
listIdsays where the addresses go, and it must be a list of your organization — one page feeds exactly one list. Get the id from List the lists. {{form}}in the HTML. It is the placeholder the form itself replaces. Without it the page would render with no field to fill in, so saving is refused with400and the message names the placeholder that is missing.
{{heroTitle}}, {{heroSubtitle}}, {{organizationName}}
and {{poweredBy}}. Leave one out and the corresponding text simply is not rendered.
Published or draft
status is draft or published. A published page answers at its public address; a draft
page answers a not-found page and collects nothing. Create without status and you get a
draft — provisioning a page never puts an address online by accident.
The public address is https://www.agentsmail.io/public/{organizationSlug}/subscribe/{slug}, where
slug is the field you set on the page.
Starting from a theme
Browse the theme catalogue returns the themes we maintain. Choosing one is a copy: take itscontent, send it as your page's
content, and put its name in sourceTemplateName so the screen can say where the page came
from. Nothing that happens to the catalogue afterwards changes a page you already created.
What refuses
- A
slugalready used by another of your pages —409, and the message names the page that holds the address. - HTML without
{{form}}—400. - A
listIdthat belongs to another organization —404, exactly like an unknown list. - A
redirectUrlthat is nothttp://orhttps://—400.