tr Skip to content
Black Friday FlowMattic for life, 12 payments of $33.25 Or $399 once. Nothing added for splitting Ends in --Days --Hrs --Min --Sec See the deal

Share passwords securely with expiring, view-limited links

FlowMattic Share Secrets: a form submission creates an expiring, view-limited secret link that is emailed to the recipient.

If you need to share passwords securely with a client, a new hire or a contractor, a plain email or chat message is the wrong place for them: it sits in inboxes, archives and backups for years. Share Secrets, a built-in app in FlowMattic, the automation plugin for WordPress, turns a password, an API key or any sensitive note into a link that stops working after a set time, a set number of views, or both.

Because it is a workflow step, the link is created at the moment it is needed and sent through whatever channel the workflow uses. This guide explains what Share Secrets does, how the link and the reveal page behave, each setting on the step, and practical use cases for agencies, HR, SaaS teams and support.

What is Share Secrets?

Share Secrets is an app in the workflow builder with three actions: Create Secret Link, Delete Secret and Get Secret Info. Create Secret Link takes the secret content and returns a unique URL on your own site. The person who opens it presses a button to reveal the content, copies it, and the link expires by the rules you set.

Everything stays in your WordPress site. The secret content is encrypted with AES-256-CBC before it is saved as a WordPress option, using a key derived from your site’s AUTH_KEY and site URL. An optional password is stored as a WordPress password hash, not in plain text. That encryption is specific to Share Secrets; it is not how Connects stores app credentials.

The link is served from your site’s REST API, in the form /wp-json/flowmattic/v1/secret/{id}, where the ID is 32 random hexadecimal characters.

How to share passwords securely with a workflow

  1. Pick the trigger that knows who needs the secret, such as a form submission, a new WP Tables record or a webhook from another tool.
  2. Add a step, choose Share Secrets, then Create Secret Link.
  3. Put the value in Secret Content, typed or mapped from earlier data, and give it an optional Title.
  4. Choose an Expiration Type and set Expires After, Maximum Views, or both.
  5. Optionally add a Password, a Notification Email with Notify on Access, and the reveal page styling.
  6. Test the step. It returns secret_id, secret_url, expires_at, max_views and has_password.
  7. Send secret_url in the next step. Store secret_id as well if you may want to delete the secret or check on it later.
FlowMattic builder showing the Share Secrets Create Secret Link action settings
The Create Secret Link step with Secret Content, Expiration Type, Expires After, Maximum Views and notification settings.

What the recipient sees

The link opens a reveal page with your title, how many views remain and when it expires. The content is not on that page yet. It is fetched only when the recipient presses the reveal button, so a link preview or a crawler that loads the URL does not use up a view. The page is sent with a noindex, nofollow header.

If you set a password, the page asks for it first (“Password Required”) and the reveal fails with “Incorrect password.” until it matches. After the reveal, a copy button puts the content on the clipboard. On the final allowed view the page says: “This was the last view. The secret has been permanently deleted and cannot be accessed again.”

An expired link shows a “Secret Expired” page with your Expired Message, or redirects to your Expired Redirect URL. A link that never existed or was deleted shows “Secret Not Found”. The button on those error pages is set under FlowMattic Settings in the Share Secrets Settings card (Error Page Button Text and Error Page Button URL).

Key options and settings

OptionWhat it does
Secret Content (required)The password, key or note to share. Encrypted before it is stored.
Title (Optional)A label shown on the reveal page and in notification emails.
Expiration TypeTime-based, View-based, or Both (time and views).
Expires AfterA number plus Minutes, Hours, Days or Weeks. Defaults to 24 hours.
Maximum ViewsViews allowed before the secret is deleted. Defaults to 1 for one-time viewing.
Password (Optional)Asked for before the content is revealed. Send it by a different channel than the link.
Notification Email and Notify on AccessEmails you each time the secret is revealed, with the time, IP address, the viewer if they were logged in, and the view count.
Reveal Button Text, Button Style, Show Copy Button, Copy Button TextThe reveal page’s buttons. Styles are Primary, Secondary, Success and Danger.
Branding Logo URL, Branding TextYour logo and a footer line on the reveal page.
Expired Message, Expired Redirect URLWhat someone sees after expiry, or where they are sent instead.
Custom CSSExtra styles for the reveal page.

