Create & mount - Filecheck

Documentation Index

Fetch the complete documentation index at: /docs/llms.txt

Use this file to discover all available pages before exploring further.

Skip to main content

Navigate to header: Create the factory Create the factory

const fc = Filecheck('pk_live_…', {
  agentId: 'agt_…',   // optional sub-tenant scope
  // iframeSrc: '…',  // staging/dev override only
});

agentId (sub-tenant scope). Pass an agentId (agt_…) to scope the Element to a specific sub-tenant under your account — useful when one account serves multiple stores or brands. Leave it out to use your account default. The e-commerce plugins expose it as an optional setting.TODO(filecheck): define what an agent/sub-tenant is, when to use one, and where to obtain an agentId in the dashboard.

Navigate to header: Create an intake element Create an intake element

const intake = fc.elements.create('intake', {
  workflowId: 'wf_…',       // required unless resuming with jobId
  presentation: 'inline',   // 'inline' (default) | 'dialog'
});

Navigate to header: Create options Create options

Navigate to header: workflowId

workflowId

string

The Workflow to run. Required unless jobId is provided.

Navigate to header: jobId

jobId

string

Resume an existing job. When set, workflowId is ignored.

Navigate to header: presentation

presentation

'inline' | 'dialog'

default:"inline"

Render inline in the page flow, or behind a trigger button as a dialog.

Navigate to header: artworkTiming

artworkTiming

'checkout' | 'either' | 'after_order'

default:"checkout"

When the product collects its artwork. With 'either' the upload is optional; with 'after_order' the Element shows a note instead of an upload box. Both report status: 'idle' with canProceed: true before any upload, so a gated Add to cart stays enabled, and the artwork is collected after the order. See Artwork after checkout.

Navigate to header: locale

locale

string

Locale for the widget UI, for example en-US.

Navigate to header: connector

connector

object

Map file facts onto your product-page controls. See Connectors.

Navigate to header: connectorId

connectorId

string

Resolve a connector server-side by id (cntr_…).

Navigate to header: ui

ui

object

UI overrides: title, subtitle, theme, accent, layout, showHeader, submitLabel, autoSubmit, and more.

Navigate to header: Methods Methods

intake.mount('#fc-slot');        // or .mount(htmlElement)

intake.update({ workflowId: 'wf_…', ui: { theme: 'dark' } });

intake.focus();                  // open a dialog/drawer layout programmatically
intake.blur();

intake.respondToProof(true);     // approve a soft-proof gate
intake.setConnector({ /* … */ }); // replace the active connector
intake.applyNow();               // re-run the connector against the last facts

intake.unmount();

intake.on(...) returns an unsubscribe function. See Events.

Suggest edits Raise issue

