Learn how to use API keys to authenticate API requests.
development
and production
environment are created
by default.
isProd | Name | Description |
---|---|---|
false | development | Use this default environment, and its associated test API keys, as you build with Flatfile. |
true | production | When you’re ready to launch, create a new environment and swap out your keys. |
Type | Id | Description |
---|---|---|
Secret key | sk_23ghsyuyshs7dcrty | On the server-side: Store this securely in your server-side code. Don’t expose this key in an application. |
Publishable key | pk_23ghsyuyshs7dcert | On the client-side: Can be publicly-accessible in your application’s client-side code. Use when embedding Flatfile. |
accessToken
provided from publishableKey
will remain valid for a
duration of 24 hours.