Get Secret Info takes a Secret ID and returns the title, created and expiry times, maximum views, view count, views remaining, whether it has a password, whether it has expired, and the access log, all without revealing the content. Each log entry records the timestamp, IP address, user agent and, for a logged-in viewer, their user details. Delete Secret removes a secret at once, and its link stops working.

Use cases

Hand a client their hosting login

An agency’s project handoff form carries the hosting credentials. The workflow wraps them in a one-view link with a password and emails the link, while the project manager reads the password to the client on the handoff call.

Flow: Form submission → Create Secret Link (View-based, 1 view, password) → Send Email

Give a new hire their first-day passwords

When HR adds Yuki Tanaka to the onboarding table, the workflow sends her a link that works once within 48 hours and alerts IT when she opens it. If the alert never comes, IT knows to follow up.

Flow: WP Tables new record → Create Secret Link (Both: 48 hours, 1 view, Notify on Access) → Send Email

Deliver API keys after a purchase

A SaaS product sold through WooCommerce creates the customer’s API key in its own backend, then delivers it through a secret link instead of printing it in the order email. The key never sits in the customer’s inbox in readable form.

Flow: WooCommerce order → API request (create key) → Create Secret Link → Send Template Email

Pass temporary access to a developer from a ticket

A support team needs to give an outside developer a temporary password. A helpdesk macro calls a FlowMattic webhook, which returns a two-hour link the agent pastes into the ticket.

Flow: Webhooks by FlowMattic → Create Secret Link (2 hours, password) → Webhook Response with secret_url

Revoke a link when a contract ends

Store each secret’s ID in a WP Tables row next to the person it was sent to. A “Revoke” button column runs a workflow that deletes the secret and posts a confirmation to the team.

Flow: WP Tables button clicked → Delete Secret (secret_id from the row) → Slack message

Report on links nobody opened

A daily check reads every stored secret ID, asks for its status and writes the views remaining back to the table, so operations can chase links that were never opened.

Flow: Schedule (Every Day) → WP Tables rows → Iterator → Get Secret Info → WP Tables update record

Tips and gotchas

  • The key belongs to your site. Because the encryption key comes from AUTH_KEY and the site URL, changing your salts or moving the site to another domain means existing secrets can no longer be decrypted. Create new links after a migration.
  • Check Maximum Views on Time-based links. The code reads the Maximum Views value on every expiration type, so a value saved there also caps a Time-based link. After testing, look at max_views in the step output and confirm it is what you expect.
  • Expired secrets are removed hourly. An hourly clean-up job in FlowMattic’s scheduler deletes expired secrets. Expiry is also checked whenever a link is opened, so an expired link never reveals content even before the clean-up runs.
  • Notifications use your site’s mail. Notify on Access sends through WordPress’s mail function, so the site must be able to send email.
  • Mind the rest of the run. The secret passes through the workflow, and Task History records each run’s data. Bring the value in from a source you trust, and set a sensible Task History Cleanup (Days) in Settings.
  • IP addresses behind a proxy. Access logs read the Cloudflare and forwarded-for headers before the direct address, so the logged IP is the visitor’s when your site sits behind a proxy.

For how FlowMattic handles credentials, roles and signatures across the plugin, see FlowMattic security.

Related features

  • Magic login links: send a one-click, single-use sign-in instead of a password.
  • Form Builder: collect the details that start a secret-sharing workflow.
  • Task History: see every run, step by step, and what each step returned.

FAQ

What is the safest way to share a password with a client?

To share passwords securely, send a link that expires instead of the password itself, and add a second factor. With Share Secrets, use View-based or Both with one view, set a password, and give the password over a different channel, such as a phone call. Turn on Notify on Access so you know when it was opened.

Can I see who opened a secret link?

Yes. Every reveal is logged with the time, IP address and browser user agent, plus the user’s name and email when they were logged in to your site. Read the log with Get Secret Info, or get it by email each time with Notify on Access.

What happens when a secret link expires?

The secret is deleted from your database and the link shows your Expired Message, or the default “This secret link has expired and is no longer accessible.” If you set an Expired Redirect URL, visitors are sent there instead. The content cannot be recovered.

Is the secret stored on FlowMattic’s servers?

No. The encrypted secret is stored in your own WordPress database and served from your own domain. Nothing about it is sent to FlowMattic.

Share Secrets is a core app in the workflow builder, with nothing extra to install. Compare FlowMattic plans and add expiring secret links to your next onboarding workflow.

More from the blog