# ngrok — Free onboarding · 4 days · Apr 17 – Apr 20, 2024

> A real journey — every lifecycle email ngrok sent our account after a free signup, two of them triggered by the first endpoint going live. Observed in our own ngrok account. Email address, company and links replaced with merge fields. We don't claim any email performs well.

Recorded from a signup on 2024-04-17. Sequences change; this is what the product sent then.

Times are UTC. `D3` means three days after signup. Merge fields look like `{first name}`.
Lines starting with ◆ are the account's state in the product, as the emails describe it.

## Signup (Day 0)

◆ D0 — Signed up on the free plan (time unknown; the welcome arrived at 14:59 UTC)

### D0 · 14:59 — Welcome to ngrok

- From: ngrok <team@m.ngrok.com>
- Preview: Learn how to use ngrok to connect, secure, and observe the ingress to what you're building.
- Role in the sequence: Welcome

[Image: ngrok email header: the ngrok wordmark beside colourful bars and triangles on dark navy]

Hello {email},

ngrok allows you to create secure ingress to any app, device or service without spending hours learning arcane networking technologies. You can get started with a single command or a single line of code.

ngrok’s platform is built around 3 main capabilities that connect the world to your work. Those capabilities have many different options depending on what you’re building, so take a moment to review them.

### 1. Connect

You can establish ingress in a few ways, depending on what you’re trying to solve:

- If you’re looking for a quick way to get started and see how ngrok works you can download an agent onto your machine or a device like a raspberry pi (that’s what our getting started documentation will teach you to use).
- If you want to have ingress baked into your app check out our growing collection of language-native libraries (ngrok-go, ngrok-rust).
- If you cannot install and download the ngrok agent but can run SSH locally, our SSH reverse tunnels will still provide you with the ingress you need.
- If you have workloads inside of a Kubernetes cluster that you need ingress into, try our Kubernetes ingress controller.

### 2. Secure

Ingress without security is a recipe for trouble in most cases. As a result, you’ll most likely want to keep your apps protected. We’ve built the platform so security features like OAuth are easy and free to use. Some quick notes:

- ngrok secures your apps by default with HTTPS and automatically provisions and manages TLS certificates, even on the free plan.
- If you’re building an app, we recommend securing it with OAuth: it’s available in our free tier for up to 50 MAUs.
- If you’re consuming webhooks, we recommend leveraging webhook verification, a feature that’s also included in the free tier for up to 500 webhooks.
- If you’re building for production use, check out our enterprise plans: they include features like IP restrictions, mTLS, OIDC and SAML.

### 3. Observe

Once you have secure ingress, you may want to understand traffic patterns:

- If you’re using the ngrok agent, it ships with a real-time web inspection interface which allows you to see what traffic is sent to your application server and what responses your server is returning.
- If you’re using a different form of ingress, ngrok can also push traffic logs into several popular cloud monitoring systems like Amazon CloudWatch or Kinesis. This feature is available on our enterprise plan.

And we'd love to know what you're working on and how we can make ngrok better. If you have 3.14 minutes, please fill out our ngrok user survey.

Don't forget to stay in touch!

- Check out the blog
- Our Slack Community for niche questions
- Are we missing a feature? Let us know here.

Follow ngrok: GitHub · LinkedIn · X · YouTube

_ngrok Inc., 548 Market St, PMB 26741, San Francisco, California 94104-5401, United States. Unsubscribe · Manage preferences_

**Teardown**

- Why this moment: The first email we received; nothing came before it.
- The one ask: Pick a way to connect (agent, language library, SSH, Kubernetes), then secure and observe it. Also: a user survey.
- Subject line: Plain “Welcome to ngrok”. The preview text names the three themes: connect, secure, observe.
- Call to action: No button. Around twenty inline links, organised under the three numbered capabilities. The survey ask is sized playfully: “If you have 3.14 minutes”.

## First endpoint (Day 2–3)

◆ D2 — First endpoint put online, as the next two emails report

### D2 · 23:05 — [ngrok] Your static domain is waiting for you...

- From: ngrok <team@m.ngrok.com>
- Preview: Learn how to claim your static domain today!
- Role in the sequence: Usage nudge

[Image: ngrok email header: the ngrok wordmark beside colourful bars and triangles on dark navy]

Hello {email},

Congratulations, it looks like you recently put your first endpoint online using ngrok! Did you know there’s a free static domain you can claim right now in your ngrok account?

When you don’t specify a static domain while creating an endpoint, ngrok will automatically assign a random domain on one of our ngrok-managed Domains to your endpoint, something like {random ngrok domain}.

If you don’t want your endpoint to change all the time, it’s very simple to claim a free static domain in your ngrok Dashboard. That domain is then yours forever, to memorize and use for all your projects.

### How do I claim my free static domain?

To claim your static domain, click the button below or follow these steps:

- Log in to your ngrok account.
- Navigate to Cloud Edge > Domains.
- Follow the prompts to claim your unique, static domain.

[Button: Claim your static domain]

Follow ngrok: GitHub · LinkedIn · X · YouTube

_ngrok Inc., 548 Market St, PMB 26741, San Francisco, California 94104-5401, United States. Unsubscribe · Manage preferences_

**Teardown**

- Why this moment: Triggered by usage: it opens by congratulating the account on putting its first endpoint online, and the next day's email confirms the endpoint was configured on this day.
- The one ask: Claim the free static domain so the URL stops changing every session.
- Subject line: Bracketed “[ngrok]” prefix and a trailing ellipsis — framed as something already reserved and waiting.
- Call to action: One button, “Claim your static domain”, backed by three written steps for anyone who would rather navigate there themselves.

### D3 · 23:04 — [ngrok] Hey {email}, your endpoint is open.

