Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.
Retorna apenas o tipo do documento (document_type, confidence, reason) sem extrair os campos. Mais barato e rápido que a extração completa quando você só precisa identificar o tipo.
Resultado da classificação. Não inclui campos extraídos (fields), markdown, processed_at nem o bloco scanify — apenas o tipo detectado e a justificativa. Para o resultado completo, use /extract/sync ou /extract.
{"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/classify","slug":"/api-reference/endpoint/classify","pageMetadata":{"title":"Classificar documento","openapi":"POST /classify","icon":"tags","description":"Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.","href":"/api-reference/endpoint/classify"},"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: \"Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.\"\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:[`Retorna apenas o tipo do documento (`,_jsx(_components.code,{children:`document_type`}),`, `,_jsx(_components.code,{children:`confidence`}),`, `,_jsx(_components.code,{children:`reason`}),`) sem extrair os campos. Mais barato e rápido que a extração completa quando você só precisa identificar o tipo.`]}),`\n`,_jsx(Heading,{level:`2`,id:`exemplos`,children:`Exemplos`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`10`,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:`10`,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/classify`}),_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:` \"referenceId\": \"pedido-123\",`})}),`\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:`19`,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:`19`,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/classify'`}),_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:` referenceId:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'pedido-123'`}),_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:`document_type`}),_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:`confidence`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python (requests)`,numberOfLines:`16`,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:`16`,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/classify\"`}),_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:` \"referenceId\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"pedido-123\"`}),_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:`\"document_type\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`], response.json()[`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"confidence\"`}),_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":"Classificar documento","openapi":"POST /classify","icon":"tags","description":"Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.","href":"/api-reference/endpoint/classify"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Exemplos","slug":"exemplos","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"classify","summary":"Classificação de documento","description":"Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.","security":["6552151d-db19-45a8-9f69-80e56179f4a2"],"requestBody":"82f30f71-ca4c-440c-95ae-94519dd192d0","responses":{"200":"8ebaef1a-90e8-492e-a5f5-900220ab7af7","400":"efcc471b-5c10-4431-b1a6-43311d562bbc","401":"88e1edcd-c126-42cf-ad08-88c25b351ce9","408":"10cf5361-98af-4900-953c-ead153a017e1"},"method":"post","type":"path","servers":["dfa5c4d9-b5d8-4df8-9bac-689130ccadfd"],"path":"/classify","baseUrlOptions":["https://api.scanify.com.br"],"title":"Classificação de documento","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"},"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"},"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":{},"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>"},"referenceId":{"type":"string","uniqueKey":"referenceId","typeLabel":"string"},"metadata":{"type":"string","description":"Metadados como string JSON.","uniqueKey":"metadata","typeLabel":"string"},"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>","timeout":60000}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8ebaef1a-90e8-492e-a5f5-900220ab7af7":{"description":"Documento classificado.","content":{"application/json":{"schema":{"type":"object","description":"Resultado da classificação. Não inclui campos extraídos (fields), markdown, processed_at nem o bloco scanify — apenas o tipo detectado e a justificativa. Para o resultado completo, use /extract/sync ou /extract.","properties":{"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"status":{"type":"string","enum":["success"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"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>"},"confidence":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Confiança da classificação (0–1).","uniqueKey":"confidence.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Confiança da classificação (0–1).","uniqueKey":"confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"confidence","typeLabel":"number | null"},"reason":{"oneOf":[{"type":"string","description":"Justificativa textual gerada pelo modelo.","uniqueKey":"reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Justificativa textual gerada pelo modelo.","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"document_type_detection":{"type":"object","properties":{"source":{"type":"string","enum":["provided","detected"],"uniqueKey":"document_type_detection.source","typeLabel":"enum\u003cstring>"},"provided_document_type":{"oneOf":[{"type":"string","uniqueKey":"document_type_detection.provided_document_type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"document_type_detection.provided_document_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"document_type_detection.provided_document_type","typeLabel":"string | null"},"detected_document_type":{"oneOf":[{"type":"string","uniqueKey":"document_type_detection.detected_document_type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"document_type_detection.detected_document_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"document_type_detection.detected_document_type","typeLabel":"string | null"},"confidence":{"oneOf":[{"type":"number","uniqueKey":"document_type_detection.confidence.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"document_type_detection.confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"document_type_detection.confidence","typeLabel":"number | null"},"threshold":{"type":"number","uniqueKey":"document_type_detection.threshold","typeLabel":"number"},"accepted":{"type":"boolean","uniqueKey":"document_type_detection.accepted","typeLabel":"boolean"},"reason":{"oneOf":[{"type":"string","uniqueKey":"document_type_detection.reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"document_type_detection.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"document_type_detection.reason","typeLabel":"string | null"}},"uniqueKey":"document_type_detection","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"request_id":"\u003cstring>","status":"success","document_type":"NFE","confidence":0.5,"reason":"\u003cstring>","document_type_detection":{"source":"provided","provided_document_type":"\u003cstring>","detected_document_type":"\u003cstring>","confidence":123,"threshold":123,"accepted":true,"reason":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"efcc471b-5c10-4431-b1a6-43311d562bbc":{"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"},"88e1edcd-c126-42cf-ad08-88c25b351ce9":{"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"},"10cf5361-98af-4900-953c-ead153a017e1":{"description":"A classificação 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":{"6552151d-db19-45a8-9f69-80e56179f4a2":{"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":"Classificar documento - Scanify","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-28T04:12:26.996Z","originalFileLocation":"api-reference/endpoint/classify.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=\"Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.\">\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=\"Classificar documento - Scanify\">\u003cmeta data-mint-head property=\"og:description\" content=\"Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.\">\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/classify\">\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=Classificar+documento\u0026amp;description=Classifica+um+documento+de+forma+s%C3%ADncrona%2C+retornando+apenas+o+tipo+detectado%2C+a+confian%C3%A7a+e+a+justificativa%2C+sem+extrair+os+campos.+XML+n%C3%A3o+%C3%A9+suportado.\u0026amp;theme=7bfed5fa245ae24118097a28\u0026amp;signature=eefa8ba877b81e11a34cd3f2db0f6bd034080fccd7a888eb6992ced4dafefb91\">\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=\"Classificar documento - Scanify\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scanify.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Classificar+documento\u0026amp;description=Classifica+um+documento+de+forma+s%C3%ADncrona%2C+retornando+apenas+o+tipo+detectado%2C+a+confian%C3%A7a+e+a+justificativa%2C+sem+extrair+os+campos.+XML+n%C3%A3o+%C3%A9+suportado.\u0026amp;theme=7bfed5fa245ae24118097a28\u0026amp;signature=eefa8ba877b81e11a34cd3f2db0f6bd034080fccd7a888eb6992ced4dafefb91\">\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/classify\">\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/classify.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/classify#webpage\",\"url\":\"https://docs.scanify.com.br/api-reference/endpoint/classify\",\"name\":\"Classificar documento\",\"description\":\"Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.\",\"dateModified\":\"2026-05-28T04:12:26.996Z\",\"isPartOf\":{\"@id\":\"https://docs.scanify.com.br#website\"}},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.scanify.com.br/api-reference/endpoint/classify#apireference\",\"headline\":\"Classificar documento\",\"name\":\"Classificar documento\",\"description\":\"Classifica um documento de forma síncrona, retornando apenas o tipo detectado, a confiança e a justificativa, sem extrair os campos. XML não é suportado.\",\"url\":\"https://docs.scanify.com.br/api-reference/endpoint/classify\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scanify.com.br/api-reference/endpoint/classify#webpage\"},\"dateModified\":\"2026-05-28T04:12:26.996Z\",\"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","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","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","description":"Consulta o status atual e, quando concluído, o resultado de uma requisição de extração assíncrona.","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","description":"Verifica se a API está disponível. Endpoint público que não requer autenticação.","href":"/api-reference/endpoint/health-check"}]},{"anchor":"Blog","href":"https://scanify.com.br/blog"}]},"basePath":"","title":"Classificar documento - 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"]}