{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Filecheck","colors":{"primary":"#1F5BFF","light":"#6088FF","dark":"#1747CC"},"logo":{"light":"https://mintcdn.com/filecheck/rNybgOKFlLbMhWeh/logo/light.svg?fit=max\\u0026auto=format\\u0026n=rNybgOKFlLbMhWeh\\u0026q=85\\u0026s=7bc29281132ca05b5217412db9e93fb8","dark":"https://mintcdn.com/filecheck/rNybgOKFlLbMhWeh/logo/dark.svg?fit=max\\u0026auto=format\\u0026n=rNybgOKFlLbMhWeh\\u0026q=85\\u0026s=e5a15a223efa144fa97287b4b96c0236"},"favicon":"https://mintcdn.com/filecheck/rNybgOKFlLbMhWeh/favicon.svg?fit=max\\u0026auto=format\\u0026n=rNybgOKFlLbMhWeh\\u0026q=85\\u0026s=1ca0b6f62da3e8005a37cf842f98f9c3","background":{"color":{"light":"#FFFFFF","dark":"#090B1A"}},"navbar":{"links":\[{"href":"https://filecheck.io","label":"Website"}\],"primary":{"type":"button","label":"Dashboard","href":"https://admin.filecheck.io"}},"footer":{"socials":{"x":"https://x.com/filecheckio","linkedin":"https://linkedin.com/company/filecheckio"},"links":\[{"header":"Trust","items":\[{"label":"Security and GDPR","href":"https://filecheck.io/security"},{"label":"Data Processing Agreement","href":"https://filecheck.io/company/dpa"},{"label":"Privacy policy","href":"https://filecheck.io/company/privacy"}\]}\]},"contextual":{"options":\["copy","view","download-spec","chatgpt","claude"\],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":\[{"anchor":"Demos","icon":"play","href":"https://filecheck.io/demos"},{"anchor":"Support","icon":"envelope","href":"mailto:support@filecheck.io"}\]},"pages":\[\]}},"deployment":{"deploymentMetadataValue":{"subdomain":"filecheck","hasAudioNarration":false,"actualSubdomain":"filecheck","customDomains":\["filecheck.io"\],"gitSource":{"type":"github","owner":"sterlyai","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"issues":true,"edits":true},"entitlements":{"AI\_CHAT":{"status":"DISABLED"}},"buildId":"6b0090f255d283cfb9f3b5aa","clientVersion":"0.0.4342","searchFilterCounts":\[{"language":"default","tag":"API reference","count":69},{"language":"default","tag":"Documentation","count":36},{"language":"default","tag":"Developers","count":23},{"language":"default","tag":"Admin guide","count":16},{"language":"default","tag":"Jobs","count":9},{"language":"default","tag":"Preflight Profiles","count":8},{"language":"default","tag":"The Element","count":7},{"language":"default","tag":"Connectors","count":7},{"language":"default","tag":"Optimize presets","count":7},{"language":"default","tag":"Profiles","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":false},"customCss":[]} {"page":{"pagePath":"element/create-and-mount","slug":"/element/create-and-mount","pageMetadata":{"title":"Create \u0026 mount","description":"The Filecheck factory, the intake element, its create options, and its methods.","href":"/element/create-and-mount"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The Filecheck factory, the intake element, its create options, and its methods.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`create-the-factory`,children:`Create the factory`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` fc`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Filecheck`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'pk_live_…'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` agentId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'agt_…'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional sub-tenant scope`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // iframeSrc: '…',`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // staging/dev override only`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`agentId`}),` (sub-tenant scope).`]}),` Pass an `,_jsx(_components.code,{children:`agentId`}),` (`,_jsx(_components.code,{children:`agt_…`}),`) to scope the Element to a specific sub-tenant under your account — useful when one account serves multiple stores or brands. Leave it out to use your account default. The e-commerce plugins expose it as an optional setting.`]}),_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`TODO(filecheck): define what an agent/sub-tenant is, when to use one, and where to obtain an `,_jsx(_components.code,{children:`agentId`}),` in the dashboard.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`create-an-intake-element`,children:`Create an intake element`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` intake`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fc`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`elements`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'intake'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` workflowId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'wf_…'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// required unless resuming with jobId`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` presentation:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'inline'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 'inline' (default) | 'dialog'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`create-options`,children:`Create options`}),`\n`,_jsx(ParamField,{path:`workflowId`,type:`string`,id:`param-workflow-id`,children:_jsxs(_components.p,{children:[`The Workflow to run. Required unless `,_jsx(_components.code,{children:`jobId`}),` is provided.`]})}),`\n`,_jsx(ParamField,{path:`jobId`,type:`string`,id:`param-job-id`,children:_jsxs(_components.p,{children:[`Resume an existing job. When set, `,_jsx(_components.code,{children:`workflowId`}),` is ignored.`]})}),`\n`,_jsx(ParamField,{path:`presentation`,type:`'inline' | 'dialog'`,default:`inline`,id:`param-presentation`,children:_jsx(_components.p,{children:`Render inline in the page flow, or behind a trigger button as a dialog.`})}),`\n`,_jsx(ParamField,{path:`artworkTiming`,type:`'checkout' | 'either' | 'after_order'`,default:`checkout`,id:`param-artwork-timing`,children:_jsxs(_components.p,{children:[`When the product collects its artwork. With `,_jsx(_components.code,{children:`'either'`}),` the upload is optional; with `,_jsx(_components.code,{children:`'after_order'`}),` the Element shows a note instead of an upload box. Both report `,_jsx(_components.code,{children:`status: 'idle'`}),` with `,_jsx(_components.code,{children:`canProceed: true`}),` before any upload, so a gated `,_jsx(_components.strong,{children:`Add to cart`}),` stays enabled, and the artwork is collected after the order. See `,_jsx(_components.a,{href:`/configuration/artwork-after-checkout`,children:`Artwork after checkout`}),`.`]})}),`\n`,_jsx(ParamField,{path:`locale`,type:`string`,id:`param-locale`,children:_jsxs(_components.p,{children:[`Locale for the widget UI, for example `,_jsx(_components.code,{children:`en-US`}),`.`]})}),`\n`,_jsx(ParamField,{path:`connector`,type:`object`,id:`param-connector`,children:_jsxs(_components.p,{children:[`Map file facts onto your product-page controls. See `,_jsx(_components.a,{href:`/element/connectors`,children:`Connectors`}),`.`]})}),`\n`,_jsx(ParamField,{path:`connectorId`,type:`string`,id:`param-connector-id`,children:_jsxs(_components.p,{children:[`Resolve a connector server-side by id (`,_jsx(_components.code,{children:`cntr_…`}),`).`]})}),`\n`,_jsx(ParamField,{path:`ui`,type:`object`,id:`param-ui`,children:_jsxs(_components.p,{children:[`UI overrides: `,_jsx(_components.code,{children:`title`}),`, `,_jsx(_components.code,{children:`subtitle`}),`, `,_jsx(_components.code,{children:`theme`}),`, `,_jsx(_components.code,{children:`accent`}),`, `,_jsx(_components.code,{children:`layout`}),`, `,_jsx(_components.code,{children:`showHeader`}),`, `,_jsx(_components.code,{children:`submitLabel`}),`, `,_jsx(_components.code,{children:`autoSubmit`}),`, and more.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`methods`,children:`Methods`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intake`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`mount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'#fc-slot'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// or .mount(htmlElement)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intake`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`workflowId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'wf_…'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ui:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`theme:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'dark'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intake`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`focus`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// open a dialog/drawer layout programmatically`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intake`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`blur`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intake`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`respondToProof`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// approve a soft-proof gate`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intake`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setConnector`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* … */`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// replace the active connector`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intake`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`applyNow`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// re-run the connector against the last facts`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intake`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`unmount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`intake.on(...)`}),` returns an unsubscribe function. See `,_jsx(_components.a,{href:`/element/events`,children:`Events`}),`.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create \u0026 mount","description":"The Filecheck factory, the intake element, its create options, and its methods.","href":"/element/create-and-mount"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create the factory","slug":"create-the-factory","depth":2,"children":[]},{"title":"Create an intake element","slug":"create-an-intake-element","depth":2,"children":[{"title":"Create options","slug":"create-options","depth":3,"children":[]}]},{"title":"Methods","slug":"methods","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/filecheck/6de6adfb358c6d44/ga-consent.js"],"subdomain":"filecheck","siteName":"Filecheck","title":"Create \u0026 mount - Filecheck","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T04:30:08.755Z","originalFileLocation":"element/create-and-mount.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The Filecheck factory, the intake element, its create options, and its methods.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Filecheck\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create \u0026amp; mount - Filecheck\">\u003cmeta data-mint-head property=\"og:description\" content=\"The Filecheck factory, the intake element, its create options, and its methods.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Filecheck\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://filecheck.io/docs/element/create-and-mount\\">\\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://filecheck.mintlify.site/docs/\_mintlify/api/og/v2?division=The+Element\\u0026amp;title=Create+%26+mount\\u0026amp;description=The+Filecheck+factory%2C+the+intake+element%2C+its+create+options%2C+and+its+methods.\\u0026amp;theme=2d8b0f160f4bd456e90bb9d1\\u0026amp;signature=dfc76f8fb4b791d38e35317e1c07229d6a40da3ce931151e8b6d17891a85981e\\">\\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create \u0026amp; mount - Filecheck\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The Filecheck factory, the intake element, its create options, and its methods.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://filecheck.mintlify.site/docs/\_mintlify/api/og/v2?division=The+Element\\u0026amp;title=Create+%26+mount\\u0026amp;description=The+Filecheck+factory%2C+the+intake+element%2C+its+create+options%2C+and+its+methods.\\u0026amp;theme=2d8b0f160f4bd456e90bb9d1\\u0026amp;signature=dfc76f8fb4b791d38e35317e1c07229d6a40da3ce931151e8b6d17891a85981e\\">\\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/filecheck/NelkTiDjeD6s_0IH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Filecheck\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1F5BFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://filecheck.io/docs/element/create-and-mount\\">\\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/element/create-and-mount.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\\",\\"@graph\\":\[{\\"@type\\":\\"Organization\\",\\"@id\\":\\"https://filecheck.io/#organization\\",\\"name\\":\\"Filecheck\\",\\"url\\":\\"https://filecheck.io\\",\\"logo\\":{\\"@type\\":\\"ImageObject\\",\\"url\\":\\"https://mintcdn.com/filecheck/rNybgOKFlLbMhWeh/logo/light.svg?fit=max\\u0026auto=format\\u0026n=rNybgOKFlLbMhWeh\\u0026q=85\\u0026s=7bc29281132ca05b5217412db9e93fb8\\"}},{\\"@type\\":\\"WebSite\\",\\"@id\\":\\"https://filecheck.io/docs#website\\",\\"name\\":\\"Filecheck\\",\\"url\\":\\"https://filecheck.io/docs\\",\\"publisher\\":{\\"@id\\":\\"https://filecheck.io/#organization\\"}},{\\"@type\\":\\"WebPage\\",\\"@id\\":\\"https://filecheck.io/docs/element/create-and-mount#webpage\\",\\"url\\":\\"https://filecheck.io/docs/element/create-and-mount\\",\\"name\\":\\"Create \u0026 mount\",\"description\":\"The Filecheck factory, the intake element, its create options, and its methods.\",\"dateModified\":\"2026-11-19T04:30:08.755Z\",\"isPartOf\":{\"@id\":\"https://filecheck.io/docs#website\\"},\\"breadcrumb\\":{\\"@id\\":\\"https://filecheck.io/docs/element/create-and-mount#breadcrumb\\"}},{\\"@type\\":\\"BreadcrumbList\\",\\"@id\\":\\"https://filecheck.io/docs/element/create-and-mount#breadcrumb\\",\\"itemListElement\\":\[{\\"@type\\":\\"ListItem\\",\\"position\\":1,\\"name\\":\\"The Element\",\"item\":\"https://filecheck.io/docs/element/overview\\"},{\\"@type\\":\\"ListItem\\",\\"position\\":2,\\"name\\":\\"Create \u0026 mount\",\"item\":\"https://filecheck.io/docs/element/create-and-mount\\"}\]},{\\"@type\\":\[\\"Article\\",\\"TechArticle\\"\],\\"@id\\":\\"https://filecheck.io/docs/element/create-and-mount#article\\",\\"headline\\":\\"Create \u0026 mount\",\"name\":\"Create \u0026 mount\",\"description\":\"The Filecheck factory, the intake element, its create options, and its methods.\",\"url\":\"https://filecheck.io/docs/element/create-and-mount\\",\\"mainEntityOfPage\\":{\\"@id\\":\\"https://filecheck.io/docs/element/create-and-mount#webpage\\"},\\"dateModified\\":\\"2026-11-19T04:30:08.755Z\\",\\"publisher\\":{\\"@id\\":\\"https://filecheck.io/#organization\\"},\\"isPartOf\\":{\\"@id\\":\\"https://filecheck.io/docs#website\\"}}\]}\\u003c/script>\\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Filecheck\\",\\"publisher\\":{\\"@type\\":\\"Organization\\",\\"name\\":\\"Filecheck\\"},\\"provider\\":{\\"@type\\":\\"Organization\\",\\"name\\":\\"Mintlify\\",\\"url\\":\\"https://mintlify.com\\"}}\\u003c/script>","agentPointerHref":"/docs/element/create-and-mount.md","siteName":"Filecheck","nav":{"global":{"anchors":\[{"anchor":"Demos","icon":"play","href":"https://filecheck.io/demos"},{"anchor":"Support","icon":"envelope","href":"mailto:support@filecheck.io"}\]},"tabs":\[{"tab":"Documentation","pages":\[{"title":"Documentation","href":""}\]},{"tab":"Developers","groups":\[{"group":"The Element","pages":[{"title":"The Element Overview","href":"/element/overview"},{"title":"Installation","description":"Load the Filecheck Element from the CDN, handle async loading, and size the mount point.","href":"/element/installation"},{"title":"Create \u0026 mount","href":"/element/create-and-mount"},{"title":"Events","description":"Subscribe to the Element lifecycle: ready, status, facts, ui, error, proof, scene, and destroy.","href":"/element/events"},{"title":"Presentation \u0026 Filecheck.mount","href":"/element/presentation"},{"title":"Connectors","href":"/element/connectors"},{"title":"Product customizers","href":"/element/customizers"}]},{"group":"Store plugins","pages":[{"title":"WooCommerce","href":"/integrations/woocommerce"},{"title":"Shopify","href":"/integrations/shopify"},{"title":"OpenCart \u0026 PrestaShop","href":"/integrations/opencart-prestashop"},{"title":"Odoo","href":"/integrations/odoo"}]},{"group":"Custom integrations","pages":[{"title":"Element on a custom stack","href":"/tutorials/api-integration"},{"title":"Headless API integration","href":"/integrations/headless"}]},{"group":"Official libraries","pages":[{"title":"Official libraries","sidebarTitle":"Overview","href":"/integrations/libraries"},{"title":"JavaScript","href":"/integrations/filecheck-js"},{"title":"React","href":"/integrations/react"},{"title":"Vue","href":"/integrations/vue"},{"title":"Node.js","href":"/integrations/node"},{"title":"PHP","href":"/integrations/php"}]},{"group":"Server-side","pages":[{"title":"Verify jobs","href":"/server/verify-jobs"},{"title":"Webhooks","href":"/server/webhooks"}]},{"group":"Reference","pages":[{"title":"Status payload","href":"/reference/status-payload"},{"title":"Facts","href":"/reference/facts"},{"title":"Errors \u0026 common mistakes","href":"/reference/errors"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Create \u0026 mount - Filecheck","deploymentId":"dpl_HkhFaM7Z4J8aYo89NEttjgSHLi43","buildId":"dpl_HkhFaM7Z4J8aYo89NEttjgSHLi43","dynamics":[],"chunks":[]}