Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.
Envia um documento e recebe o resultado completo na própria resposta, sem callback. Ideal para fluxos interativos. Use timeout para limitar a espera (10s–300s).
Markdown do documento, presente quando includeMarkdown=true.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Scanify","description":"Extraia e valide dados de documentos com uma única API.","colors":{"primary":"#CEFF1A","light":"#CEFF1A","dark":"#CEFF1A"},"logo":{"light":"https://mintcdn.com/scanify/j5DSW-Q3HR_qT9nO/logo/scanify-logo.svg?fit=max\u0026auto=format\u0026n=j5DSW-Q3HR_qT9nO\u0026q=85\u0026s=a88a8890f373826e5a7ab1d887a682b1","dark":"https://mintcdn.com/scanify/j5DSW-Q3HR_qT9nO/logo/scanify-logo.svg?fit=max\u0026auto=format\u0026n=j5DSW-Q3HR_qT9nO\u0026q=85\u0026s=a88a8890f373826e5a7ab1d887a682b1"},"favicon":"https://mintcdn.com/scanify/j5DSW-Q3HR_qT9nO/scanify-favicon.svg?fit=max\u0026auto=format\u0026n=j5DSW-Q3HR_qT9nO\u0026q=85\u0026s=120ac4c72f6b11a651ef331cf606b37f","appearance":{"default":"dark","strict":true},"background":{"decoration":"windows","color":{"dark":"#000000"}},"navbar":{"links":[{"href":"https://scanify.com.br","label":"Entrar"}],"primary":{"type":"button","label":"Cadastre-se","href":"https://scanify.com.br/register"}},"search":{"prompt":"Pesquise por um tópico ou palavra chave..."},"styling":{"eyebrows":"section","codeblocks":"dark","latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"scanify","hasAudioNarration":false,"actualSubdomain":"scanify","customDomains":["docs.scanify.com.br"],"gitSource":{"type":"github","owner":"srsantosdev","repo":"scanify","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae922b0abb6d0c12b812297:success","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Guia Técnico","count":14},{"language":"default","tag":"Referência de API","count":7},{"language":"default","tag":"Como funciona","count":7},{"language":"default","tag":"Documentos e Dados","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#topbar-cta-button span,#topbar-cta-button svg{color:#000000;font-weight:600}.list-none a>div>svg{background-color:#000000}"}],"page":{"pagePath":"api-reference/endpoint/extract-sync","slug":"/api-reference/endpoint/extract-sync","pageMetadata":{"title":"Extração síncrona","openapi":"POST /extract/sync","icon":"bolt","description":"Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.","href":"/api-reference/endpoint/extract-sync"},"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: \"Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Envia um documento e recebe o resultado completo na própria resposta, sem callback. Ideal para fluxos interativos. Use `,_jsx(_components.code,{children:`timeout`}),` para limitar a espera (10s–300s).`]}),`\n`,_jsx(Heading,{level:`2`,id:`exemplos`,children:`Exemplos`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` https://api.scanify.com.br/extract/sync`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer SUA_CHAVE_DE_API\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"file\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"fileUrl\": \"https://exemplo.com/documento.pdf\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"documentType\": \"NFE\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"includeMarkdown\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"timeout\": 60000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js (axios)`,numberOfLines:`20`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` axios`}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'axios'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:`data`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } = `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` axios`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.scanify.com.br/extract/sync'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` file:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` fileUrl:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'https://exemplo.com/documento.pdf'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` documentType:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'NFE'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` includeMarkdown:`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` timeout:`}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:` 60000`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer SUA_CHAVE_DE_API'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`fields`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python (requests)`,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`response = requests.post(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.scanify.com.br/extract/sync\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`={`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer SUA_CHAVE_DE_API\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`={`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"file\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"fileUrl\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://exemplo.com/documento.pdf\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"documentType\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"NFE\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"includeMarkdown\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`False`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"timeout\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`60000`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` timeout`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`70`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`response.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json()[`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"fields\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Extração síncrona","openapi":"POST /extract/sync","icon":"bolt","description":"Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.","href":"/api-reference/endpoint/extract-sync"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Exemplos","slug":"exemplos","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"extractSync","summary":"Extração síncrona","description":"Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.","security":["f933bbf6-de10-408b-91d8-ced043a295be"],"requestBody":"df46d88a-ed2e-44e3-9281-948c9ea6de25","responses":{"200":"2c772143-490c-4538-8496-94702d48a8f2","400":"b81705db-0dc3-4ffd-b8d6-fcf2ca9e2017","401":"d208eb98-b753-4c27-90eb-eaefc02f010e","408":"50381e45-aa19-41c4-bca6-3bb450c5d4e2"},"method":"post","type":"path","servers":["dfa5c4d9-b5d8-4df8-9bac-689130ccadfd"],"path":"/extract/sync","baseUrlOptions":["https://api.scanify.com.br"],"title":"Extração síncrona","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"object","description":"Origem do arquivo. Forneça fileUrl OU fileBase64 (com filename obrigatório), nunca ambos.","properties":{"fileUrl":{"type":"string","format":"uri","description":"URL pública do arquivo a ser baixado.","uniqueKey":"file.fileUrl","typeLabel":"string\u003curi>"},"fileBase64":{"type":"string","description":"Conteúdo do arquivo codificado em base64. Requer filename.","uniqueKey":"file.fileBase64","typeLabel":"string"},"filename":{"type":"string","description":"Nome do arquivo. Obrigatório quando usar fileBase64.","uniqueKey":"file.filename","typeLabel":"string"}},"isRequired":true,"uniqueKey":"file","typeLabel":"object"},"documentType":{"type":"string","description":"Tipo de documento. Quando omitido na extração, o tipo é detectado automaticamente.","enum":["NFE","BOLETO","CONTRATO","RECIBO","CNH","RG","COMPROVANTE_RESIDENCIA","CONTRATO_SOCIAL","IRPF","CERTIDAO_NASCIMENTO","CERTIDAO_CASAMENTO","LAUDO_MEDICO","CERTIDAO_OBITO","PROCURACAO","HOLERITE","DOCUMENTO_VEICULAR","DOCUMENTO_JURIDICO","EXTRATO_BANCARIO","INFORME_RENDIMENTOS_EMPREGADOR_INSS","INFORME_RENDIMENTOS_BANCOS","INFORME_RENDIMENTOS_CORRETORAS","INFORME_PLANO_SAUDE","DESPESA_MEDICA","COMPROVANTE_EDUCACAO","DECLARACAO_IR_ANTERIOR"],"uniqueKey":"documentType","typeLabel":"enum\u003cstring>"},"referenceId":{"type":"string","description":"Identificador externo para rastreamento.","uniqueKey":"referenceId","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"description":"Metadados arbitrários associados à requisição.","uniqueKey":"metadata","typeLabel":"object"},"includeMarkdown":{"type":"boolean","default":false,"description":"Inclui o markdown do documento no resultado.","uniqueKey":"includeMarkdown","typeLabel":"boolean"},"timeout":{"type":"integer","minimum":10000,"maximum":300000,"default":60000,"description":"Tempo máximo de espera em milissegundos.","uniqueKey":"timeout","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file":{"fileUrl":"\u003cstring>","fileBase64":"\u003cstring>","filename":"\u003cstring>"},"referenceId":"\u003cstring>","metadata":{},"includeMarkdown":false,"timeout":60000}}},"exampleType":"generated"},"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"Arquivo do documento. Alternativamente, informe o campo fileUrl.","isRequired":true,"uniqueKey":"file","typeLabel":"file"},"fileUrl":{"type":"string","format":"uri","uniqueKey":"fileUrl","typeLabel":"string\u003curi>"},"documentType":{"type":"string","description":"Tipo de documento. Quando omitido na extração, o tipo é detectado automaticamente.","enum":["NFE","BOLETO","CONTRATO","RECIBO","CNH","RG","COMPROVANTE_RESIDENCIA","CONTRATO_SOCIAL","IRPF","CERTIDAO_NASCIMENTO","CERTIDAO_CASAMENTO","LAUDO_MEDICO","CERTIDAO_OBITO","PROCURACAO","HOLERITE","DOCUMENTO_VEICULAR","DOCUMENTO_JURIDICO","EXTRATO_BANCARIO","INFORME_RENDIMENTOS_EMPREGADOR_INSS","INFORME_RENDIMENTOS_BANCOS","INFORME_RENDIMENTOS_CORRETORAS","INFORME_PLANO_SAUDE","DESPESA_MEDICA","COMPROVANTE_EDUCACAO","DECLARACAO_IR_ANTERIOR"],"uniqueKey":"documentType","typeLabel":"enum\u003cstring>"},"referenceId":{"type":"string","uniqueKey":"referenceId","typeLabel":"string"},"metadata":{"type":"string","description":"Metadados como string JSON.","uniqueKey":"metadata","typeLabel":"string"},"includeMarkdown":{"type":"boolean","default":false,"uniqueKey":"includeMarkdown","typeLabel":"boolean"},"timeout":{"type":"integer","minimum":10000,"maximum":300000,"default":60000,"uniqueKey":"timeout","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file":"\u003cstring>","fileUrl":"\u003cstring>","referenceId":"\u003cstring>","metadata":"\u003cstring>","includeMarkdown":false,"timeout":60000}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"2c772143-490c-4538-8496-94702d48a8f2":{"description":"Extração concluída.","content":{"application/json":{"schema":{"type":"object","description":"Resultado completo de uma extração síncrona.","properties":{"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"document_type":{"type":"string","description":"Tipo de documento. Quando omitido na extração, o tipo é detectado automaticamente.","enum":["NFE","BOLETO","CONTRATO","RECIBO","CNH","RG","COMPROVANTE_RESIDENCIA","CONTRATO_SOCIAL","IRPF","CERTIDAO_NASCIMENTO","CERTIDAO_CASAMENTO","LAUDO_MEDICO","CERTIDAO_OBITO","PROCURACAO","HOLERITE","DOCUMENTO_VEICULAR","DOCUMENTO_JURIDICO","EXTRATO_BANCARIO","INFORME_RENDIMENTOS_EMPREGADOR_INSS","INFORME_RENDIMENTOS_BANCOS","INFORME_RENDIMENTOS_CORRETORAS","INFORME_PLANO_SAUDE","DESPESA_MEDICA","COMPROVANTE_EDUCACAO","DECLARACAO_IR_ANTERIOR"],"uniqueKey":"document_type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["success","partial_success","failed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"fields":{"type":"object","additionalProperties":{"type":"object","description":"Valor extraído de um campo do documento.","properties":{"value":{"description":"Valor do campo (tipo varia conforme o campo).","uniqueKey":"fields.additionalProperties.value","typeLabel":"any"},"confidence_score":{"type":"number","description":"Confiança da extração do campo, quando disponível.","uniqueKey":"fields.additionalProperties.confidence_score","typeLabel":"number"},"error":{"type":"string","description":"Mensagem de erro de validação do campo, quando houver.","uniqueKey":"fields.additionalProperties.error","typeLabel":"string"}},"uniqueKey":"fields.additionalProperties","typeLabel":"object"},"description":"Mapa de nome do campo para o valor extraído.","uniqueKey":"fields","typeLabel":"object"},"processed_at":{"type":"string","format":"date-time","uniqueKey":"processed_at","typeLabel":"string\u003cdate-time>"},"scanify":{"type":"object","description":"Metadados de qualidade da extração.","properties":{"reliability_score":{"type":"number","uniqueKey":"scanify.reliability_score","typeLabel":"number"},"reliability_level":{"type":"string","enum":["high","medium","low"],"uniqueKey":"scanify.reliability_level","typeLabel":"enum\u003cstring>"},"missing_fields":{"type":"array","items":{"type":"string","uniqueKey":"scanify.missing_fields.items.[INDEX]","typeLabel":"string"},"uniqueKey":"scanify.missing_fields","typeLabel":"string[]"},"inconsistencies":{"type":"array","items":{"type":"string","uniqueKey":"scanify.inconsistencies.items.[INDEX]","typeLabel":"string"},"description":"Avisos curtos em português descrevendo inconsistências detectadas nos campos.","uniqueKey":"scanify.inconsistencies","typeLabel":"string[]"},"summary":{"type":"string","description":"Resumo textual do documento em português.","uniqueKey":"scanify.summary","typeLabel":"string"},"schema_version":{"type":"string","uniqueKey":"scanify.schema_version","typeLabel":"string"},"confidence_heatmap":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":100,"uniqueKey":"scanify.confidence_heatmap.additionalProperties","typeLabel":"number"},"description":"Confiança por campo (0–100), com chave igual ao nome do campo.","uniqueKey":"scanify.confidence_heatmap","typeLabel":"object"},"document_type_detection":{"type":"object","properties":{"source":{"type":"string","enum":["provided","detected"],"uniqueKey":"scanify.document_type_detection.source","typeLabel":"enum\u003cstring>"},"provided_document_type":{"oneOf":[{"type":"string","uniqueKey":"scanify.document_type_detection.provided_document_type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"scanify.document_type_detection.provided_document_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"scanify.document_type_detection.provided_document_type","typeLabel":"string | null"},"detected_document_type":{"oneOf":[{"type":"string","uniqueKey":"scanify.document_type_detection.detected_document_type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"scanify.document_type_detection.detected_document_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"scanify.document_type_detection.detected_document_type","typeLabel":"string | null"},"confidence":{"oneOf":[{"type":"number","uniqueKey":"scanify.document_type_detection.confidence.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"scanify.document_type_detection.confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"scanify.document_type_detection.confidence","typeLabel":"number | null"},"threshold":{"type":"number","uniqueKey":"scanify.document_type_detection.threshold","typeLabel":"number"},"accepted":{"type":"boolean","uniqueKey":"scanify.document_type_detection.accepted","typeLabel":"boolean"},"reason":{"oneOf":[{"type":"string","uniqueKey":"scanify.document_type_detection.reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"scanify.document_type_detection.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"scanify.document_type_detection.reason","typeLabel":"string | null"}},"uniqueKey":"scanify.document_type_detection","typeLabel":"object"}},"uniqueKey":"scanify","typeLabel":"object"},"markdown":{"type":"string","description":"Markdown do documento, presente quando includeMarkdown=true.","uniqueKey":"markdown","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"request_id":"\u003cstring>","document_type":"NFE","status":"success","fields":{},"processed_at":"2023-11-07T05:31:56Z","scanify":{"reliability_score":123,"reliability_level":"high","missing_fields":["\u003cstring>"],"inconsistencies":["\u003cstring>"],"summary":"\u003cstring>","schema_version":"\u003cstring>","confidence_heatmap":{},"document_type_detection":{"source":"provided","provided_document_type":"\u003cstring>","detected_document_type":"\u003cstring>","confidence":123,"threshold":123,"accepted":true,"reason":"\u003cstring>"}},"markdown":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b81705db-0dc3-4ffd-b8d6-fcf2ca9e2017":{"description":"Requisição inválida (dados ou arquivo inválidos).","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Presente em alguns erros de processamento.","uniqueKey":"request_id","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"d208eb98-b753-4c27-90eb-eaefc02f010e":{"description":"Chave de API ausente ou inválida.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Unauthorized","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized"}}},"exampleType":"generated"}},"exampleType":"generated"},"50381e45-aa19-41c4-bca6-3bb450c5d4e2":{"description":"O processamento excedeu o timeout informado.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"status":{"type":"string","enum":["failed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["SYNC_TIMEOUT"],"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"status":"failed","code":"SYNC_TIMEOUT","message":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"f933bbf6-de10-408b-91d8-ced043a295be":{"apiKeyAuth":{"type":"http","scheme":"bearer","description":"Chave de API enviada no cabeçalho Authorization no formato: Authorization: Bearer \u003cAPI_KEY>.","scopes":[]}}},"servers":{"dfa5c4d9-b5d8-4df8-9bac-689130ccadfd":{"url":"https://api.scanify.com.br"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Chave de API enviada no cabeçalho Authorization no formato: Authorization: Bearer \u003cAPI_KEY>.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Chave de API enviada no cabeçalho Authorization no formato: Authorization: Bearer \u003cAPI_KEY>.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKeyAuth","name":"Authorization"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"scanify","siteName":"Scanify","title":"Extração síncrona - Scanify","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-28T04:12:26.999Z","originalFileLocation":"api-reference/endpoint/extract-sync.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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=\"Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Scanify\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Extração síncrona - Scanify\">\u003cmeta data-mint-head property=\"og:description\" content=\"Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Scanify\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.scanify.com.br/api-reference/endpoint/extract-sync\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://scanify.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Extra%C3%A7%C3%A3o+s%C3%ADncrona\u0026amp;description=Extrai+os+campos+de+um+documento+de+forma+s%C3%ADncrona%2C+aguardando+o+processamento+concluir+e+retornando+o+resultado+completo+na+mesma+requisi%C3%A7%C3%A3o.+Use+o+par%C3%A2metro+t\u0026amp;theme=7bfed5fa245ae24118097a28\u0026amp;signature=4001c13860397b021bea465d9b9e1c6c6d0d8ad4c9d21c1b23743e80653531c9\">\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=\"Extração síncrona - Scanify\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scanify.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Extra%C3%A7%C3%A3o+s%C3%ADncrona\u0026amp;description=Extrai+os+campos+de+um+documento+de+forma+s%C3%ADncrona%2C+aguardando+o+processamento+concluir+e+retornando+o+resultado+completo+na+mesma+requisi%C3%A7%C3%A3o.+Use+o+par%C3%A2metro+t\u0026amp;theme=7bfed5fa245ae24118097a28\u0026amp;signature=4001c13860397b021bea465d9b9e1c6c6d0d8ad4c9d21c1b23743e80653531c9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/scanify/SiDKo-72w2xCr88P/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Scanify\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#CEFF1A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.scanify.com.br/api-reference/endpoint/extract-sync\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/extract-sync.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.scanify.com.br/#organization\",\"name\":\"Scanify\",\"url\":\"https://docs.scanify.com.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/scanify/j5DSW-Q3HR_qT9nO/logo/scanify-logo.svg?fit=max\u0026auto=format\u0026n=j5DSW-Q3HR_qT9nO\u0026q=85\u0026s=a88a8890f373826e5a7ab1d887a682b1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.scanify.com.br#website\",\"name\":\"Scanify\",\"url\":\"https://docs.scanify.com.br\",\"publisher\":{\"@id\":\"https://docs.scanify.com.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.scanify.com.br/api-reference/endpoint/extract-sync#webpage\",\"url\":\"https://docs.scanify.com.br/api-reference/endpoint/extract-sync\",\"name\":\"Extração síncrona\",\"description\":\"Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.\",\"dateModified\":\"2026-05-28T04:12:26.999Z\",\"isPartOf\":{\"@id\":\"https://docs.scanify.com.br#website\"}},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.scanify.com.br/api-reference/endpoint/extract-sync#apireference\",\"headline\":\"Extração síncrona\",\"name\":\"Extração síncrona\",\"description\":\"Extrai os campos de um documento de forma síncrona, aguardando o processamento concluir e retornando o resultado completo na mesma requisição. Use o parâmetro timeout para controlar o tempo máximo de espera.\",\"url\":\"https://docs.scanify.com.br/api-reference/endpoint/extract-sync\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scanify.com.br/api-reference/endpoint/extract-sync#webpage\"},\"dateModified\":\"2026-05-28T04:12:26.999Z\",\"publisher\":{\"@id\":\"https://docs.scanify.com.br/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.scanify.com.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Scanify\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Scanify","nav":{"global":null,"anchors":[{"anchor":"Guia Técnico","icon":"book-open","pages":[{"title":"Guia Técnico","href":"/quickstart"}]},{"anchor":"Referência de API","icon":"server","pages":[{"title":"Visão geral da API","icon":"book-open","description":null,"href":"/api-reference/overview"},{"title":"Extração síncrona","openapi":"POST /extract/sync","icon":"bolt","href":"/api-reference/endpoint/extract-sync"},{"title":"Extração assíncrona","openapi":"POST /extract","icon":"file-arrow-up","description":"Inicia o processamento de um documento de forma assíncrona. Retorna imediatamente um request_id com status in_progress. O resultado pode ser consultado em GET /extract/{requestId} ou recebido via callbackUrl quando informado.","href":"/api-reference/endpoint/extract"},{"title":"Processamento em lote","openapi":"POST /extract/batch","icon":"layer-group","href":"/api-reference/endpoint/extract-batch"},{"title":"Consultar resultado","openapi":"GET /extract/{requestId}","icon":"magnifying-glass","href":"/api-reference/endpoint/get-result"},{"title":"Classificar documento","openapi":"POST /classify","icon":"tags","href":"/api-reference/endpoint/classify"},{"title":"Health check","openapi":"GET /health","icon":"heart-circle-check","href":"/api-reference/endpoint/health-check"}]},{"anchor":"Blog","href":"https://scanify.com.br/blog"}]},"basePath":"","title":"Extração síncrona - Scanify","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}