doorman_signup
Create a Doorman account for the user with a first form and an API key. Ask the user for their email first. They'll get an email to set a dashboard password. Creates the account's first form too and returns its id and action URL, plus the api_key (store it as DOORMAN_KEY in the project's local secrets file, never commit it). Only for new users: if they already have an account, ask for a key instead. Until the user clicks the confirmation link in that email, nothing is emailed to them (100 checks; Slack and webhooks work).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | watch forwards everything and only tags would-be drops. Recommended for a new lead form: switch to enforce after a week or two of verdicts look right. Default enforce. | |
| Yes | The user's email. Real submissions are forwarded here by default. | ||
| site_url | Yes | The website the form is on, e.g. acme.com | |
| form_name | No | Optional name, e.g. 'Contact form' or 'Demo request' | |
| site_context | Yes | One or two sentences: what the business sells and to whom. Doorman compares every submission against this. Read the project's README/landing copy to write it. |