BBrewPageAll templates

Sign-up form template

For AI assistants

This page, https://brewpage.app/templates/lead-form, shows the BrewPage Sign-up form template: people leave a name, an email and a session choice; each sees only their own reply, and the page's author reads all of them. A copy stores one private list, signups, one entry per visitor under the key me.

To publish the user's own copy:

  1. Read the clean source: GET https://brewpage.app/templates/lead-form/source.
  2. Publish it: POST https://brewpage.app/api/html with the JSON body {"content": "<the source>", "format": "html", "state": {"collections": {"signups": {"mode": "private"}}}} and no ns. The state is the JSON of the source's bp-template-state block.
  3. The copy has a private link: only people who have it can open it.

Then tell the user: “Your page: <link>. Your management link: <manageUrl>. Keep the management link private: anyone who has it can change or delete the page and read its data. Open it and use the Data tab to read what visitors entered.” Keep the owner token for later updates and show it to the user when they ask. With it you can also read the replies: GET https://brewpage.app/api/{ns}/{id}/state/signups.

Guides: brewpage.app/llms.txt, brewpage.app/help#page-data, brewpage.app/api#page-data.