- From: ngrok <team@m.ngrok.com>
- Preview: You may not want everyone to be able to access your app/service. Did you know you can restrict access to authorized users for free by adding authentication to your endpoint?
- Role in the sequence: Usage nudge

[Image: ngrok email header: the ngrok wordmark beside colourful bars and triangles on dark navy]

Hello {email},

We noticed you configured your first endpoint yesterday, congrats!

You may not want everyone to be able to access your app/service. Did you know you can restrict access to authorized users for free by adding authentication to your endpoint?

You don’t even have to leave the ngrok agent CLI. Here are a couple of ways to do it:

Restrict with OAuth, email, and domain: Allow only users who authenticate via Google with an email of my-user@gmail.com or emails that end in example.com to access your upstream service.

```
ngrok http 80 \
--oauth google \
--oauth-allow-email my-user@gmail.com \
--oauth-allow-domain example.com
```

Restrict with Basic Auth: If you don't have a Google account or you want a simpler form of auth, you can protect your app with a username and password like so:

```
ngrok http {tracked link} --basic-auth
'username:a-very-secure-password'
```

### What’s next?

- Upgrade to an ngrok paid plan to access other authentication methods like SAML.
- Browse examples in the HTTP documentation of other ways ngrok can augment your traffic.
- Bring your own custom domain to ngrok.
- Add your API key and automate via the ngrok api command.

Follow ngrok: GitHub · LinkedIn · X · YouTube

_ngrok Inc., 548 Market St, PMB 26741, San Francisco, California 94104-5401, United States. Unsubscribe · Manage preferences_

**Teardown**

- Why this moment: Exactly 24 hours after the static-domain email, and it says why: “We noticed you configured your first endpoint yesterday”. The last lifecycle email we received.
- The one ask: Put authentication in front of the endpoint — OAuth with an email/domain allow-list, or Basic Auth.
- Subject line: Puts the account's email address in the subject and states a risk (“your endpoint is open.”) rather than a feature.
- Call to action: No button — the actions are two copy-paste CLI commands. In the plain-text version, the target of the Basic Auth command was rewritten into a click-tracking link, so that command can't be pasted as-is. An upgrade link (for SAML) is first under “What’s next?”.

React Email template (`emails/secure-endpoint.tsx`):

```tsx
import {
  Body,
  CodeBlock,
  Container,
  dracula,
  Head,
  Heading,
  Hr,
  Html,
  Link,
  Preview,
  Text,
} from "@react-email/components";

interface SecureEndpointEmailProps {
  product?: string;
  cli?: string;
  docsUrl?: string;
  upgradeUrl?: string;
}

export default function SecureEndpointEmail({
  product = "Acme",
  cli = "acme",
  docsUrl = "https://acme.example/docs/auth",
  upgradeUrl = "https://acme.example/pricing",
}: SecureEndpointEmailProps) {
  const oauth = [
    `${cli} http 3000 \\`,
    "  --oauth google \\",
    "  --oauth-allow-domain example.com",
  ].join("\n");
  const basic = `${cli} http 3000 --basic-auth "user:a-long-random-password"`;

  return (
    <Html>
      <Head />
      <Preview>Anyone with the link can reach your endpoint. One flag fixes that.</Preview>
      <Body style={body}>
        <Container style={container}>
          <Text style={brand}>{product}</Text>
          <Text style={text}>You put your first endpoint online yesterday — nice.</Text>
          <Heading style={heading}>Right now, anyone with the URL can reach it</Heading>
          <Text style={text}>
            You can limit access without leaving the CLI. Both options are free.
          </Text>

          <Text style={label}>Only people from your Google domain</Text>
          <CodeBlock code={oauth} language="bash" theme={dracula} style={codeBlock} />

          <Text style={label}>A username and password</Text>
          <CodeBlock code={basic} language="bash" theme={dracula} style={codeBlock} />

          <Hr style={hr} />
          <Text style={muted}>
            More options in the{" "}
            <Link href={docsUrl} style={link}>
              auth docs
            </Link>
            . SSO and IP allow-lists are on{" "}
            <Link href={upgradeUrl} style={link}>
              paid plans
            </Link>
            .
          </Text>
        </Container>
      </Body>
    </Html>
  );
}

SecureEndpointEmail.PreviewProps = {
  cli: "acme",
} satisfies SecureEndpointEmailProps;

const body = {
  backgroundColor: "#ffffff",
  fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
};

const container = { maxWidth: "560px", margin: "0 auto", padding: "40px 24px" };

const brand = { fontSize: "15px", fontWeight: 600, color: "#111111", margin: "0 0 32px" };

const heading = {
  fontSize: "20px",
  lineHeight: "28px",
  fontWeight: 600,
  color: "#111111",
  margin: "0 0 12px",
};

const text = { fontSize: "15px", lineHeight: "24px", color: "#3f3f46", margin: "0 0 12px" };

const label = { ...text, fontWeight: 600, color: "#111111", margin: "20px 0 8px" };

const link = { color: "#111111", textDecoration: "underline" };

const hr = { borderColor: "#eeeeee", margin: "28px 0 16px" };

const muted = { fontSize: "13px", lineHeight: "20px", color: "#71717a", margin: "0" };

// Wrap long lines: a wide <pre> stretches the whole email past a phone's width.
const codeBlock = {
  whiteSpace: "pre-wrap" as const,
  wordBreak: "break-word" as const,
  padding: "12px 14px",
  borderRadius: "8px",
  fontSize: "13px",
};
```

## After (Day 4+)

◆ D4–32 — Stayed on the free plan. No further lifecycle emails through May 19, 2024 — only the monthly newsletter (D7)
