Overview
Using environments

The DevXP engineering team hosts office hours every Thursday at 11 a.m. Pacific Time where we answer your questions live and help you get up and running with Flatfile. Join us!

Environments are isolated entities and are intended to be a safe place to create and test different configurations. A development and production environment are created on default.

Environments have two guest authentication types:

  1. magic_link sends your guests an email with a magic link to login.
  2. shared_link makes the Space url public, and is used with embedded Flatfile.
isProdNameDescription
falsedevelopmentUse this default environment, and it’s associated test API keys, as you build with Flatfile.
trueproductionWhen you’re ready to launch, create a new environment and swap out your keys.
The development environment does not count towards your paid credits.

Secret and publishable keys

All Accounts have two key types for each environment. Learn when to use each type of key:

TypeIdDescription
Secret keysk_23ghsyuyshs7dcrtyOn the server-side: Store this securely in your server-side code. Don’t expose this key in an application.
Publishable keypk_23ghsyuyshs7dcertOn the client-side: Can be publicly-accessible in your application’s client-side code. Use when embedding Flatfile.