{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API Key",
"request_id": "req_example",
"suggested_action": "Send an API key in X-API-Key, or an OAuth access token as Authorization: Bearer. Refresh an expired access token.",
"documentation_url": "https://entendre.ai/docs/get-started/authentication"
}
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API Key",
"request_id": "req_example",
"suggested_action": "Send an API key in X-API-Key, or an OAuth access token as Authorization: Bearer. Refresh an expired access token.",
"documentation_url": "https://entendre.ai/docs/get-started/authentication"
}
}
The stored document. If the document is stored but cannot be read back, data holds only id, document_type and summary; read the Location URL for the rest.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Entendre Docs","description":"Documentation for the Entendre Unified API and MCP server: accounting, treasury and documents for crypto and fiat finance teams.","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/entendre/iLG_yPYNFEzW9piO/logo.svg?fit=max\u0026auto=format\u0026n=iLG_yPYNFEzW9piO\u0026q=85\u0026s=e7ab9f91191f7aa74918c227c0675fc6","dark":"https://mintcdn.com/entendre/iLG_yPYNFEzW9piO/logo.svg?fit=max\u0026auto=format\u0026n=iLG_yPYNFEzW9piO\u0026q=85\u0026s=e7ab9f91191f7aa74918c227c0675fc6"},"favicon":"https://mintcdn.com/entendre/4Vx5A6rF_dhHssvv/favicon.ico?fit=max\u0026auto=format\u0026n=4Vx5A6rF_dhHssvv\u0026q=85\u0026s=35f0090147c1f9afbde9638b91c7cd74","api":{"params":{"expanded":"closed"},"playground":{"display":"simple"},"examples":{"defaults":"required","languages":["bash","javascript","python"],"prefill":true}},"navbar":{"primary":{"type":"button","label":"Sign in","href":"https://app.entendre.finance"}},"footer":{"socials":{"x":"https://x.com/entendreai","website":"https://entendre.ai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"entendre","hasAudioNarration":false,"actualSubdomain":"entendre","customDomains":["entendre.ai"],"gitSource":{"type":"github","owner":"entendrefinance","repo":"monorepo","deployBranch":"master","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af4a1deb7449631187b152a","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Reference","count":123},{"language":"default","tag":"Core","count":41},{"language":"default","tag":"Accounting","count":26},{"language":"default","tag":"Agents","count":19},{"language":"default","tag":"Firms","count":17},{"language":"default","tag":"Integrations","count":16},{"language":"default","tag":"Cash Application","count":10},{"language":"default","tag":"GL Mapping","count":10},{"language":"default","tag":"Reporting","count":10},{"language":"default","tag":"Journals","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","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":[{"filePath":"style.css","content":".entendre-body-collapsed>:not(.api-section-heading){display:none}.entendre-body-toggle{margin-left:0.75rem;padding:0.25rem 0.5rem;border:1px solid currentColor;border-radius:0.375rem;background:transparent;color:inherit;font:inherit;font-size:0.75rem;cursor:pointer;white-space:nowrap}.entendre-body-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}#topbar-cta-button svg{display:none}#topbar-cta-button a{padding-right:0.75rem}"}],"page":{"pagePath":"api-reference/core/documents/upload-document","slug":"/api-reference/core/documents/upload-document","pageMetadata":{"authority":"canonical","as-of":"2026-09-25T00:00:00.000Z","owner":"amr","title":"Upload document","description":"Uploads a base64-encoded file and returns its document ID and extracted summary.","openapi":"openapi-public-preview.json POST /v1/vault/documents","href":"/api-reference/core/documents/upload-document"},"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: \"Uploads a base64-encoded file and returns its document ID and extracted summary.\"\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`,..._provideComponents(),...props.components},{Warning}=_components;if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Requires `,_jsx(_components.code,{children:`write:vault`}),` and an `,_jsx(_components.a,{href:`/get-started/authentication#api-key-owner`,children:`API key with an owner`}),`. Entendre classifies the document.`]}),`\n`,_jsx(Warning,{children:`A bill can also post a journal entry. Upload only files that you intend to store and process.`})]})}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":{"authority":"canonical","as-of":"2026-09-25T00:00:00.000Z","owner":"amr","title":"Upload document","description":"Uploads a base64-encoded file and returns its document ID and extracted summary.","openapi":"openapi-public-preview.json POST /v1/vault/documents","href":"/api-reference/core/documents/upload-document"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/entendre/f23b26253e1cc75d/request-body.js"],"openApiReferenceData":{"operation":{"operationId":"upload_document","summary":"Upload document","description":"Uploads a base64-encoded file and returns its document ID and extracted summary.","tags":["Documents"],"parameters":["3bd418ee-5c7b-42da-9ed7-3a2a29c0adcf"],"responses":{"201":"2cbb10c0-05d5-4acc-9e73-3785bf066660","400":"1661bfb1-0910-4399-a53c-7cb512d3fbdb","401":"d6574517-3ced-4185-8843-f9c44c296276","403":"3705642a-d180-4744-a8df-cb59b991c22a","404":"142cf9cf-16d0-4cad-882e-609ca258c1c1","409":"9f9bf1c2-450a-43a5-92a8-fbc8a579a9e2","429":"e0fea58e-b975-49fa-beb2-a2aa1716227e","500":"d51b49c6-9fa6-4bd4-99a9-a47dbcdc0089","503":"a5a432e8-8852-4911-8091-3f73bdc1d870"},"x-product":"Core","x-access-class":"write","requestBody":"68facb33-34c5-4d36-9136-e9366882599a","method":"post","type":"path","servers":["9e59403a-73c1-494e-9818-59dd36bdbfad"],"security":["1fe0c3f6-35d9-41d2-ac91-13356ced44bb"],"path":"/v1/vault/documents","baseUrlOptions":["https://api.entendre.finance"],"title":"Upload document","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.filename":"note.txt","body.base64":"SGVsbG8="}]},"dependencies":{"parameters":{"3bd418ee-5c7b-42da-9ed7-3a2a29c0adcf":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional retry key. Check X-Idempotency-Applied before relying on replay protection.","schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":false,"description":"Optional retry key. Check X-Idempotency-Applied before relying on replay protection.","uniqueKey":"","typeLabel":"string"},"example":"example-operation-2026-08-31-001"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["filename","base64"],"properties":{"filename":{"type":"string","minLength":1,"maxLength":255,"description":"File name, including the extension.","isRequired":true,"uniqueKey":"filename","typeLabel":"string"},"base64":{"type":"string","minLength":1,"description":"Base64-encoded file contents. The base64 string is capped at 14 MB (~10.5 MB decoded).","maxLength":14680064,"isRequired":true,"uniqueKey":"base64","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"filename":"note.txt","base64":"SGVsbG8="},"examples":{"Example":{"title":"Example","value":{"filename":"note.txt","base64":"SGVsbG8="}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"2cbb10c0-05d5-4acc-9e73-3785bf066660":{"description":"Uploaded document.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","description":"The stored document. If the document is stored but cannot be read back, `data` holds only `id`, `document_type` and `summary`; read the `Location` URL for the rest.","properties":{"id":{"type":"string","example":"doc_b1d4f6e0","description":"Document ID (`doc_…`).","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"organization_id":{"type":"string","example":"org_123","description":"Organization ID (`org_…`).","isRequired":true,"uniqueKey":"data.organization_id","typeLabel":"string"},"document_type":{"type":"string","enum":["bill","receipt","statement","other"],"description":"Document type. Stored types other than bill, receipt and statement are returned as `other`.","isRequired":true,"uniqueKey":"data.document_type","typeLabel":"enum\u003cstring>"},"filename":{"type":"string","description":"Display filename. Renaming changes the name only, not the stored file.","isRequired":true,"uniqueKey":"data.filename","typeLabel":"string"},"document_source":{"type":"string","description":"How the document was added, such as upload or email.","uniqueKey":"data.document_source","typeLabel":"string"},"file_directory":{"oneOf":[{"type":"string","description":"Folder of the document.","uniqueKey":"data.file_directory.oneOf.0","typeLabel":"string"},{"type":"null","description":"Folder of the document.","uniqueKey":"data.file_directory.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.file_directory","typeLabel":"string | null"},"file_size":{"type":"integer","description":"File size in bytes.","uniqueKey":"data.file_size","typeLabel":"integer"},"original_filename":{"oneOf":[{"type":"string","description":"File name at upload.","uniqueKey":"data.original_filename.oneOf.0","typeLabel":"string"},{"type":"null","description":"File name at upload.","uniqueKey":"data.original_filename.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.original_filename","typeLabel":"string | null"},"file_extension":{"type":"string","description":"File extension, such as `pdf`.","uniqueKey":"data.file_extension","typeLabel":"string"},"summary":{"oneOf":[{"type":"string","description":"Summary of the document content.","uniqueKey":"data.summary.oneOf.0","typeLabel":"string"},{"type":"null","description":"Summary of the document content.","uniqueKey":"data.summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.summary","typeLabel":"string | null"},"hash_sum":{"oneOf":[{"type":"string","description":"Hash of the file content.","uniqueKey":"data.hash_sum.oneOf.0","typeLabel":"string"},{"type":"null","description":"Hash of the file content.","uniqueKey":"data.hash_sum.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.hash_sum","typeLabel":"string | null"},"confidence_level":{"oneOf":[{"type":"number","description":"Confidence of the document classification, from 0 to 1.","uniqueKey":"data.confidence_level.oneOf.0","typeLabel":"number"},{"type":"null","description":"Confidence of the document classification, from 0 to 1.","uniqueKey":"data.confidence_level.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.confidence_level","typeLabel":"number | null"},"language":{"oneOf":[{"type":"string","description":"Document language.","uniqueKey":"data.language.oneOf.0","typeLabel":"string"},{"type":"null","description":"Document language.","uniqueKey":"data.language.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.language","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"string","description":"Time the document was created (ISO 8601).","uniqueKey":"data.created_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Time the document was created (ISO 8601).","uniqueKey":"data.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.created_at","typeLabel":"string | null"},"deleted_at":{"oneOf":[{"type":"string","description":"Time the document was deleted, or `null`.","uniqueKey":"data.deleted_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Time the document was deleted, or `null`.","uniqueKey":"data.deleted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.deleted_at","typeLabel":"string | null"},"signed_url":{"type":"string","description":"Short-lived URL to display the document inline, when permitted. Use download_url to save it.","uniqueKey":"data.signed_url","typeLabel":"string"},"download_url":{"type":"string","description":"Short-lived URL to download the document as an attachment, when permitted. signed_url_expires_at applies to both URLs.","uniqueKey":"data.download_url","typeLabel":"string"},"signed_url_expires_at":{"type":"string","description":"Expiry time for signed_url and download_url.","format":"date-time","uniqueKey":"data.signed_url_expires_at","typeLabel":"string\u003cdate-time>"},"bill":{"oneOf":[{"type":"object","description":"The bill of a bill document. Present with `expand=bill`; null when the document has none.","properties":{"id":{"type":"string","example":"bil_abc123","description":"Bill ID (`bil_…`).","uniqueKey":"data.bill.oneOf.0.id","typeLabel":"string"},"organization_id":{"oneOf":[{"type":"string","description":"Organization ID (`org_…`).","uniqueKey":"data.bill.oneOf.0.organization_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Organization ID (`org_…`).","uniqueKey":"data.bill.oneOf.0.organization_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.organization_id","typeLabel":"string | null"},"document_id":{"oneOf":[{"type":"string","description":"Document ID (`doc_…`).","uniqueKey":"data.bill.oneOf.0.document_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Document ID (`doc_…`).","uniqueKey":"data.bill.oneOf.0.document_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.document_id","typeLabel":"string | null"},"vendor_id":{"oneOf":[{"type":"string","description":"Vendor ID (`vnd_…`).","uniqueKey":"data.bill.oneOf.0.vendor_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Vendor ID (`vnd_…`).","uniqueKey":"data.bill.oneOf.0.vendor_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.vendor_id","typeLabel":"string | null"},"bill_number":{"oneOf":[{"type":"string","description":"Bill number.","uniqueKey":"data.bill.oneOf.0.bill_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Bill number.","uniqueKey":"data.bill.oneOf.0.bill_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.bill_number","typeLabel":"string | null"},"bill_date":{"oneOf":[{"type":"string","description":"Bill date.","uniqueKey":"data.bill.oneOf.0.bill_date.oneOf.0","typeLabel":"string"},{"type":"null","description":"Bill date.","uniqueKey":"data.bill.oneOf.0.bill_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.bill_date","typeLabel":"string | null"},"due_date":{"oneOf":[{"type":"string","description":"Due date.","uniqueKey":"data.bill.oneOf.0.due_date.oneOf.0","typeLabel":"string"},{"type":"null","description":"Due date.","uniqueKey":"data.bill.oneOf.0.due_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.due_date","typeLabel":"string | null"},"billing_period_start":{"oneOf":[{"type":"string","description":"Start of the billing period.","uniqueKey":"data.bill.oneOf.0.billing_period_start.oneOf.0","typeLabel":"string"},{"type":"null","description":"Start of the billing period.","uniqueKey":"data.bill.oneOf.0.billing_period_start.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.billing_period_start","typeLabel":"string | null"},"billing_period_end":{"oneOf":[{"type":"string","description":"End of the billing period.","uniqueKey":"data.bill.oneOf.0.billing_period_end.oneOf.0","typeLabel":"string"},{"type":"null","description":"End of the billing period.","uniqueKey":"data.bill.oneOf.0.billing_period_end.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.billing_period_end","typeLabel":"string | null"},"currency":{"oneOf":[{"type":"string","description":"Bill currency.","uniqueKey":"data.bill.oneOf.0.currency.oneOf.0","typeLabel":"string"},{"type":"null","description":"Bill currency.","uniqueKey":"data.bill.oneOf.0.currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.currency","typeLabel":"string | null"},"total_amount":{"oneOf":[{"type":"string","description":"Bill total (decimal string).","uniqueKey":"data.bill.oneOf.0.total_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Bill total (decimal string).","uniqueKey":"data.bill.oneOf.0.total_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.total_amount","typeLabel":"string | null"},"tax_amount":{"oneOf":[{"type":"string","description":"Tax amount (decimal string).","uniqueKey":"data.bill.oneOf.0.tax_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax amount (decimal string).","uniqueKey":"data.bill.oneOf.0.tax_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.tax_amount","typeLabel":"string | null"},"tax_rate":{"oneOf":[{"type":"string","description":"Tax rate.","uniqueKey":"data.bill.oneOf.0.tax_rate.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax rate.","uniqueKey":"data.bill.oneOf.0.tax_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.tax_rate","typeLabel":"string | null"},"tax_type":{"oneOf":[{"type":"string","description":"Tax type, such as VAT.","uniqueKey":"data.bill.oneOf.0.tax_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax type, such as VAT.","uniqueKey":"data.bill.oneOf.0.tax_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.tax_type","typeLabel":"string | null"},"line_items":{"description":"Line items as extracted from the document.","uniqueKey":"data.bill.oneOf.0.line_items","typeLabel":"any"},"payment_instructions":{"description":"Payment instructions as extracted from the document.","uniqueKey":"data.bill.oneOf.0.payment_instructions","typeLabel":"any"},"notes":{"oneOf":[{"type":"string","description":"Notes.","uniqueKey":"data.bill.oneOf.0.notes.oneOf.0","typeLabel":"string"},{"type":"null","description":"Notes.","uniqueKey":"data.bill.oneOf.0.notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.notes","typeLabel":"string | null"},"external_bill_id":{"oneOf":[{"type":"string","description":"Bill ID in the external system.","uniqueKey":"data.bill.oneOf.0.external_bill_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Bill ID in the external system.","uniqueKey":"data.bill.oneOf.0.external_bill_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.external_bill_id","typeLabel":"string | null"},"external_bill_source":{"oneOf":[{"type":"string","description":"External system of the bill.","uniqueKey":"data.bill.oneOf.0.external_bill_source.oneOf.0","typeLabel":"string"},{"type":"null","description":"External system of the bill.","uniqueKey":"data.bill.oneOf.0.external_bill_source.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.external_bill_source","typeLabel":"string | null"},"is_accrued":{"type":"boolean","description":"`true` when the bill is accrued.","uniqueKey":"data.bill.oneOf.0.is_accrued","typeLabel":"boolean"},"gl_reference":{"oneOf":[{"type":"string","description":"Reference in the general ledger.","uniqueKey":"data.bill.oneOf.0.gl_reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference in the general ledger.","uniqueKey":"data.bill.oneOf.0.gl_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.gl_reference","typeLabel":"string | null"},"gl_sync_status":{"oneOf":[{"type":"string","description":"Sync status with the general ledger.","uniqueKey":"data.bill.oneOf.0.gl_sync_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"Sync status with the general ledger.","uniqueKey":"data.bill.oneOf.0.gl_sync_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.gl_sync_status","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"string","description":"Time the bill was created (ISO 8601).","uniqueKey":"data.bill.oneOf.0.created_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Time the bill was created (ISO 8601).","uniqueKey":"data.bill.oneOf.0.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill.oneOf.0.created_at","typeLabel":"string | null"}},"uniqueKey":"data.bill.oneOf.0","typeLabel":"object"},{"type":"null","description":"The bill of a bill document. Present with `expand=bill`; null when the document has none.","uniqueKey":"data.bill.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bill","typeLabel":"object | null"},"receipt":{"oneOf":[{"type":"object","description":"The receipt of a receipt document. Present with `expand=receipt`; null when the document has none.","properties":{"id":{"type":"string","example":"rct_abc123","description":"Receipt ID (`rct_…`).","uniqueKey":"data.receipt.oneOf.0.id","typeLabel":"string"},"organization_id":{"oneOf":[{"type":"string","description":"Organization ID (`org_…`).","uniqueKey":"data.receipt.oneOf.0.organization_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Organization ID (`org_…`).","uniqueKey":"data.receipt.oneOf.0.organization_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.organization_id","typeLabel":"string | null"},"document_id":{"oneOf":[{"type":"string","description":"Document ID (`doc_…`).","uniqueKey":"data.receipt.oneOf.0.document_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Document ID (`doc_…`).","uniqueKey":"data.receipt.oneOf.0.document_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.document_id","typeLabel":"string | null"},"vendor_id":{"oneOf":[{"type":"string","description":"Vendor ID (`vnd_…`).","uniqueKey":"data.receipt.oneOf.0.vendor_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Vendor ID (`vnd_…`).","uniqueKey":"data.receipt.oneOf.0.vendor_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.vendor_id","typeLabel":"string | null"},"receipt_number":{"oneOf":[{"type":"string","description":"Receipt number.","uniqueKey":"data.receipt.oneOf.0.receipt_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Receipt number.","uniqueKey":"data.receipt.oneOf.0.receipt_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.receipt_number","typeLabel":"string | null"},"invoice_number":{"oneOf":[{"type":"string","description":"Invoice number on the receipt.","uniqueKey":"data.receipt.oneOf.0.invoice_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Invoice number on the receipt.","uniqueKey":"data.receipt.oneOf.0.invoice_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.invoice_number","typeLabel":"string | null"},"receipt_date":{"oneOf":[{"type":"string","description":"Receipt date.","uniqueKey":"data.receipt.oneOf.0.receipt_date.oneOf.0","typeLabel":"string"},{"type":"null","description":"Receipt date.","uniqueKey":"data.receipt.oneOf.0.receipt_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.receipt_date","typeLabel":"string | null"},"currency":{"oneOf":[{"type":"string","description":"Receipt currency.","uniqueKey":"data.receipt.oneOf.0.currency.oneOf.0","typeLabel":"string"},{"type":"null","description":"Receipt currency.","uniqueKey":"data.receipt.oneOf.0.currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.currency","typeLabel":"string | null"},"total_amount":{"oneOf":[{"type":"string","description":"Receipt total (decimal string).","uniqueKey":"data.receipt.oneOf.0.total_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Receipt total (decimal string).","uniqueKey":"data.receipt.oneOf.0.total_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.total_amount","typeLabel":"string | null"},"subtotal_amount":{"oneOf":[{"type":"string","description":"Total before tax (decimal string).","uniqueKey":"data.receipt.oneOf.0.subtotal_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Total before tax (decimal string).","uniqueKey":"data.receipt.oneOf.0.subtotal_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.subtotal_amount","typeLabel":"string | null"},"tax_amount":{"oneOf":[{"type":"string","description":"Tax amount (decimal string).","uniqueKey":"data.receipt.oneOf.0.tax_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax amount (decimal string).","uniqueKey":"data.receipt.oneOf.0.tax_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.tax_amount","typeLabel":"string | null"},"tax_rate":{"oneOf":[{"type":"string","description":"Tax rate.","uniqueKey":"data.receipt.oneOf.0.tax_rate.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax rate.","uniqueKey":"data.receipt.oneOf.0.tax_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.tax_rate","typeLabel":"string | null"},"tax_type":{"oneOf":[{"type":"string","description":"Tax type, such as VAT.","uniqueKey":"data.receipt.oneOf.0.tax_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax type, such as VAT.","uniqueKey":"data.receipt.oneOf.0.tax_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.tax_type","typeLabel":"string | null"},"line_items":{"description":"Line items as extracted from the document.","uniqueKey":"data.receipt.oneOf.0.line_items","typeLabel":"any"},"payment_method":{"oneOf":[{"type":"string","description":"Payment method.","uniqueKey":"data.receipt.oneOf.0.payment_method.oneOf.0","typeLabel":"string"},{"type":"null","description":"Payment method.","uniqueKey":"data.receipt.oneOf.0.payment_method.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.payment_method","typeLabel":"string | null"},"notes":{"oneOf":[{"type":"string","description":"Notes.","uniqueKey":"data.receipt.oneOf.0.notes.oneOf.0","typeLabel":"string"},{"type":"null","description":"Notes.","uniqueKey":"data.receipt.oneOf.0.notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.notes","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"string","description":"Time the receipt was created (ISO 8601).","uniqueKey":"data.receipt.oneOf.0.created_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Time the receipt was created (ISO 8601).","uniqueKey":"data.receipt.oneOf.0.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt.oneOf.0.created_at","typeLabel":"string | null"}},"uniqueKey":"data.receipt.oneOf.0","typeLabel":"object"},{"type":"null","description":"The receipt of a receipt document. Present with `expand=receipt`; null when the document has none.","uniqueKey":"data.receipt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.receipt","typeLabel":"object | null"},"vendor":{"oneOf":[{"type":"object","description":"The vendor of the bill or receipt. Present with `expand=vendor`; null when there is none.","properties":{"id":{"type":"string","example":"vnd_abc123","description":"Vendor ID (`vnd_…`).","uniqueKey":"data.vendor.oneOf.0.id","typeLabel":"string"},"organization_id":{"oneOf":[{"type":"string","description":"Organization ID (`org_…`).","uniqueKey":"data.vendor.oneOf.0.organization_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Organization ID (`org_…`).","uniqueKey":"data.vendor.oneOf.0.organization_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.organization_id","typeLabel":"string | null"},"name":{"type":"string","description":"Vendor name.","uniqueKey":"data.vendor.oneOf.0.name","typeLabel":"string"},"website_url":{"oneOf":[{"type":"string","description":"Vendor website.","uniqueKey":"data.vendor.oneOf.0.website_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Vendor website.","uniqueKey":"data.vendor.oneOf.0.website_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.website_url","typeLabel":"string | null"},"is_ramp_managed":{"type":"boolean","description":"`true` when Ramp manages the vendor.","uniqueKey":"data.vendor.oneOf.0.is_ramp_managed","typeLabel":"boolean"},"is_ap_vendor":{"type":"boolean","description":"`true` for an accounts-payable vendor.","uniqueKey":"data.vendor.oneOf.0.is_ap_vendor","typeLabel":"boolean"},"default_gl_account":{"oneOf":[{"type":"string","description":"Default account in the general ledger.","uniqueKey":"data.vendor.oneOf.0.default_gl_account.oneOf.0","typeLabel":"string"},{"type":"null","description":"Default account in the general ledger.","uniqueKey":"data.vendor.oneOf.0.default_gl_account.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.default_gl_account","typeLabel":"string | null"},"payment_terms":{"oneOf":[{"type":"string","description":"Payment terms.","uniqueKey":"data.vendor.oneOf.0.payment_terms.oneOf.0","typeLabel":"string"},{"type":"null","description":"Payment terms.","uniqueKey":"data.vendor.oneOf.0.payment_terms.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.payment_terms","typeLabel":"string | null"},"external_vendor_id":{"oneOf":[{"type":"string","description":"Vendor ID in the general ledger.","uniqueKey":"data.vendor.oneOf.0.external_vendor_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Vendor ID in the general ledger.","uniqueKey":"data.vendor.oneOf.0.external_vendor_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.external_vendor_id","typeLabel":"string | null"},"gl_type":{"oneOf":[{"type":"string","description":"General-ledger provider.","uniqueKey":"data.vendor.oneOf.0.gl_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"General-ledger provider.","uniqueKey":"data.vendor.oneOf.0.gl_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.gl_type","typeLabel":"string | null"},"realm_id":{"oneOf":[{"type":"string","description":"Company ID in the general ledger.","uniqueKey":"data.vendor.oneOf.0.realm_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Company ID in the general ledger.","uniqueKey":"data.vendor.oneOf.0.realm_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.realm_id","typeLabel":"string | null"},"default_expense_account_id":{"oneOf":[{"type":"string","description":"Internal id of the default expense ledger account. Updates accept this id or the `lac_…` form.","uniqueKey":"data.vendor.oneOf.0.default_expense_account_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal id of the default expense ledger account. Updates accept this id or the `lac_…` form.","uniqueKey":"data.vendor.oneOf.0.default_expense_account_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.default_expense_account_id","typeLabel":"string | null"},"last_gl_sync":{"oneOf":[{"type":"string","description":"Last sync with the general ledger.","uniqueKey":"data.vendor.oneOf.0.last_gl_sync.oneOf.0","typeLabel":"string"},{"type":"null","description":"Last sync with the general ledger.","uniqueKey":"data.vendor.oneOf.0.last_gl_sync.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.last_gl_sync","typeLabel":"string | null"},"gl_sync_status":{"oneOf":[{"type":"string","description":"Sync status with the general ledger.","uniqueKey":"data.vendor.oneOf.0.gl_sync_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"Sync status with the general ledger.","uniqueKey":"data.vendor.oneOf.0.gl_sync_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.gl_sync_status","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"string","description":"Time the vendor was created (ISO 8601).","uniqueKey":"data.vendor.oneOf.0.created_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Time the vendor was created (ISO 8601).","uniqueKey":"data.vendor.oneOf.0.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.created_at","typeLabel":"string | null"},"files_count":{"type":"integer","description":"In list responses only.","uniqueKey":"data.vendor.oneOf.0.files_count","typeLabel":"integer"},"total_bills_amount":{"oneOf":[{"type":"string","description":"Total of the vendor bills (decimal string). In list responses only.","uniqueKey":"data.vendor.oneOf.0.total_bills_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Total of the vendor bills (decimal string). In list responses only.","uniqueKey":"data.vendor.oneOf.0.total_bills_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.total_bills_amount","typeLabel":"string | null"},"total_bills_currency":{"oneOf":[{"type":"string","description":"The currency of the bills in total_bills_amount; null when the vendor has no bill.","uniqueKey":"data.vendor.oneOf.0.total_bills_currency.oneOf.0","typeLabel":"string"},{"type":"null","description":"The currency of the bills in total_bills_amount; null when the vendor has no bill.","uniqueKey":"data.vendor.oneOf.0.total_bills_currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor.oneOf.0.total_bills_currency","typeLabel":"string | null"}},"uniqueKey":"data.vendor.oneOf.0","typeLabel":"object"},{"type":"null","description":"The vendor of the bill or receipt. Present with `expand=vendor`; null when there is none.","uniqueKey":"data.vendor.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vendor","typeLabel":"object | null"},"statement":{"oneOf":[{"type":"object","description":"The bank statement of a statement document. Present with `expand=statement`; null when there is none.","properties":{"id":{"type":"string","example":"bnk_abc123","description":"Bank statement ID (`bnk_…`).","uniqueKey":"data.statement.oneOf.0.id","typeLabel":"string"},"document_id":{"oneOf":[{"type":"string","description":"Document ID (`doc_…`).","uniqueKey":"data.statement.oneOf.0.document_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Document ID (`doc_…`).","uniqueKey":"data.statement.oneOf.0.document_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.document_id","typeLabel":"string | null"},"organization_id":{"oneOf":[{"type":"string","description":"Organization ID (`org_…`).","uniqueKey":"data.statement.oneOf.0.organization_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Organization ID (`org_…`).","uniqueKey":"data.statement.oneOf.0.organization_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.organization_id","typeLabel":"string | null"},"bank_name":{"oneOf":[{"type":"string","description":"Bank name.","uniqueKey":"data.statement.oneOf.0.bank_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Bank name.","uniqueKey":"data.statement.oneOf.0.bank_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.bank_name","typeLabel":"string | null"},"account_number":{"oneOf":[{"type":"string","description":"Account number.","uniqueKey":"data.statement.oneOf.0.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number.","uniqueKey":"data.statement.oneOf.0.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.account_number","typeLabel":"string | null"},"account_number_last_four":{"oneOf":[{"type":"string","description":"Last four digits of the account number.","uniqueKey":"data.statement.oneOf.0.account_number_last_four.oneOf.0","typeLabel":"string"},{"type":"null","description":"Last four digits of the account number.","uniqueKey":"data.statement.oneOf.0.account_number_last_four.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.account_number_last_four","typeLabel":"string | null"},"account_name":{"oneOf":[{"type":"string","description":"Account name.","uniqueKey":"data.statement.oneOf.0.account_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account name.","uniqueKey":"data.statement.oneOf.0.account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.account_name","typeLabel":"string | null"},"linked_account_id":{"oneOf":[{"type":"string","description":"Source selected for statement imports, using the same public ID as the document source_id.","uniqueKey":"data.statement.oneOf.0.linked_account_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Source selected for statement imports, using the same public ID as the document source_id.","uniqueKey":"data.statement.oneOf.0.linked_account_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.linked_account_id","typeLabel":"string | null"},"statement_date":{"oneOf":[{"type":"string","description":"Statement date.","uniqueKey":"data.statement.oneOf.0.statement_date.oneOf.0","typeLabel":"string"},{"type":"null","description":"Statement date.","uniqueKey":"data.statement.oneOf.0.statement_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.statement_date","typeLabel":"string | null"},"period_start":{"oneOf":[{"type":"string","description":"Start of the statement period.","uniqueKey":"data.statement.oneOf.0.period_start.oneOf.0","typeLabel":"string"},{"type":"null","description":"Start of the statement period.","uniqueKey":"data.statement.oneOf.0.period_start.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.period_start","typeLabel":"string | null"},"period_end":{"oneOf":[{"type":"string","description":"End of the statement period.","uniqueKey":"data.statement.oneOf.0.period_end.oneOf.0","typeLabel":"string"},{"type":"null","description":"End of the statement period.","uniqueKey":"data.statement.oneOf.0.period_end.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.period_end","typeLabel":"string | null"},"opening_balance":{"oneOf":[{"type":"string","description":"Opening balance (decimal string).","uniqueKey":"data.statement.oneOf.0.opening_balance.oneOf.0","typeLabel":"string"},{"type":"null","description":"Opening balance (decimal string).","uniqueKey":"data.statement.oneOf.0.opening_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.opening_balance","typeLabel":"string | null"},"closing_balance":{"oneOf":[{"type":"string","description":"Closing balance (decimal string).","uniqueKey":"data.statement.oneOf.0.closing_balance.oneOf.0","typeLabel":"string"},{"type":"null","description":"Closing balance (decimal string).","uniqueKey":"data.statement.oneOf.0.closing_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.closing_balance","typeLabel":"string | null"},"currency":{"type":"string","description":"Statement currency.","uniqueKey":"data.statement.oneOf.0.currency","typeLabel":"string"},"account_category":{"type":"string","description":"Account category, such as bank or exchange.","uniqueKey":"data.statement.oneOf.0.account_category","typeLabel":"string"},"reconciliation_status":{"type":"string","enum":["not_reconciled","reconciled"],"readOnly":true,"description":"Statement reconciliation state maintained by import and dashboard workflows. This is separate from import job completion.","uniqueKey":"data.statement.oneOf.0.reconciliation_status","typeLabel":"enum\u003cstring>"},"transactions_count":{"oneOf":[{"type":"integer","description":"Number of extracted lines.","uniqueKey":"data.statement.oneOf.0.transactions_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of extracted lines.","uniqueKey":"data.statement.oneOf.0.transactions_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.transactions_count","typeLabel":"integer | null"},"expected_transaction_count":{"oneOf":[{"type":"integer","description":"How many activity rows the source document prints, counted from the PDF itself rather than from the extraction. Null when no verdict could be reached.","uniqueKey":"data.statement.oneOf.0.expected_transaction_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"How many activity rows the source document prints, counted from the PDF itself rather than from the extraction. Null when no verdict could be reached.","uniqueKey":"data.statement.oneOf.0.expected_transaction_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.expected_transaction_count","typeLabel":"integer | null"},"extraction_completeness":{"type":"string","enum":["complete","incomplete","unknown","not_applicable"],"description":"Whether the extracted lines match the document. `not_applicable` for a file with nothing to check against, such as a CSV.","uniqueKey":"data.statement.oneOf.0.extraction_completeness","typeLabel":"enum\u003cstring>"},"extraction_completeness_detail":{"oneOf":[{"type":"object","description":"Counts of expected, missing and unexpected lines. The reason `legacy_pre_feature` means the check did not run.","properties":{"reason":{"type":"string","description":"Why completeness has its value.","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.reason","typeLabel":"string"},"missing_count":{"oneOf":[{"type":"integer","description":"Lines in the document that were not extracted.","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.missing_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Lines in the document that were not extracted.","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.missing_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.missing_count","typeLabel":"integer | null"},"unexpected_count":{"oneOf":[{"type":"integer","description":"Extracted lines that the document does not show.","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.unexpected_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Extracted lines that the document does not show.","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.unexpected_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.unexpected_count","typeLabel":"integer | null"},"short_dates":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.short_dates.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Dates with fewer extracted lines than the document shows.","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.short_dates.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Dates with fewer extracted lines than the document shows.","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.short_dates.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.short_dates","typeLabel":"string[] | null"},"repair_outcome":{"oneOf":[{"type":"string","description":"Result of the automatic repair, if one ran.","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.repair_outcome.oneOf.0","typeLabel":"string"},{"type":"null","description":"Result of the automatic repair, if one ran.","uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.repair_outcome.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0.repair_outcome","typeLabel":"string | null"}},"uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.0","typeLabel":"object"},{"type":"null","description":"Counts of expected, missing and unexpected lines. The reason `legacy_pre_feature` means the check did not run.","properties":{"reason":{"type":"string","description":"Why completeness has its value."},"missing_count":{"oneOf":[{"type":"integer","description":"Lines in the document that were not extracted."},{"type":"null","description":"Lines in the document that were not extracted."}]},"unexpected_count":{"oneOf":[{"type":"integer","description":"Extracted lines that the document does not show."},{"type":"null","description":"Extracted lines that the document does not show."}]},"short_dates":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Dates with fewer extracted lines than the document shows."},{"type":"null","items":{"type":"string"},"description":"Dates with fewer extracted lines than the document shows."}]},"repair_outcome":{"oneOf":[{"type":"string","description":"Result of the automatic repair, if one ran."},{"type":"null","description":"Result of the automatic repair, if one ran."}]}},"uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.extraction_completeness_detail","typeLabel":"object | null"},"reconciled_at":{"oneOf":[{"type":"string","readOnly":true,"description":"Recorded reconciliation timestamp, or null when none is recorded.","uniqueKey":"data.statement.oneOf.0.reconciled_at.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Recorded reconciliation timestamp, or null when none is recorded.","uniqueKey":"data.statement.oneOf.0.reconciled_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.reconciled_at","typeLabel":"string | null"},"reconciled_by":{"oneOf":[{"type":"string","readOnly":true,"description":"User ID recorded for reconciliation, or null when no user is recorded.","uniqueKey":"data.statement.oneOf.0.reconciled_by.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"User ID recorded for reconciliation, or null when no user is recorded.","uniqueKey":"data.statement.oneOf.0.reconciled_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.reconciled_by","typeLabel":"string | null"},"notes":{"oneOf":[{"type":"string","description":"Notes.","uniqueKey":"data.statement.oneOf.0.notes.oneOf.0","typeLabel":"string"},{"type":"null","description":"Notes.","uniqueKey":"data.statement.oneOf.0.notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.notes","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"string","description":"Time the bank statement was created (ISO 8601).","uniqueKey":"data.statement.oneOf.0.created_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Time the bank statement was created (ISO 8601).","uniqueKey":"data.statement.oneOf.0.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement.oneOf.0.created_at","typeLabel":"string | null"},"lines":{"type":"object","additionalProperties":false,"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":false,"description":"An extracted statement row for review or import selection. Not an imported transaction.","properties":{"id":{"type":"string","pattern":"^bkl_[A-Za-z0-9-]+$","description":"Statement line ID (`bkl_…`). Use it in `statement_line_ids`.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].id","typeLabel":"string"},"statement_id":{"type":"string","description":"Statement ID (`bnk_…`).","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].statement_id","typeLabel":"string"},"transaction_date":{"type":"string","format":"date","description":"Date of the line.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].transaction_date","typeLabel":"string\u003cdate>"},"description":{"oneOf":[{"type":"string","description":"Description on the statement.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description on the statement.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].description","typeLabel":"string | null"},"amount":{"oneOf":[{"type":"string","pattern":"^-?[0-9]+(?:\\.[0-9]+)?$","description":"Statement amount, not necessarily asset quantity. Null when extraction could not establish it.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].amount.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^-?[0-9]+(?:\\.[0-9]+)?$","description":"Statement amount, not necessarily asset quantity. Null when extraction could not establish it.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].amount","typeLabel":"string | null"},"transaction_type":{"type":"string","enum":["debit","credit"],"description":"`debit` or `credit`.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].transaction_type","typeLabel":"enum\u003cstring>"},"validation_state":{"oneOf":[{"type":"string","description":"`invalid` rows cannot be imported. Null means no validation verdict was stored; it does not exclude the row.","enum":["valid","invalid",null],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].validation_state.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"`invalid` rows cannot be imported. Null means no validation verdict was stored; it does not exclude the row.","enum":["valid","invalid",null],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].validation_state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].validation_state","typeLabel":"enum\u003cstring> | null"},"validation_reasons":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].validation_reasons.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Why the line is invalid.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].validation_reasons.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Why the line is invalid.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].validation_reasons.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].validation_reasons","typeLabel":"string[] | null"},"import_status":{"type":"string","enum":["pending","imported","ignored","duplicate"],"description":"Import status of the line.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].import_status","typeLabel":"enum\u003cstring>"},"imported_transaction_id":{"oneOf":[{"type":"string","description":"Created or matched transaction, when available.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].imported_transaction_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Created or matched transaction, when available.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].imported_transaction_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].imported_transaction_id","typeLabel":"string | null"},"imported_sequence_number":{"oneOf":[{"type":"string","description":"Sequence number of the imported transaction.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].imported_sequence_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Sequence number of the imported transaction.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].imported_sequence_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].imported_sequence_number","typeLabel":"string | null"},"reconciliation_status":{"oneOf":[{"type":"string","description":"Stored row reconciliation state. Import completion does not prove statement completeness.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].reconciliation_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"Stored row reconciliation state. Import completion does not prove statement completeness.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].reconciliation_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].reconciliation_status","typeLabel":"string | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number on the statement.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number on the statement.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].reference_number","typeLabel":"string | null"},"category":{"oneOf":[{"type":"string","description":"Category on the statement.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].category.oneOf.0","typeLabel":"string"},{"type":"null","description":"Category on the statement.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].category.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].category","typeLabel":"string | null"},"counterparty":{"oneOf":[{"type":"string","description":"Counterparty on the statement.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].counterparty.oneOf.0","typeLabel":"string"},{"type":"null","description":"Counterparty on the statement.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].counterparty.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].counterparty","typeLabel":"string | null"},"imported_at":{"oneOf":[{"type":"string","description":"Time the line was imported.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].imported_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Time the line was imported.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].imported_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].imported_at","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"string","description":"Time the statement line was created (ISO 8601).","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].created_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Time the statement line was created (ISO 8601).","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].created_at","typeLabel":"string | null"},"is_reconciled":{"type":"boolean","description":"`true` when the line is reconciled.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX].is_reconciled","typeLabel":"boolean"}},"required":["id","statement_id","transaction_date","description","amount","transaction_type","validation_state","validation_reasons","import_status","imported_transaction_id","imported_sequence_number","reconciliation_status","reference_number","category","counterparty","imported_at","created_at","is_reconciled"],"uniqueKey":"data.statement.oneOf.0.lines.data.items.[INDEX]","typeLabel":"object"},"description":"Lines on this page.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.data","typeLabel":"object[]"},"count":{"type":"integer","minimum":0,"description":"Number of lines that match the filters.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.count","typeLabel":"integer"},"has_more":{"type":"boolean","description":"Whether another page of lines is available.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.has_more","typeLabel":"boolean"},"next_cursor":{"oneOf":[{"type":"string","description":"Pass as `statement_cursor` with the same `document_ids` and `expand`.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.next_cursor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Pass as `statement_cursor` with the same `document_ids` and `expand`.","isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.next_cursor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.statement.oneOf.0.lines.next_cursor","typeLabel":"string | null"}},"required":["data","count","has_more","next_cursor"],"description":"Present only with `expand=statement.lines`. By default, an import takes only pending rows that are not invalid.","uniqueKey":"data.statement.oneOf.0.lines","typeLabel":"object"}},"uniqueKey":"data.statement.oneOf.0","typeLabel":"object"},{"type":"null","description":"The bank statement of a statement document. Present with `expand=statement`; null when there is none.","uniqueKey":"data.statement.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.statement","typeLabel":"object | null"}},"required":["id","organization_id","document_type","filename"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":{"id":"doc_6f31e8c4-41ce-47af-9db7-3ad295a0a601","organization_id":"org_123","document_type":"bill","document_source":"upload","file_directory":"Bills/2026/10","file_size":48213,"filename":"invoice","original_filename":"invoice.pdf","file_extension":"pdf","summary":"Vendor invoice.","hash_sum":null,"confidence_level":0,"language":"en","created_at":"2026-10-19T12:00:00.000Z","deleted_at":null}},"examples":{"Example":{"title":"Example","value":{"data":{"id":"doc_6f31e8c4-41ce-47af-9db7-3ad295a0a601","organization_id":"org_123","document_type":"bill","document_source":"upload","file_directory":"Bills/2026/10","file_size":48213,"filename":"invoice","original_filename":"invoice.pdf","file_extension":"pdf","summary":"Vendor invoice.","hash_sum":null,"confidence_level":0,"language":"en","created_at":"2026-10-19T12:00:00.000Z","deleted_at":null}}}},"exampleType":"examples"}},"headers":{"Location":{"description":"URL to retrieve the created document.","schema":{"type":"string"},"example":"/v1/vault/documents/doc_6f31e8c4-41ce-47af-9db7-3ad295a0a601"}},"exampleType":"examples"},"1661bfb1-0910-4399-a53c-7cb512d3fbdb":{"description":"The request is invalid. `error.fields` lists the fields to correct. Nothing was changed.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"VALIDATION_ERROR","message":"Invalid path, query or request body.","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"Invalid path, query or request body.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d6574517-3ced-4185-8843-f9c44c296276":{"description":"The API key is missing, invalid or expired.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"UNAUTHORIZED","message":"Invalid or expired API Key","request_id":"req_example","suggested_action":"Send an API key in X-API-Key, or an OAuth access token as Authorization: Bearer. Refresh an expired access token.","documentation_url":"https://entendre.ai/docs/get-started/authentication"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"Invalid or expired API Key","request_id":"req_example","suggested_action":"Send an API key in X-API-Key, or an OAuth access token as Authorization: Bearer. Refresh an expired access token.","documentation_url":"https://entendre.ai/docs/get-started/authentication"}}}},"exampleType":"examples"}},"headers":{"WWW-Authenticate":{"description":"Bearer challenge with `realm=\"entendre\"` and `resource_metadata`, the URL of the protected-resource metadata (RFC 9728). `error=\"invalid_token\"` is added when the credential that was sent is invalid or expired.","schema":{"type":"string"}}},"exampleType":"examples"},"3705642a-d180-4744-a8df-cb59b991c22a":{"description":"The API key does not have the required scope or is not associated with a user, or the action needs a review in the dashboard.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"FORBIDDEN","message":"Insufficient access to organization","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"FORBIDDEN","message":"Insufficient access to organization","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"142cf9cf-16d0-4cad-882e-609ca258c1c1":{"description":"The resource does not exist, or your organization cannot access it.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"RESOURCE_NOT_FOUND","message":"Resource not found","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"RESOURCE_NOT_FOUND","message":"Resource not found","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"9f9bf1c2-450a-43a5-92a8-fbc8a579a9e2":{"description":"The current state of the resource or an accounting rule prevents this operation. Read the resource again before you choose another action.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"CONFLICT","message":"The resource state does not allow this operation.","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"CONFLICT","message":"The resource state does not allow this operation.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"e0fea58e-b975-49fa-beb2-a2aa1716227e":{"description":"Too many requests. If the response has a `Retry-After` header, wait that many seconds before you retry. Otherwise, read `error.message`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"RATE_LIMITED","message":"Rate limit exceeded. Retry after 30s.","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"RATE_LIMITED","message":"Rate limit exceeded. Retry after 30s.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d51b49c6-9fa6-4bd4-99a9-a47dbcdc0089":{"description":"An unexpected error occurred. A write can still have taken effect; check the resource before you retry. Give the `request_id` to support.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"a5a432e8-8852-4911-8091-3f73bdc1d870":{"description":"A service that this operation needs is unavailable. If the response has a `Retry-After` header, wait that many seconds. Check for earlier accepted work before you send the request again.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"SERVICE_UNAVAILABLE","message":"Service unavailable.","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"SERVICE_UNAVAILABLE","message":"Service unavailable.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"1fe0c3f6-35d9-41d2-ac91-13356ced44bb":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your organization API key. See [Authentication](/get-started/authentication).","scopes":[],"schemeName":"ApiKey"}}},"servers":{"9e59403a-73c1-494e-9818-59dd36bdbfad":{"url":"https://api.entendre.finance","description":"Production API."}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your organization API key. See [Authentication](/get-started/authentication).","scopes":[],"schemeName":"ApiKey"},"schema":{"title":"X-API-Key","type":"string","description":"Your organization API key. See [Authentication](/get-started/authentication).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"X-API-Key"}],"title":"ApiKey"}]},"originalFileLocation":"openapi-public-preview.json"},"subdomain":"entendre","siteName":"Entendre Docs","title":"Upload document - Entendre Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-29T10:55:44.456Z","originalFileLocation":"api-reference/core/documents/upload-document.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=\"Uploads a base64-encoded file and returns its document ID and extracted summary.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Entendre Docs\">\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/entendre/Mf9zE4F1cDdIJzLg/_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/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_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/entendre/Mf9zE4F1cDdIJzLg/_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/entendre/Mf9zE4F1cDdIJzLg/_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/entendre/Mf9zE4F1cDdIJzLg/_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/entendre/Mf9zE4F1cDdIJzLg/_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/entendre/Mf9zE4F1cDdIJzLg/_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/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload document - Entendre Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Uploads a base64-encoded file and returns its document ID and extracted summary.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Entendre Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://entendre.ai/docs/api-reference/core/documents/upload-document\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://entendre.mintlify.site/docs/_mintlify/api/og/v2?division=Documents\u0026amp;title=Upload+document\u0026amp;description=Uploads+a+base64-encoded+file+and+returns+its+document+ID+and+extracted+summary.\u0026amp;theme=455e3eee472c81219447aa36\u0026amp;signature=458b5687e195509c90043250285b3efa28cf264b39fcbe3725e8e2bb4cac0372\">\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=\"Upload document - Entendre Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Uploads a base64-encoded file and returns its document ID and extracted summary.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://entendre.mintlify.site/docs/_mintlify/api/og/v2?division=Documents\u0026amp;title=Upload+document\u0026amp;description=Uploads+a+base64-encoded+file+and+returns+its+document+ID+and+extracted+summary.\u0026amp;theme=455e3eee472c81219447aa36\u0026amp;signature=458b5687e195509c90043250285b3efa28cf264b39fcbe3725e8e2bb4cac0372\">\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/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Entendre Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://entendre.ai/docs/api-reference/core/documents/upload-document\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/core/documents/upload-document.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://entendre.ai/#organization\",\"name\":\"Entendre Docs\",\"url\":\"https://entendre.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/entendre/iLG_yPYNFEzW9piO/logo.svg?fit=max\u0026auto=format\u0026n=iLG_yPYNFEzW9piO\u0026q=85\u0026s=e7ab9f91191f7aa74918c227c0675fc6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://entendre.ai/docs#website\",\"name\":\"Entendre Docs\",\"url\":\"https://entendre.ai/docs\",\"publisher\":{\"@id\":\"https://entendre.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://entendre.ai/docs/api-reference/core/documents/upload-document#webpage\",\"url\":\"https://entendre.ai/docs/api-reference/core/documents/upload-document\",\"name\":\"Upload document\",\"description\":\"Uploads a base64-encoded file and returns its document ID and extracted summary.\",\"dateModified\":\"2026-09-29T10:55:44.456Z\",\"isPartOf\":{\"@id\":\"https://entendre.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://entendre.ai/docs/api-reference/core/documents/upload-document#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://entendre.ai/docs/api-reference/core/documents/upload-document#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core\",\"item\":\"https://entendre.ai/docs/api-reference/core/organization/get-organization\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documents\",\"item\":\"https://entendre.ai/docs/api-reference/core/documents/list-documents\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Upload document\",\"item\":\"https://entendre.ai/docs/api-reference/core/documents/upload-document\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://entendre.ai/docs/api-reference/core/documents/upload-document#apireference\",\"headline\":\"Upload document\",\"name\":\"Upload document\",\"description\":\"Uploads a base64-encoded file and returns its document ID and extracted summary.\",\"url\":\"https://entendre.ai/docs/api-reference/core/documents/upload-document\",\"mainEntityOfPage\":{\"@id\":\"https://entendre.ai/docs/api-reference/core/documents/upload-document#webpage\"},\"dateModified\":\"2026-09-29T10:55:44.456Z\",\"publisher\":{\"@id\":\"https://entendre.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://entendre.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Entendre Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Entendre Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/core/documents/upload-document.md","siteName":"Entendre Docs","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/get-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"Using the API","pages":[{"title":"Overview","href":"/api-reference/overview"}]},{"group":"Core","pages":[{"group":"Organization","pages":[{"title":"Get organization","openapi":"openapi-public-preview.json GET /v1/organization","href":"/api-reference/core/organization/get-organization"},{"title":"Update organization","openapi":"openapi-public-preview.json PATCH /v1/organization","href":"/api-reference/core/organization/update-organization"},{"title":"List organization members","openapi":"openapi-public-preview.json GET /v1/organization/members","href":"/api-reference/core/organization/list-organization-members"}]},{"group":"Transactions","pages":[{"title":"List transactions","openapi":"openapi-public-preview.json GET /v1/transactions","href":"/api-reference/core/transactions/list-transactions"},{"title":"Create transaction","openapi":"openapi-public-preview.json POST /v1/transactions","href":"/api-reference/core/transactions/create-transaction"},{"title":"Update transaction","openapi":"openapi-public-preview.json PATCH /v1/transactions/{transaction_id}","href":"/api-reference/core/transactions/update-transaction"},{"title":"Delete transaction","openapi":"openapi-public-preview.json DELETE /v1/transactions/{transaction_id}","href":"/api-reference/core/transactions/delete-transaction"}]},{"group":"Sources","pages":[{"title":"List sources","openapi":"openapi-public-preview.json GET /v1/sources","href":"/api-reference/core/sources/list-sources"},{"title":"Create source","openapi":"openapi-public-preview.json POST /v1/sources","href":"/api-reference/core/sources/create-source"},{"title":"Update source","openapi":"openapi-public-preview.json PATCH /v1/sources/{source_id}","href":"/api-reference/core/sources/update-source"},{"title":"Delete source","openapi":"openapi-public-preview.json DELETE /v1/sources/{source_id}","href":"/api-reference/core/sources/delete-source"},{"title":"Import transactions from source","openapi":"openapi-public-preview.json POST /v1/sources/{source_id}/imports","href":"/api-reference/core/sources/import-transactions-from-source"}]},{"group":"Assets","pages":[{"title":"List assets","openapi":"openapi-public-preview.json GET /v1/assets","href":"/api-reference/core/assets/list-assets"},{"title":"Create manual asset","openapi":"openapi-public-preview.json POST /v1/assets","href":"/api-reference/core/assets/create-manual-asset"},{"title":"Update manual asset","openapi":"openapi-public-preview.json PATCH /v1/assets/{asset_id}","href":"/api-reference/core/assets/update-manual-asset"},{"title":"Delete manual asset","openapi":"openapi-public-preview.json DELETE /v1/assets/{asset_id}","href":"/api-reference/core/assets/delete-manual-asset"}]},{"group":"Journals","pages":[{"title":"List journals","openapi":"openapi-public-preview.json GET /v1/journal-entries","href":"/api-reference/core/journals/list-journals"},{"title":"Create journal","openapi":"openapi-public-preview.json POST /v1/journal-entries","href":"/api-reference/core/journals/create-journal"},{"title":"Update journal","openapi":"openapi-public-preview.json PATCH /v1/journal-entries/{journal_id}","href":"/api-reference/core/journals/update-journal"},{"title":"Delete journal","openapi":"openapi-public-preview.json DELETE /v1/journal-entries/{journal_id}","href":"/api-reference/core/journals/delete-journal"},{"title":"Post journal","openapi":"openapi-public-preview.json POST /v1/journal-entries/{journal_id}/post","href":"/api-reference/core/journals/post-journal"},{"title":"Unpost journal","openapi":"openapi-public-preview.json POST /v1/journal-entries/{journal_id}/unpost","href":"/api-reference/core/journals/unpost-journal"},{"title":"Reverse journal","openapi":"openapi-public-preview.json POST /v1/journal-entries/{journal_id}/reverse","href":"/api-reference/core/journals/reverse-journal"},{"title":"Sync journals","openapi":"openapi-public-preview.json POST /v1/journal-entries/syncs","href":"/api-reference/core/journals/sync-journals"},{"title":"List journal sync jobs","openapi":"openapi-public-preview.json GET /v1/journal-entries/syncs","href":"/api-reference/core/journals/list-journal-sync-jobs"}]},{"group":"Documents","pages":[{"title":"List documents","description":"Lists documents, with optional typed details, statement lines and download URLs.","openapi":"openapi-public-preview.json GET /v1/vault/documents","href":"/api-reference/core/documents/list-documents"},{"title":"Upload document","openapi":"openapi-public-preview.json POST /v1/vault/documents","href":"/api-reference/core/documents/upload-document"},{"title":"Update document","description":"Renames a document or moves it to another folder.","openapi":"openapi-public-preview.json PATCH /v1/vault/documents/{document_id}","href":"/api-reference/core/documents/update-document"},{"title":"Delete document","openapi":"openapi-public-preview.json DELETE /v1/vault/documents/{document_id}","href":"/api-reference/core/documents/delete-document"}]},{"group":"Legal Entities","pages":[{"title":"List legal entities","openapi":"openapi-public-preview.json GET /v1/legal-entities","href":"/api-reference/core/legal-entities/list-legal-entities"},{"title":"Create legal entity","openapi":"openapi-public-preview.json POST /v1/legal-entities","href":"/api-reference/core/legal-entities/create-legal-entity"},{"title":"Update legal entity","openapi":"openapi-public-preview.json PATCH /v1/legal-entities/{legal_entity_id}","href":"/api-reference/core/legal-entities/update-legal-entity"},{"title":"Delete legal entity","openapi":"openapi-public-preview.json DELETE /v1/legal-entities/{legal_entity_id}","href":"/api-reference/core/legal-entities/delete-legal-entity"}]},{"group":"Ledger Accounts","pages":[{"title":"List ledger accounts","openapi":"openapi-public-preview.json GET /v1/ledger-accounts","href":"/api-reference/core/ledger-accounts/list-ledger-accounts"},{"title":"Create ledger account","openapi":"openapi-public-preview.json POST /v1/ledger-accounts","href":"/api-reference/core/ledger-accounts/create-ledger-account"},{"title":"Update ledger account","openapi":"openapi-public-preview.json PATCH /v1/ledger-accounts/{ledger_account_id}","href":"/api-reference/core/ledger-accounts/update-ledger-account"},{"title":"Delete ledger account","openapi":"openapi-public-preview.json DELETE /v1/ledger-accounts/{ledger_account_id}","href":"/api-reference/core/ledger-accounts/delete-ledger-account"}]},{"group":"Tags","pages":[{"title":"List tags","openapi":"openapi-public-preview.json GET /v1/tags","href":"/api-reference/core/tags/list-tags"},{"title":"Create tag","openapi":"openapi-public-preview.json POST /v1/tags","href":"/api-reference/core/tags/create-tag"},{"title":"Update tag","openapi":"openapi-public-preview.json PATCH /v1/tags/{tag_id}","href":"/api-reference/core/tags/update-tag"},{"title":"Delete tag","openapi":"openapi-public-preview.json DELETE /v1/tags/{tag_id}","href":"/api-reference/core/tags/delete-tag"}]}]},{"group":"Accounting","pages":[{"group":"Accruals","pages":[{"title":"Find vendors for accruals","openapi":"openapi-public-preview.json GET /v1/vault/vendors","href":"/api-reference/accounting/accruals/find-vendors-for-accruals"},{"title":"List accruals","openapi":"openapi-public-preview.json GET /v1/accruals","href":"/api-reference/accounting/accruals/list-accruals"},{"title":"Post accrual entries","openapi":"openapi-public-preview.json POST /v1/accruals","href":"/api-reference/accounting/accruals/post-accrual-entries"},{"title":"Reverse accrual","openapi":"openapi-public-preview.json POST /v1/accruals/{accrual_id}/reverse","href":"/api-reference/accounting/accruals/reverse-accrual"}]},{"group":"Cash Application","pages":[{"title":"List eligible invoices","openapi":"openapi-public-preview.json GET /v1/cash-applications/invoices","href":"/api-reference/accounting/cash-application/list-eligible-invoices"},{"title":"Refresh Stripe invoice","openapi":"openapi-public-preview.json POST /v1/cash-applications/invoices/refresh","href":"/api-reference/accounting/cash-application/refresh-stripe-invoice"},{"title":"Preview cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/preview","href":"/api-reference/accounting/cash-application/preview-cash-application"},{"title":"List cash applications","openapi":"openapi-public-preview.json GET /v1/cash-applications","href":"/api-reference/accounting/cash-application/list-cash-applications"},{"title":"Create and apply cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications","href":"/api-reference/accounting/cash-application/create-and-apply-cash-application"},{"title":"Update cash application","openapi":"openapi-public-preview.json PATCH /v1/cash-applications/{application_id}","href":"/api-reference/accounting/cash-application/update-cash-application"},{"title":"Apply cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/{application_id}/apply","href":"/api-reference/accounting/cash-application/apply-cash-application"},{"title":"Unapply cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/{application_id}/unapply","href":"/api-reference/accounting/cash-application/unapply-cash-application"},{"title":"Complete cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/{application_id}/complete","href":"/api-reference/accounting/cash-application/complete-cash-application"},{"title":"Void cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/{application_id}/void","href":"/api-reference/accounting/cash-application/void-cash-application"}]},{"group":"Classification","pages":[{"title":"Classify transactions","openapi":"openapi-public-preview.json POST /v1/classifications","href":"/api-reference/accounting/classification/classify-transactions"},{"title":"Get classification status","openapi":"openapi-public-preview.json GET /v1/classifications/{classification_id}","href":"/api-reference/accounting/classification/get-classification"}]},{"group":"Cost Basis","pages":[{"title":"Get cost basis settings","openapi":"openapi-public-preview.json GET /v1/settings/cost-basis","href":"/api-reference/accounting/cost-basis/get-cost-basis-settings"},{"title":"Update cost basis settings","openapi":"openapi-public-preview.json PUT /v1/settings/cost-basis","href":"/api-reference/accounting/cost-basis/update-cost-basis-settings"}]},{"group":"Purpose Accounts","pages":[{"title":"List purpose accounts","openapi":"openapi-public-preview.json GET /v1/organization/purpose-accounts","href":"/api-reference/accounting/purpose-accounts/list-purpose-accounts"},{"title":"Set realized gain or loss account","openapi":"openapi-public-preview.json PUT /v1/organization/purpose-accounts","href":"/api-reference/accounting/purpose-accounts/set-purpose-account"}]},{"group":"Revaluation","pages":[{"title":"List revaluations","openapi":"openapi-public-preview.json GET /v1/revaluations","href":"/api-reference/accounting/revaluation/list-revaluations"},{"title":"Create revaluation","openapi":"openapi-public-preview.json POST /v1/revaluations","href":"/api-reference/accounting/revaluation/create-revaluation"}]},{"group":"Accounting Periods","pages":[{"title":"List accounting periods","openapi":"openapi-public-preview.json GET /v1/accounting-periods","href":"/api-reference/accounting/accounting-periods/list-accounting-periods"},{"title":"Check period readiness","openapi":"openapi-public-preview.json GET /v1/accounting-periods/{period_id}/close-preflight","href":"/api-reference/accounting/accounting-periods/check-period-readiness"},{"title":"Close accounting period","openapi":"openapi-public-preview.json POST /v1/accounting-periods/{period_id}/close","href":"/api-reference/accounting/accounting-periods/close-accounting-period"},{"title":"Reopen accounting period","openapi":"openapi-public-preview.json POST /v1/accounting-periods/{period_id}/reopen","href":"/api-reference/accounting/accounting-periods/reopen-accounting-period"}]}]},{"group":"Reporting","pages":[{"group":"Income Statement","pages":[{"title":"Get income statement","openapi":"openapi-public-preview.json GET /v1/reports/income-statement","href":"/api-reference/reporting/income-statement/get-income-statement"}]},{"group":"Balance Sheet","pages":[{"title":"Get balance sheet","openapi":"openapi-public-preview.json GET /v1/reports/balance-sheet","href":"/api-reference/reporting/balance-sheet/get-balance-sheet"}]},{"group":"Trial Balance","pages":[{"title":"Get trial balance","openapi":"openapi-public-preview.json GET /v1/reports/trial-balance","href":"/api-reference/reporting/trial-balance/get-trial-balance"}]},{"group":"Closing Positions","pages":[{"title":"Get closing positions","openapi":"openapi-public-preview.json GET /v1/reports/closing-positions","href":"/api-reference/reporting/closing-positions/get-closing-positions"}]},{"group":"Treasury Balances","pages":[{"title":"Get treasury balances","openapi":"openapi-public-preview.json GET /v1/reports/treasury-balances","href":"/api-reference/reporting/treasury-balances/get-treasury-balances"},{"title":"Refresh treasury balances","openapi":"openapi-public-preview.json POST /v1/reports/treasury-balances/refresh","href":"/api-reference/reporting/treasury-balances/refresh-treasury-balances"}]},{"group":"Realized Gains \u0026 Losses","pages":[{"title":"Get realized gains \u0026 losses","openapi":"openapi-public-preview.json GET /v1/reports/realized-gains","href":"/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses"}]},{"group":"Asset Tax Lots","pages":[{"title":"Get asset tax lots","openapi":"openapi-public-preview.json GET /v1/reports/asset-tax-lots","href":"/api-reference/reporting/asset-tax-lots/get-asset-tax-lots"}]},{"group":"Schedule of Dispositions","pages":[{"title":"Get schedule of dispositions","openapi":"openapi-public-preview.json GET /v1/reports/schedule-of-dispositions","href":"/api-reference/reporting/schedule-of-dispositions/get-schedule-of-dispositions"}]},{"group":"Financial Insights","pages":[{"title":"Get financial insights","openapi":"openapi-public-preview.json GET /v1/reports/financial-insights","href":"/api-reference/reporting/financial-insights/get-financial-insights"}]}]},{"group":"Agents","pages":[{"group":"Agents","pages":[{"title":"List agents","openapi":"openapi-public-preview.json GET /v1/agents","href":"/api-reference/agents/agents/list-agents"},{"title":"Create agent","openapi":"openapi-public-preview.json POST /v1/agents","href":"/api-reference/agents/agents/create-agent"},{"title":"Update agent","openapi":"openapi-public-preview.json PATCH /v1/agents/{agent_id}","href":"/api-reference/agents/agents/update-agent"},{"title":"Delete agent","openapi":"openapi-public-preview.json DELETE /v1/agents/{agent_id}","href":"/api-reference/agents/agents/delete-agent"},{"title":"Run agent","openapi":"openapi-public-preview.json POST /v1/agents/{agent_id}/runs","href":"/api-reference/agents/agents/run-agent"},{"title":"List agent runs","openapi":"openapi-public-preview.json GET /v1/agents/{agent_id}/runs","href":"/api-reference/agents/agents/list-agent-runs"},{"title":"Cancel agent run","openapi":"openapi-public-preview.json POST /v1/agents/{agent_id}/runs/{run_id}/cancel","href":"/api-reference/agents/agents/cancel-agent-run"}]},{"group":"Memory","pages":[{"title":"List memory","openapi":"openapi-public-preview.json GET /v1/memory","href":"/api-reference/agents/memory/list-memory"},{"title":"Search memory","openapi":"openapi-public-preview.json GET /v1/memory/search","href":"/api-reference/agents/memory/search-memory"},{"title":"Read memory","openapi":"openapi-public-preview.json GET /v1/memory/file","href":"/api-reference/agents/memory/read-memory"},{"title":"Write memory","openapi":"openapi-public-preview.json PUT /v1/memory/file","href":"/api-reference/agents/memory/write-memory"},{"title":"Delete memory","openapi":"openapi-public-preview.json DELETE /v1/memory/file","href":"/api-reference/agents/memory/delete-memory"}]}]},{"group":"Integrations","pages":[{"group":"Connections","pages":[{"title":"List integrations","openapi":"openapi-public-preview.json GET /v1/integrations","href":"/api-reference/integrations/connections/list-integrations"},{"title":"List connections","openapi":"openapi-public-preview.json GET /v1/connections","href":"/api-reference/integrations/connections/list-connections"},{"title":"Connect provider","openapi":"openapi-public-preview.json POST /v1/connections","href":"/api-reference/integrations/connections/connect-provider"},{"title":"Update connection","openapi":"openapi-public-preview.json PATCH /v1/connections/{connection_id}","href":"/api-reference/integrations/connections/update-connection"},{"title":"Reauthorize connection","openapi":"openapi-public-preview.json POST /v1/connections/{connection_id}/reauthorize","href":"/api-reference/integrations/connections/reauthorize-connection"},{"title":"Disconnect connection","openapi":"openapi-public-preview.json DELETE /v1/connections/{connection_id}","href":"/api-reference/integrations/connections/disconnect-provider"}]},{"group":"GL Mapping","pages":[{"title":"List external accounts","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/external-accounts","href":"/api-reference/integrations/gl-mapping/list-external-ledger-accounts"},{"title":"List external entities","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/external-entities","href":"/api-reference/integrations/gl-mapping/list-external-legal-entities"},{"title":"List account mappings","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/account-mappings","href":"/api-reference/integrations/gl-mapping/list-account-mappings"},{"title":"Set account mapping","openapi":"openapi-public-preview.json PUT /v1/connections/{connection_id}/account-mappings/{ledger_account_id}","href":"/api-reference/integrations/gl-mapping/map-ledger-account-to-erp"},{"title":"Remove account mapping","openapi":"openapi-public-preview.json DELETE /v1/connections/{connection_id}/account-mappings/{ledger_account_id}","href":"/api-reference/integrations/gl-mapping/remove-erp-account-mapping"},{"title":"List entity mappings","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/entity-mappings","href":"/api-reference/integrations/gl-mapping/list-entity-mappings"},{"title":"Set entity mapping","openapi":"openapi-public-preview.json PUT /v1/connections/{connection_id}/entity-mappings/{legal_entity_id}","href":"/api-reference/integrations/gl-mapping/map-legal-entity-to-erp"},{"title":"Remove entity mapping","openapi":"openapi-public-preview.json DELETE /v1/connections/{connection_id}/entity-mappings/{legal_entity_id}","href":"/api-reference/integrations/gl-mapping/remove-erp-entity-mapping"},{"title":"List accounting imports","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/imports","href":"/api-reference/integrations/gl-mapping/list-erp-imports"},{"title":"Import accounting data","openapi":"openapi-public-preview.json POST /v1/connections/{connection_id}/imports","href":"/api-reference/integrations/gl-mapping/import-from-erp"}]}]},{"group":"Firms","pages":[{"group":"Request","pages":[{"title":"List requests","openapi":"openapi-public-preview.json GET /v1/firm/requests","href":"/api-reference/firms/request/list-requests"},{"title":"Create request","openapi":"openapi-public-preview.json POST /v1/firm/requests","href":"/api-reference/firms/request/create-request"},{"title":"Resend request","openapi":"openapi-public-preview.json POST /v1/firm/requests/{request_id}/resend","href":"/api-reference/firms/request/resend-request"},{"title":"Cancel request","openapi":"openapi-public-preview.json POST /v1/firm/requests/{request_id}/cancel","href":"/api-reference/firms/request/cancel-request"}]},{"group":"Client","pages":[{"title":"List clients","openapi":"openapi-public-preview.json GET /v1/firm/clients","href":"/api-reference/firms/client/list-clients"},{"title":"Create client","openapi":"openapi-public-preview.json POST /v1/firm/clients","href":"/api-reference/firms/client/create-client"},{"title":"Update client","openapi":"openapi-public-preview.json PATCH /v1/firm/clients/{client_id}","href":"/api-reference/firms/client/update-client"},{"title":"Unlink client","openapi":"openapi-public-preview.json DELETE /v1/firm/clients/{client_id}","href":"/api-reference/firms/client/unlink-client"}]},{"group":"Team","pages":[{"title":"List team members","openapi":"openapi-public-preview.json GET /v1/firm/members","href":"/api-reference/firms/team/list-team-members"},{"title":"Update team member","openapi":"openapi-public-preview.json PATCH /v1/firm/members/{member_id}","href":"/api-reference/firms/team/update-team-member"},{"title":"Remove team member","openapi":"openapi-public-preview.json DELETE /v1/firm/members/{member_id}","href":"/api-reference/firms/team/remove-team-member"},{"title":"List invitations","openapi":"openapi-public-preview.json GET /v1/firm/invitations","href":"/api-reference/firms/team/list-invitations"},{"title":"Invite team member","openapi":"openapi-public-preview.json POST /v1/firm/invitations","href":"/api-reference/firms/team/invite-team-member"},{"title":"Resend invitation","openapi":"openapi-public-preview.json POST /v1/firm/invitations/{invitation_id}/resend","href":"/api-reference/firms/team/resend-invitation"},{"title":"Revoke invitation","openapi":"openapi-public-preview.json DELETE /v1/firm/invitations/{invitation_id}","href":"/api-reference/firms/team/revoke-invitation"}]},{"group":"Settings","pages":[{"title":"Get firm settings","openapi":"openapi-public-preview.json GET /v1/firm/settings","href":"/api-reference/firms/settings/get-firm-settings"},{"title":"Update firm settings","openapi":"openapi-public-preview.json PATCH /v1/firm/settings","href":"/api-reference/firms/settings/update-firm-settings"}]}]}]}]},"basePath":"","title":"Upload document - Entendre Docs","buildId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","deploymentId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CASS2Vpq.js","utils-4k9fyWRu.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-UU-UueZb.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BgJ0LOYq.js","snippetPresets-CMgzlMR-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BzEJegkK.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CZuQIZdk.js","shallow-Bw5arfMA.js","getApiPlaygroundDisplay-Ds834aVN.js","CodeSnippet-CKzmjw9L.js","CodeSnippets-BRpgomdp.js","Page-DvEUoD2H.js","getPastedJson-B0N-Tn76.js","icon-DASMs9nC.js","MethodPill-BA6DBLqx.js","DuplicateIcon-BMT5qfbJ.js","createIcon-CNfwVWPx.js","DynamicMarkdown-JYyBNlrJ.js","SectionHeading-BbZnmz8a.js","axios-vUo_bRtp.js","Markdown-LUU0YLpA.js","clsx-Di4ek5Ae.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-VEVWQCR4.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CPszyu99.js"]}