Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Return

What are environment variables

Store keys and settings safely and reuse them across your project.

Steps at a glance ​

  1. Create an environment variable for a key or URL.
  2. Use it in your integrations and APIs.
  3. Keep different values per environment.

What an environment variable is ​

An environment variable is a named value (like RESEND_API_KEY) that you can use across your project without pasting the value everywhere.

When to use them ​

  • API keys (keep them private)
  • Base URLs
  • IDs that change between environments

How to use them ​

  1. Open the Settings tab, then open Environment Variables. In the Custom tab, click Insert, enter a Name and its values, and choose Secure for keys and secrets (Public values can be read in the browser). Click Insert.
The Add Environment Variable window with the Name, Editor and Production fields, the Secure and Public choice, and the Insert button
  1. Reference it wherever the value is needed (integrations, APIs, or other settings): click the binding icon of a field, then open the Environment Variables tab of the binding window and select your variable.

Learn more about environment variables →

Common pitfalls ​

You pasted a key directly into the interface ​

  • Keep keys in environment variables and use them from Data & API where possible.
  • Mark keys as Secure. Public variables are sent to the browser, where anyone can read them.