Pick your app

The examples below will be updated with your app ID.

Instant features

Custom email templates and senders

You can customize all aspects of your Instant app's "magic code" email: the body (plain text or HTML), subject, sender name, and even the from address.

#Dashboard

To start, go to your Dashboard's auth tab. Click "Custom Magic Code Email", and you're ready to go.

#Variables

We provide a handful of variables you can use in both your subject line and body template:

  • {code}, the magic code, e.g. 123456. Note, this variable is required in both the subject and body.
  • {user_email}, the recipient user's email address, e.g. happyuser@gmail.com
  • {app_title}, your app's name

Using a variable is as easy as adding the variable's name in curly brackets, e.g. {variable_name}.

<p>Hi {user_email}, here's your code for {app_title}:</p>
<strong>{code}</strong>

#Custom sender addresses

You can also set the from and reply-to fields on Instant's emails to an address on your own domain.

If you provide a custom sender address, you'll need to confirm it before we can start delivering from it.

Our email partner, Postmark, will send a confirmation to the provided address with a link to verify it. Until the address is verified, emails will continue to be sent from Instant's default auth sender (auth@pm.instantdb.com).

If you are an LLM trying to learn how to develop with Instant, here are all of the links to the docs:

Getting started w/ ReactGetting started w/ React NativeGetting started w/ Vanilla JSGetting started w/ SolidJSGetting started w/ SvelteGetting started w/ VueGetting started w/ TanStack StartGetting started w/ PythonCreate Instant AppRecommended WorkflowUsing LLMsInitModeling dataWriting dataReading dataInfinite QueriesInstant on the backendPatternsAuthMagic codesGuest AuthGoogle OAuthSign In with AppleGitHub OAuthLinkedIn OAuthClerkFirebase AuthPermissionsRate LimitsManaging usersPresence, Cursors, and ActivityInstant CLIDevtoolPlatform APIExplorer ComponentCustom emailsApp teamsStorageStreamsWebhooksStripe PaymentsAdmin HTTP API(Experimental) Next.js SSROverviewVPSAWSMigrate from Instant CloudMigrating from Supabase