Skip to content

The admin screen

Everything you can do with the commands on the other pages you can also do in the admin screen. You do not need a terminal.

Add /admin to your Worker address, for example https://submitry.your-account.workers.dev/admin.

Sign in with your ADMIN_TOKEN, the password you chose during installation. The session lasts 12 hours. After five wrong attempts from the same address the login pauses for 10 minutes.

Screen What it does
Overview A checklist of what is still missing (license, mail provider, Turnstile secret, first site, first form), the installed version and a notice when a newer version exists, and the modules your license includes. It also shows when the scheduled tasks last ran and the Data retention setting (see Deleting old submissions automatically). The mail provider and Turnstile items can be skipped, so they carry an Optional label and do not count as missing. The Open Workers & Pages in Cloudflare button takes you to your Worker, where you update it (see Updates and your license).
Sites Add a client website with its addresses, re-check its license, delete it, and choose its default mail account and Turnstile secret.
Connections Your mail accounts and Turnstile secrets, each with a name you choose. They are stored encrypted in your database and never shown again. See Connections below. This screen replaces the old Keys screen.
Forms Create and edit forms with fields, protection, email and webhook actions and the response. The Advanced (JSON) tab shows the raw settings. The Embed tab gives you the HTML to paste into the client’s page.
Submissions Pick a form, filter and page through its submissions, read each one with the result of every email and webhook, send failed actions again, delete a submission, export a CSV or delete old ones.

Each field row has a handle on the left. Drag it to change the order, or use Move up and Move down if you prefer buttons or a keyboard. The honeypot and the email check each have a dropdown with the fields you declared. Choose Other name… for a honeypot field that is not declared above.

Every email and webhook action is a card. Click its title to open or close it. A closed card shows the action’s name, its type (Mail or Webhook), where it goes, and a Runs only when… label if it has a condition.

  • Name and Description are optional and only for you. The name also appears in the delivery log of a submission.
  • Under Insert a field you find one button for each field you declared, plus {{_all}}, {{_form}}, {{_site}} and {{_id}}. Click a button to insert that placeholder where your cursor is in the subject, text or HTML. A webhook has no template: it always sends the same JSON with submissionId, form, site, fields and createdAt.
  • Under Run when you set a condition without writing JSON. Choose whether all rules match or any rule matches, then add rules: pick a field, an operator (is, is not, contains, is one of, is empty, is not empty, is greater than, is less than) and a value. For is one of, separate the values with commas. With no rules, the action always runs.
  • Edit as JSON shows the same condition as JSON, for example this one that only runs for the sales topic:
{ "all": [ { "field": "topic", "op": "eq", "value": "sales" } ] }

A condition with nested groups or not cannot be shown in the simple builder. Submitry tells you so and you edit the JSON instead.

Above the list of submissions you find a filter. Combine any of these:

Filter What it does
Search in all fields Shows submissions where any field contains the text (up to 200 characters).
Status Received or Spam.
From and To Whole days, counted in UTC. The times in the list are shown in your own time zone.

Press Apply to filter and Clear to start over. The list shows 50 submissions per page. Use Newer and Older to move between pages. Export CSV uses the filter that is active.

A connection is a saved login for one service, with a name that only you see, for example “Agency Postmark” or “Client A”. There are two kinds:

  • Mail accounts for toSend, Postmark, Resend, Brevo or SMTP. Each can have a default sender address and name. The Send test mail button sends a test message to an address you enter.
  • Turnstile secrets, one secret key per connection. The Test button checks the secret with Cloudflare. The public site key stays in your website’s HTML.

You can edit a connection (leave the credential field empty to keep the saved one) and delete it. Each connection shows how many sites and forms use it.

Why connections exist: you can keep a separate mail account or Turnstile secret for each client. Submitry picks the one to use in this order:

  1. The choice on the action (Mail account) or on the form (Turnstile secret).
  2. The default of the site, set on the Sites screen under Connections.
  3. The old global key, if you saved one before. It keeps working, so nothing breaks when you update.

Under Existing global keys you can turn an old key into a named connection with Import as connection. The old key stays in place as a fallback. The UserCheck key for the email check is not a connection. It stays a single key under Other keys on the same screen.

If you change ADMIN_TOKEN, the saved credentials can no longer be read. Enter them again.

Choose SMTP as the provider to send through any mail server, for example the one of your hosting. Enter the host (such as smtp.example.com, without https://), the port and the username, and put the password in the credential field. Port 465 uses TLS and port 587 uses STARTTLS. Port 25 is not possible on Cloudflare Workers.

Open the submission. The Action deliveries table shows sent, skipped (the condition was not met) or failed with the reason. It also shows how many Attempts were made and the time of the Next attempt. Press Send again next to one action, or for all of them. Recipients may receive the message twice.

Submitry also tries again by itself, see Automatic retries.

A failed email or webhook is sent again automatically after 1 minute, then after 10 minutes, then after 1 hour. That makes 4 attempts in total. After the last one the table says Gave up after 4 attempts, and you can still use Send again.

Permanent errors are not retried, because trying again cannot help. Examples are a rejected sender or recipient address or a wrong login.

A schedule (a Cloudflare Cron trigger that runs every minute) drives the retries. If your install does not have it yet, due retries run when a form is submitted or when someone uses the admin screen. The Overview tells you when scheduled tasks last ran.

By default Submitry keeps every submission until you delete it. On the Overview screen, under Data retention, you can enter a number of days from 1 to 3650. Submissions older than that are then deleted from your database for good. They are not archived. Days are counted in UTC and the cleanup runs in the background about once an hour. Turn off switches it off again. You can still use Delete old submissions on the Submissions screen for a single form.

Protect it with Cloudflare Access (optional)

Section titled “Protect it with Cloudflare Access (optional)”

The password is enough for most installations. If you want a company login in front of the admin screen, use Cloudflare Access:

  1. In Cloudflare Zero Trust → Access → Applications add a self-hosted application for your-worker.workers.dev/admin. Allow the people who should have access.
  2. Copy the application’s Application Audience (AUD) tag and your team domain (yourteam.cloudflareaccess.com).
  3. In your Worker open Settings → Variables and secrets and add two secrets: ACCESS_TEAM_DOMAIN and ACCESS_AUD. Use secrets, not plain variables. Older installations replace plain variables on every build.

If the login screen still shows the password field, open Using Cloudflare Access? under it. It tells you which of the two values the Worker did not find.

From then on the admin screen only accepts a valid Cloudflare Access login, and the password form is switched off. The Worker checks Cloudflare’s signature itself, so a forged header does not work. Scripts that call the admin API with the token still work if Access lets them through (for example with an Access service token).

  • Credentials are never shown in the admin screen after you save them.
  • Logging out ends the session in your browser. A copied session cookie stays valid until it expires or you change ADMIN_TOKEN, which signs everyone out.
  • CSV export contains the newest 500 submissions of a form that match the active filter.