Create a Payment Session Token when you want to accept money now.You can pass a bankAccountId to this mutation which determines which of the Firm’s Bank Accounts the money will be directed to. If you do not pass a bankAccountId the Firm’s default operating account will be used.
Create a Save Payment Method Session Token when you want to save the payment details now, then use them to make a payment at a later date. You can optionally pass in a clientId if you know which Client this Payment Method should be saved under.
You’ll need to add the Firm API Token as the x-api-key header for the
request. x-api-key=f_secret_env_******
Return the paymentToken to your frontend to initialize the SDK.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Confido Legal Docs","description":"Confido Legal is a payment platform for law firms, enabling them to accept payments online, manage client billing, and streamline financial operations.","colors":{"primary":"#3182CE","light":"#63B3ED","dark":"#2B6CB0"},"logo":{"light":"https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/logo/confido-light.svg?fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=59e59e04f2624b986bcdb76be415d9ac","dark":"https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/logo/confido-dark.svg?fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=faef7bb026670bc6b43cdd76d13b1a42"},"favicon":"https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/favicon.svg?fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=40f6787c2efddf6e51151ec4257f3e84","navbar":{"links":[],"primary":{"type":"button","label":"Login to Sandbox","href":"https://app.sandbox.confidolegal.com"}},"footer":{"socials":{"github":"https://github.com/confido-legal","linkedin":"https://www.linkedin.com/company/confidolegal/posts?feedView=all"}},"styling":{"codeblocks":"system","latex":false},"errors":{"404":{"redirect":false}},"navigation":{"global":{"anchors":[{"anchor":"GraphQL Playground","icon":"webhook","href":"https://api.sandbox.gravity-legal.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"confido","hasAudioNarration":false,"actualSubdomain":"confido","customDomains":["docs.confidolegal.com"],"gitSource":{"type":"github","owner":"confido-legal","repo":"confido","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af4ee4694a766ae1990e984","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Docs","count":40},{"language":"default","tag":"Hosted Fields","count":12},{"language":"default","tag":"onboarding.js","count":7},{"language":"default","tag":"Onboarding.js","count":7},{"language":"default","tag":"hosted-fields.js","count":6},{"language":"default","tag":"Receive Money","count":5},{"language":"default","tag":"Send Money (Disbursements)","count":5},{"language":"default","tag":"Firm Onboarding","count":4},{"language":"default","tag":"Introduction","count":4},{"language":"default","tag":"Payments Lifecycle","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"docs/hosted-fields/create-public-token","slug":"/docs/hosted-fields/create-public-token","pageMetadata":{"title":"Create a Public Token","description":null,"href":"/docs/hosted-fields/create-public-token"},"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={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`To get started, you will need to create a public token from your server. You will then pass this token to your frontend to initialize the SDK.`}),`\n`,_jsx(Heading,{level:`2`,id:`payment-sessions`,children:`Payment Sessions`}),`\n`,_jsx(_components.p,{children:`Create a Payment Session Token when you want to accept money now.`}),`\n`,_jsxs(_components.p,{children:[`You can pass a `,_jsx(_components.code,{children:`bankAccountId`}),` to this mutation which determines which of the Firm’s Bank Accounts the money will be directed to. If you do not pass a `,_jsx(_components.code,{children:`bankAccountId`}),` the Firm’s default operating account will be used.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`graphql`,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:`graphql`,children:_jsxs(_components.code,{language:`graphql`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`mutation`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PaymentSessionCreate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`$input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`PaymentSessionCreateInput`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` paymentSessionCreate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`$input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` paymentSessionToken`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`save-payment-method-session`,children:`Save Payment Method Session`}),`\n`,_jsxs(_components.p,{children:[`Create a Save Payment Method Session Token when you want to save the payment details now, then use them to make a payment at a later date. You can optionally pass in a `,_jsx(_components.code,{children:`clientId`}),` if you know which Client this Payment Method should be saved under.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`graphql`,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:`graphql`,children:_jsxs(_components.code,{language:`graphql`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`mutation`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` StartSavePaymentMethodSession`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` $input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`CreateSavePaymentMethodTokenInput`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` createSavePaymentMethodToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`$input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` savePaymentMethodToken`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Tip,{type:`info`,children:_jsxs(_components.p,{children:[`You’ll need to add the Firm API Token as the `,_jsx(_components.code,{children:`x-api-key`}),` header for the\nrequest. `,_jsx(_components.code,{children:`x-api-key=f_secret_env_******`})]})}),`\n`,_jsxs(_components.p,{children:[`Return the `,_jsx(_components.code,{children:`paymentToken`}),` to your frontend to initialize the SDK.`]})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Create a Public Token","description":null,"href":"/docs/hosted-fields/create-public-token"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Payment Sessions","slug":"payment-sessions","depth":2,"children":[]},{"title":"Save Payment Method Session","slug":"save-payment-method-session","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"confido","siteName":"Confido Legal Docs","title":"Create a Public Token - Confido Legal Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T22:56:27.913Z","originalFileLocation":"docs/hosted-fields/create-public-token.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=\"application-name\" content=\"Confido Legal Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_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=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a Public Token - Confido Legal Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Confido Legal Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://confido.mintlify.site/_mintlify/api/og/v2?division=Hosted+Fields\u0026amp;title=Create+a+Public+Token\u0026amp;theme=12ecdbe0b967a4cd4a43c39f\u0026amp;signature=f24fc191262669c12384177c6e2b67ac2b1ff701a1d822746f44efc6c1d03c70\">\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 a Public Token - Confido Legal Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://confido.mintlify.site/_mintlify/api/og/v2?division=Hosted+Fields\u0026amp;title=Create+a+Public+Token\u0026amp;theme=12ecdbe0b967a4cd4a43c39f\u0026amp;signature=f24fc191262669c12384177c6e2b67ac2b1ff701a1d822746f44efc6c1d03c70\">\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=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Confido Legal Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3182CE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/hosted-fields/create-public-token.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.confidolegal.com/#organization\",\"name\":\"Confido Legal Docs\",\"url\":\"https://docs.confidolegal.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/logo/confido-light.svg?fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=59e59e04f2624b986bcdb76be415d9ac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.confidolegal.com#website\",\"name\":\"Confido Legal Docs\",\"url\":\"https://docs.confidolegal.com\",\"publisher\":{\"@id\":\"https://docs.confidolegal.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token#webpage\",\"url\":\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token\",\"name\":\"Create a Public Token\",\"dateModified\":\"2026-10-30T22:56:27.913Z\",\"isPartOf\":{\"@id\":\"https://docs.confidolegal.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hosted Fields\",\"item\":\"https://docs.confidolegal.com/docs/hosted-fields/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a Public Token\",\"item\":\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token#article\",\"headline\":\"Create a Public Token\",\"name\":\"Create a Public Token\",\"url\":\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token\",\"mainEntityOfPage\":{\"@id\":\"https://docs.confidolegal.com/docs/hosted-fields/create-public-token#webpage\"},\"dateModified\":\"2026-10-30T22:56:27.913Z\",\"publisher\":{\"@id\":\"https://docs.confidolegal.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.confidolegal.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Confido Legal Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Confido Legal Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/hosted-fields/create-public-token.md","siteName":"Confido Legal Docs","nav":{"global":{"anchors":[{"anchor":"GraphQL Playground","icon":"webhook","href":"https://api.sandbox.gravity-legal.com"}]},"tabs":[{"tab":"Docs","groups":[{"group":"Introduction","pages":[{"title":"Overview","href":"/docs/introduction/overview"},{"title":"Sandbox Environment","href":"/docs/introduction/sandbox-environment"},{"title":"Authorization","href":"/docs/introduction/authorization"},{"title":"API Limits \u0026 Throttling","href":"/docs/introduction/api-limits"}]},{"group":"Firm Onboarding","pages":[{"title":"Overview","href":"/docs/firm-onboarding/overview"},{"title":"Connect","href":"/docs/firm-onboarding/connect"},{"title":"Sign Up Links","href":"/docs/firm-onboarding/sign-up-links"},{"title":"Firm Status","href":"/docs/firm-onboarding/firm-status"}]},{"group":"Embedded Forms","pages":[{"title":"Stored Disbursement Methods","href":"/docs/embedded-forms/stored-disbursement-methods"}]},{"group":"Receive Money","pages":[{"title":"Payment Links","href":"/docs/receive-money/payment-links"},{"title":"Aggregate Payment Links","href":"/docs/receive-money/aggregate-payment-links"},{"title":"Stored Payment Methods","href":"/docs/receive-money/stored-payment-methods"},{"title":"Subscriptions","href":"/docs/receive-money/subscriptions"},{"title":"Payment Intents","href":"/docs/receive-money/payment-intents"}]},{"group":"Send Money (Disbursements)","pages":[{"title":"Disbursements","href":"/docs/send-money/disbursements"},{"title":"Vendors","href":"/docs/send-money/vendors"},{"title":"Create a Disbursement","href":"/docs/send-money/create-disbursement"},{"title":"Expiration","href":"/docs/send-money/expiration"},{"title":"Bulk Create Disbursements","href":"/docs/send-money/bulk-disbursements"}]},{"group":"Bank Account Transfers","pages":[{"title":"Bank Account Transfers","href":"/docs/bank-account-transfers/overview"},{"title":"Manage Transfers","href":"/docs/bank-account-transfers/manage-transfers"}]},{"group":"Payment Methods","pages":[{"title":"Credit/Debit Card","href":"/docs/payment-methods/credit-debit-card"},{"title":"Same-Day ACH","href":"/docs/payment-methods/same-day-ach"},{"title":"Manual Payments","href":"/docs/payment-methods/manual-payments"}]},{"group":"Cards","pages":[{"title":"Virtual Cards (coming soon)","href":"/docs/cards/virtual-cards"},{"title":"Physical Cards (coming soon)","href":"/docs/cards/physical-cards"}]},{"group":"Payments Lifecycle","pages":[{"title":"Overview","href":"/docs/payments-lifecycle/overview"},{"title":"Voids and Refunds","href":"/docs/payments-lifecycle/voids-and-refunds"},{"title":"ACH Returns","href":"/docs/payments-lifecycle/ach-returns"},{"title":"Chargebacks","href":"/docs/payments-lifecycle/chargebacks"}]},{"group":"Hosted Fields","pages":[{"title":"Overview","href":"/docs/hosted-fields/overview"},{"title":"Trusted Domains","description":null,"href":"/docs/hosted-fields/trusted-domains"},{"title":"Create a Public Token","href":"/docs/hosted-fields/create-public-token"},{"title":"Listen For Changes","description":null,"href":"/docs/hosted-fields/listen-for-changes"},{"title":"Initialize the SDK","href":"/docs/hosted-fields/initialize-sdk"},{"title":"Complete the Session","href":"/docs/hosted-fields/complete-session"}]},{"group":"Statements","pages":[{"title":"Overview","href":"/docs/statements/overview"}]},{"group":"Webhooks","pages":[{"title":"Configure","href":"/docs/webhooks/configure"},{"title":"Webhook Types","href":"/docs/webhooks/webhook-types"}]},{"group":"Sandbox","pages":[{"title":"Test Payment Methods","href":"/docs/sandbox/test-payment-methods"}]}]},{"tab":"hosted-fields.js","pages":[{"title":"hosted-fields.js","href":"/hosted-fields-js/overview"}]},{"tab":"onboarding.js","pages":[{"title":"onboarding.js","href":"/onboarding-js/overview"}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/legal-wave"}]},{"tab":"Migrations","pages":[{"title":"Migrations","href":"/migrations/voids-and-refunds-migration"}]},{"tab":"Upcoming Changes","pages":[{"title":"Upcoming Changes","href":"/upcoming-changes/firm-declined-status"}]},{"tab":"Salesforce","pages":[{"title":"Salesforce","href":"/salesforce/overview"}]}]},"basePath":"","title":"Create a Public Token - Confido Legal Docs","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":[],"chunks":[]}