Authenticate
publishableKey
string
required
Publishable key accessed via Flatfile dashboard > Developer settings.
src/client.js
Identify
While setting up embedded Flatfile, you have the option to either establish a fresh Space during each initialization or reuse an existing Space. These properties specifically apply when creating a new Space.userInfo
{ userId: string, name: string, companyId: string, companyName: string }
Additional metadata to be passed to the space as it’s created
src/client.js
externalActorId
string
An optional unique identifier that enables our embedded users to be
associated with a specific actor in flatfile, enabling repeated through the
embedded experience.
src/client.js
Look & Feel
name
string
required
Name of the space
src/client.js
themeConfig
object
Theme values for the Space, sidebar and data table.
src/client.js
spaceBody
object
Pass in space options to configure a new Space. Find all available parameters
for spaceBody in the API
Reference.
src/client.js
sidebarConfig
object
Sidebar config values to toggle UI elements
If multiple values are provided for defaultPage, it with prioritize in the
following order: Sheet, Workbook, Document, Checklist.
sidebarConfig
document
object
Document to pass to space
Client-Side Server
These options are available when configuring your Space client-side.environmentId
string
required
Identifier for environment. This is optional with creating a Workbook
client-side. The key includes environment-specific configurations.
src/client.js
workbook
object
Config of the workbook to be created
src/client.js
listener
Listener
Event listener for responding to Events.
src/client.js
Configuration
These properties allow you to configure how the importer is mounted, displayed, and closed.closeSpace
operation: string, onClose: (data: any) => void
Options for when to close the iframe and a callback function when the session
is complete.
src/client.js
onClose callback function is called when the ‘operation’ defined in the
Action is complete and closes the iframe. It can also be used to perform cleanup
actions, such as resetting the state of the parent application or updating the
UI.
displayAsModal
boolean
default:"true"
Display Flatfile as a full screen modal or inline on the page.
.flatfile_displayAsModal which removes all the dialog styling.
The default width and height of the container can be overriden in style.css.