Complete guide to authenticating with Flatfile using API keys, Personal Access Tokens, and managing roles and permissions
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.publishableKey
and secretKey
are specific to an environment. Therefore, to interact at a higher level, you can use a personal access token.
clientId
and secret
.
accessToken
. Present that as your Bearer token
in place of the secretKey
.
accessToken
provided will remain valid for a duration of 24 hours.Role | Details |
---|---|
Administrator | This role is meant for any member of your team who requires full access to the Account. ✓ Can add other administrators ✓ Can view secret keys ✓ Can view logs |
guestAuthentication
type. Guests roles can invite other Guests unless you turn off this setting in the Guest Sidebar.
accessToken
provided will remain valid for a duration of 1 hour.Role | Details |
---|---|
Single-Space Guest | This role is meant for a guest who has access to only one Space. Such guests can be invited to additional Spaces at any time. |
Multi-Space Guest | This role is meant for a guest who has access to multiple Spaces. They will see a drop-down next to the Space name that enables them to switch between Spaces. |
Role | Details |
---|---|
Single-Workbook Guest | This role is meant for a guest who should have access to only one Workbook within a Space. |
Multi-Workbook Guest | This role is intended for a guest who has access to multiple Workbooks within a Space. |