Complete configuration reference for embedded Flatfile
pk_
)Option | Type | Required | Description |
---|---|---|---|
publishableKey | string | ✅ | Your publishable key from Platform Dashboard |
Option | Type | Required | Description |
---|---|---|---|
userInfo | object | ❌ | User metadata for space creation |
userInfo.userId | string | ❌ | Unique user identifier |
userInfo.name | string | ❌ | User’s display name - this is displayed in the dashboard as the associated user |
userInfo.companyId | string | ❌ | Company identifier |
userInfo.companyName | string | ❌ | Company display name |
externalActorId | string | ❌ | Unique identifier for embedded users |
Option | Type | Required | Description |
---|---|---|---|
name | string | ✅ | Name of the space |
environmentId | string | ✅ | Environment identifier |
spaceId | string | ❌ | ID of existing space to reuse |
workbook | object | ❌ | Workbook configuration for dynamic spaces |
listener | Listener | ❌ | Event listener for responding to events |
Option | Type | Required | Description |
---|---|---|---|
themeConfig | object | ❌ | Theme values for Space, sidebar and data table |
spaceBody | object | ❌ | Space options for creating new Space; used with Angular and Vue SDKs |
sidebarConfig | object | ❌ | Sidebar UI configuration |
sidebarConfig.defaultPage | object | ❌ | Landing page configuration |
sidebarConfig.showDataChecklist | boolean | ❌ | Toggle data config, defaults to false |
sidebarConfig.showSidebar | boolean | ❌ | Show/hide sidebar |
document | object | ❌ | Document content for space |
document.title | string | ❌ | Document title |
document.body | string | ❌ | Document body content (markdown) |
Option | Type | Required | Description |
---|---|---|---|
closeSpace | object | ❌ | Options for closing iframe |
closeSpace.operation | string | ❌ | Operation type |
closeSpace.onClose | function | ❌ | Callback when space closes |
displayAsModal | boolean | ❌ | Display as modal or inline (default: true) |
Option | Type | Required | Description |
---|---|---|---|
id | string | ✅ | Space ID |
accessToken | string | ✅ | Access token for space (obtained server-side) |
accessToken
to the client. See Server Setup Guide for details.
Option | Type | Required | Description |
---|---|---|---|
mountElement | string | ❌ | Element to mount Flatfile (default: “flatfile_iFrameContainer”) |
loading | ReactElement | ❌ | Custom loading component |
exitTitle | string | ❌ | Exit dialog title (default: “Close Window”) |
exitText | string | ❌ | Exit dialog text (default: “See below”) |
exitPrimaryButtonText | string | ❌ | Primary button text (default: “Yes, exit”) |
exitSecondaryButtonText | string | ❌ | Secondary button text (default: “No, stay”) |
errorTitle | string | ❌ | Error dialog title (default: “Something went wrong”) |
Option | Type | Required | Description |
---|---|---|---|
apiUrl | string | ❌ | API endpoint (default: “https://platform.flatfile.com/api”) |
spaceUrl | string | ❌ | Spaces API URL (default: “https://platform.flatfile.com/s”) |
"Invalid publishable key"
Solution:
pk_
"Space not found"
or 403 Forbidden
Solution:
us_sp_
prefix)"CORS policy blocked"
Solution:
"Invalid access token"
when using space reuse
Solution: