Skip to content
Email template

One-time passcode email template

Put a short-lived login code at the center of the email, with the request spelled out. Open Linear login code for a magic-link send with a fallback code.

Customize copy and variables in the AI email editor. Browse all email templates or the Transactional collection. See the Email verification template. See the Password reset email template. See the Linear login code.

Rendered preview

See the email before you edit.

Subject
Your Acme Studio sign-in code

Preheader
Use 482913 to sign in to Acme Studio.

Usage guidance

Make it fit the send.

  • The code is the only thing above the fold. This send carries no login link, so a recipient reading on a phone sees the digits first.
  • State the expiry window in the input. The template never reads the clock. Pass the request details as a list so the recipient can recognise the attempt as their own.
  • Set the new-device block only when the attempt came from a browser the account has not used, so the warning stays rare enough to be believed.
  • Edit the passcode email in the AI email editor. Use Linear login code when the send needs a magic link plus a fallback code.
Variables

Data this template expects.

{{code}}
Value for code.
{{expiryNotice}}
Value for expiry notice.
{{helpUrl}}
Link for help.
{{newDevice}}
Value for new device.
{{requestDetails}}
Value for request details.
{{workspace}}
Value for workspace.

Implementation Guides

Related templates

Browse collections

Related Resources