Public Actions: overview
Submissions from forms and buttons on your site can go to other tools such as Zapier, Make or n8n. Each form or button sends to an action, which a developer sets up once by writing the code that runs on submit and listing the fields it accepts. Every submission is saved, and every delivery is listed so you can check it arrived.
You manage actions under Public actions in the System menu. People see only the actions for their own sites, and only global administrators can create one that covers every site. Add a destination, a web address that receives a copy of every successful submission. Copies are normally sent in the background by a queue worker, a program on your server that handles waiting jobs, which has to be running. Integration tokens let Zapier or your own system list actions and submit them too.
If a destination refuses a copy or can’t be reached, the copy is sent up to three times in all, counting the first. One that still hasn’t gone through stays in the list of delivery attempts, and you can press Replay once the destination is working again. Each row shows when it was last tried, its status and the last response code the destination sent back.
What it does
Section titled “What it does”Public Actions receives approved public or authenticated integration submissions, validates their payload, passes them to a registered handler, and can send successful results to configured destinations. It is an integration-administrator feature: use it to define a controlled action boundary for a form, API client, or automation provider, not for ordinary page editing.
Create an action
Section titled “Create an action”Go to System → Public Actions. Create an action with a unique key, name, status, and registered handler. Scope it to a site when appropriate, then configure its success/failure message or redirect, Zapier/API availability, and payload schema.
- Use Active only after the handler and destinations are ready.
- Use Paused to temporarily stop an action without removing its configuration.
- Use Archived when it should no longer accept new submissions.
The runtime expects payload_schema.fields to be a structured list of field definitions with a key, type, and required flag. The current Payload schema key/value control is not a nested schema designer, so have an integrator seed or update that structure and test the resulting request validation. Actions without valid schema fields reject submissions by default; the allow_schemaless_payloads escape hatch must be enabled in configuration and then accepts at most 16 KB.
The handler can apply further validation and performs the actual operation. If its key is no longer registered, the package stores the submission as Failed and returns a generic unavailable response. Review configured redirect URLs too: an action-level success or failure URL can send a visitor off the current site.
Expose a public form safely
Section titled “Expose a public form safely”The built-in page at /actions/{key} is available only for an Active action whose settings.public_page_enabled value is true. That setting is not exposed by the current action form, so an integrator must set it deliberately. The page is noindex and no-store and renders only simple email, text, URL, and telephone inputs; use a package or site-owned form for richer schema types.
- Public form submissions are CSRF-protected and default to 12 attempts per minute for each action, email, and IP combination. Per-action limits can be supplied in package configuration or
settings.rate_limit.per_minute. A second limit of 30 attempts per minute for each action and IP (submit_ip_rate_limit_per_minute, never lower than the per-email limit) ignores submitted fields, so changing the email address does not reset it. - The default spam adapter is a honeypot. The supplied public page renders each configured honeypot field off-screen and empty; a site-owned form must render the same fields itself. Turnstile, hCaptcha and reCAPTCHA are verified on the server, but the supplied page does not render their widgets, so enable them only with a form that does. Every enabled adapter must pass; enabling a CAPTCHA without its secret and response token fails closed, including on non-trusted Form Builder or integration submissions.
- The supplied page does not add a privacy notice or consent field. Put the required notice and consent capture in the calling form and schema for the data you collect.
- Form Builder connections are configuration-only: map a form handle or
id:{id}to an action underform_builder.mappings. The listener calls the handler synchronously and does not swallow action or validation failures, so test the mapped action before exposing the form. - A public client may send an
Idempotency-Keyheader oridempotency_keyfield. Resending the same details with the same key returns the first stored result without running the handler or destinations again. Reusing a key with different details is rejected with a validation error onidempotency_key; send a new key for new details. - Spam, schema, inactive-action, and throttle rejection happens before a submission record is created. Do not treat the Submissions ledger as a complete request or abuse log.
Add a destination
Section titled “Add a destination”Open Destinations under Public Actions and select the action it should receive. Set its name, status, adapter, endpoint URL, secret, headers, and adapter settings. Endpoint URLs, secrets, and headers are encrypted at rest; destination Settings are not, so never place credentials there. Administrators with edit access can reveal the decrypted endpoint and secret.
The built-in HTTP adapter requires HTTPS, blocks private and reserved addresses, pins the resolved address, and never follows redirects. An integrator can deliberately relax the HTTPS or private-address guards, but the package records a warning when either is relaxed. When a secret is set, it signs the exact JSON body with HMAC-SHA256 in X-Capell-Signature; the receiving system must verify that header. Keep the default POST method for sensitive payloads because GET puts the payload and metadata in the URL query string.
Delivery is asynchronous by default, on the configured Laravel queue. Keep a queue worker running. Setting sync to true sends during the submission request and does not get the queued job’s automatic retries. Pausing a destination prevents new successful submissions from creating attempts for it, but it does not cancel a job that is already queued.
Create and revoke integration tokens
Section titled “Create and revoke integration tokens”Open Integration Tokens and choose Create token. Give it a recognizable name, select the provider, choose the site scope, and grant only the abilities the integration needs. Global tokens are available only to global administrators; site-scoped users can create tokens for their permitted sites.
Copy the token from the creation notification immediately. The token list later shows its name, provider, last use, and revocation date, but not the plain secret. Revoke a token with confirmation as soon as the connected integration is no longer trusted or needed.
- A token can list actions, submit actions, and/or read submissions. Read submissions returns decrypted submission payloads, so grant it only when the integration needs that data.
- An action must be Active and have Zapier enabled or API enabled for the matching token provider. A site-scoped token sees only actions and submissions assigned directly to that site; it does not inherit global actions.
- The authenticated API defaults to 120 requests per minute per token. Provider- and token-specific limits are configuration, not action-form fields.
- The list does not display a token’s site or abilities after creation. Record the grant when issuing it and revoke and replace the token if its scope is uncertain.
Trusted inbound submissions use a separate endpoint and do not use integration tokens. Provision one or more encrypted trusted_submission_secrets on the action through an integration; there is no admin field for them. Package configuration also supports one fallback secret keyed by action. A secret written into the action’s settings.trusted_submission_secret is moved into the encrypted list when the action is saved, and is never read from settings. If the migration that moves these settings secrets logs that it skipped an action because its encrypted secrets could not be decrypted, that action still holds the plaintext secret in settings. To repair it, add the application key that encrypted the secrets to APP_PREVIOUS_KEYS and re-save the action (for example PublicAction::query()->whereKey($id)->sole()->save() in Tinker); the save moves the plaintext secret into the encrypted list under the current key. If that key is lost, the encrypted secrets cannot be recovered: assign a new trusted_submission_secrets list and save, and first remove settings.trusted_submission_secret if the old secret should stop working, because the save otherwise moves it into the new list. Prefer X-Capell-Signature containing HMAC-SHA256 of the timestamp, uppercase method, request path (starting with /, without query string), idempotency key and exact raw body, joined in that order with newline characters. The timestamp accepts a five-minute clock window by default. A matching Bearer secret is also accepted; it is a static credential with no timestamp, so anyone who sees it can send new submissions until it is rotated. Use it only over HTTPS from a caller that cannot sign requests. Every trusted request must include an idempotency key, and an unknown action key receives the same 401 response as a wrong secret.
Monitor deliveries
Section titled “Monitor deliveries”- Submissions is a read-only ledger of received, handled, and failed handler processing. Handled means the handler succeeded; it does not mean every destination accepted the webhook.
- Dispatch Attempts is the separate delivery ledger. An unsuccessful asynchronous delivery is tried up to three times, using the configured backoff and jitter. Each try keeps its own attempt row and response, so later retries preserve the earlier results. Errors caught by the HTTP adapter, such as an invalid endpoint, are marked Failed and are also retried within that limit. An unregistered adapter fails before that update and can leave its durable row Pending, so check failed queue jobs when a pending row does not move.
- For a pending, retryable, or failed attempt, Replay performs one immediate delivery with the currently saved destination settings and creates a new attempt row. It is not queued for another automatic retry, and succeeded attempts cannot be replayed.
- The admin tables show statuses, source type, destination, HTTP status, and timestamps. They do not show decrypted submission payloads, metadata, response summaries, or error text.
Good to know
Section titled “Good to know”- Actions, destinations, submissions, attempts, and tokens use separate Shield permissions as well as site scope. A site assignment alone does not grant access, and only a global actor with token-create permission can issue a global token.
- Submission payloads are encrypted. Source identifiers, idempotency keys, status, timestamps, request URL, referrer, user agent, and keyed IP fingerprint metadata are stored separately; new webhook response/error content is withheld before persistence; legacy free-form content is also withheld in inspection and replay notifications. Design schemas to collect only what the handler and destinations need.
- When Privacy Centre is installed, export and erasure match a subject by exact source type/id or by an exact email value in the action’s submitter email field: the schema field keyed
email, otherwise the schema’s only email-typed field (emailfor schemaless actions). A form with several email fields and none keyedemailhas no submitter field, so other people’s addresses (a referral form’s friend field, for example) never match. Erasure deletes the matching submissions and attempts; it does not discover arbitrary personal data stored under other field names. capell:public-actions:prune-submissionsdefaults to submissions older than 365 days and deletes their dispatch attempts by cascade. Use--dry-runfirst. The package schedules this command daily with overlap prevention and a single-server lock. Keep the host scheduler running.- Diagnostics checks the storage tables, webhook adapter and presets, Form Builder bridge, SSRF safeguards, and whether schemaless payloads have been enabled. Treat a relaxed webhook or schemaless diagnostic as a production review item.
For how to use Public Actions, see the admin guide. For developers: see the README.