Scan a WFP — synchronous single-shot, or one block of a chunked async upload
Dual-mode upload, selected by the presence of the X-Scan-Id request
header. Both modes return the same ScanEnvelope envelope, and the
result payload is byte-identical to the polled async result (both run
the same batchScanner pipeline → same Report).
Mode B — synchronous single-shot (no X-Scan-Id). The request body
is one complete WFP (application/octet-stream, capped at
scan.max_upload_size), scanned inline. Responds 200 with a
ScanEnvelope already at status: completed, carrying result,
files_total and a fresh scan_id (for traceability only — no session
is created, nothing to poll). Content-Range is ignored. An
empty/whitespace body → 400 INVALID_BODY. The request blocks for the
whole scan, so this mode is bounded by the request timeout and intended
for small inputs.
Mode A — chunked async (X-Scan-Id present). One block of a
multi-block upload too large for a single request. The client generates
the session id — a canonical lowercase UUIDv7 — and sends it on
every block (it is what a load balancer hashes on to keep all blocks
on one instance). Content-Range: bytes <start>-<end>/<total> is
required. Blocks are reassembled by their declared byte offset, so
they may be uploaded in any order or concurrently; the first
received block need not start at offset 0. Each block responds 202
with a ScanEnvelope (status: uploading). When the received ranges
fully cover [0, total) with no gaps, the upload is sealed and the
batchScanner pipeline is queued (its stages call the scan API over
HTTP); poll GET /v3/wfp/scan/{id} for progress/result.
received_bytes reports the total distinct bytes covered so far.
Re-POSTing an already-received range with identical bytes is an
idempotent 202 no-op.
Mode A errors: a non-canonical / non-UUIDv7 id → 400 INVALID_SCAN_ID;
missing Content-Range → 400 MISSING_RANGE; malformed Content-Range
(or a body length that disagrees with the range) → 400 INVALID_RANGE;
an overlapping block carrying conflicting bytes, or reuse of a
sealed id → 409 RANGE_CONFLICT (note: out-of-order arrival alone is
not a conflict); a block or declared total over the configured
limits → 413 PAYLOAD_TOO_LARGE.
POST
/
v3
/
wfp
/
scan
Scan a WFP — synchronous single-shot, or one block of a chunked async upload
Absent → Mode B (synchronous single-shot). Present → Mode A (chunked async): a client-generated canonical lowercase UUIDv7, sent on every block of the session.
Required in Mode A (X-Scan-Id present): byte range of this block, e.g. bytes 0-8388607/26214400 (end inclusive, 0-based). Ignored in Mode B.
Body
application/octet-stream
The body is of type file.
Response
Mode B only. The WFP was scanned inline; ScanEnvelope is at status: completed with result and files_total populated.
Unified status envelope returned by POST /v3/wfp/scan (both modes) and GET /v3/wfp/scan/{id}. Mode B returns it synchronously already at status: completed; Mode A returns it per block (uploading) and on each poll. Zero-valued fields are omitted, so an uploading session carries no scan counters and a running scan carries no result.
Canonical lowercase UUIDv7 session id. In Mode A this is the client-supplied id; in Mode B it is a server-generated id for traceability only (no session is created).
Populated only when status is completed. The batchScanner report — byte-identical whether obtained synchronously (Mode B) or by polling an async session to completion (Mode A).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SCANOSS documentation","colors":{"primary":"#FF6A1A","light":"#FF6A1A","dark":"#FF6A1A"},"logo":{"light":"https://mintcdn.com/scanoss/9UP7eHL2Z_rQPx8l/scanoss-logo-horizontal-positive.svg?fit=max\u0026auto=format\u0026n=9UP7eHL2Z_rQPx8l\u0026q=85\u0026s=686c4487013423ef804e2e83983c76ef","dark":"https://mintcdn.com/scanoss/9UP7eHL2Z_rQPx8l/scanoss-logo-horizontal-negative.svg?fit=max\u0026auto=format\u0026n=9UP7eHL2Z_rQPx8l\u0026q=85\u0026s=03cf2002f3fff2726f8e9b19bb2781ec","href":"https://scanoss.com"},"favicon":"https://mintcdn.com/scanoss/SuvZQ2xWfRUv4OAb/scan-favicon.png?fit=max\u0026auto=format\u0026n=SuvZQ2xWfRUv4OAb\u0026q=85\u0026s=4f02839460dfdc66102d3b028b507df6","appearance":{"default":"system","strict":false},"footer":{"socials":{"x":"https://x.com/SCANOSS_","github":"https://github.com/scanoss","linkedin":"https://es.linkedin.com/company/scanoss"}},"seo":{"indexing":"all"},"fonts":{"heading":{"family":"Space Grotesk","weight":700,"format":"woff2"},"body":{"family":"Space Grotesk","format":"woff2"}},"integrations":{"ga4":{"measurementId":"G-NWY31TXG8Y"}},"banner":{"content":"**Earnie is here** — SCANOSS's major release for AI governance, cryptography, PQC readiness, and open source compliance. [Watch the release demo →](https://youtu.be/MKgIpH4bEQ4?si=wXECS3umWGx11mB7)","dismissible":true},"contextual":{"options":["copy","view","claude","chatgpt","cursor","vscode","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"scanoss","hasAudioNarration":false,"actualSubdomain":"scanoss","customDomains":["docs.scanoss.com"],"gitSource":{"type":"github","owner":"scanoss","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af4de431c57d74f3a12ae72","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Earnie","count":163},{"language":"default","tag":"API Reference","count":137},{"language":"default","tag":"Guides","count":84},{"language":"default","tag":"Developer Tools","count":67},{"language":"default","tag":"API reference","count":48},{"language":"default","tag":"v3 endpoints","count":47},{"language":"default","tag":"Scans","count":44},{"language":"default","tag":"scans","count":44},{"language":"default","tag":"Policies","count":22},{"language":"default","tag":"Findings","count":21}]},"assistantConfig":{"enableStarterQuestions":true,"deflection":{"enabled":true,"email":"support@scanoss.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"695fa5b6a879c7d6b0e8a169","deploymentId":"68551e34bde804c6773f4df2","questionText":"Cannot import/export projects?","status":"active","generatedBy":"manual","createdAt":"2026-01-08T12:40:22.697Z","updatedAt":"2026-01-08T12:40:22.697Z","__v":0},{"_id":"695fa5a4a879c7d6b0e8a064","deploymentId":"68551e34bde804c6773f4df2","questionText":"Dependency files not detected during scan?","status":"active","generatedBy":"manual","createdAt":"2026-01-08T12:40:04.675Z","updatedAt":"2026-01-08T12:40:04.675Z","__v":0},{"_id":"695fa566a879c7d6b0e89d1e","deploymentId":"68551e34bde804c6773f4df2","questionText":"How do I configure the SCANOSS API key?","status":"active","generatedBy":"manual","createdAt":"2026-01-08T12:39:02.662Z","updatedAt":"2026-01-08T12:39:02.662Z","__v":0}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#banner{background-color:#ff6a1a!important;color:#ffffff!important}html:not(.dark) #background-color,html:not(.dark) #navbar-transition{background-color:#f4f6f9!important}html:not(.dark) h1{color:#081320!important}html:not(.dark) nav a[aria-current=\"page\"]{background-color:rgba(8, 19, 32, 0.1)!important}html:not(.dark) .chat-assistant-floating-input .bg-background-light,html:not(.dark) .chat-assistant-floating-input::before,html:not(.dark) #assistant-entry,html:not(.dark) #chat-assistant-sheet,html:not(.dark) #chat-assistant-sheet .bg-background-light{background-color:#f4f6f9!important}html.dark #background-color,html.dark #navbar-transition{background-color:#081320!important}html.dark h1,html.dark .prose :where(h1,h2,h3,h4,h5,h6),html.dark .prose :where(p,li,td,th):not(svg *){color:#ffffff!important}html.dark nav a[aria-current=\"page\"]{background-color:rgba(255, 106, 26, 0.15)!important}html.dark .chat-assistant-floating-input .dark\\:bg-background-dark,html.dark .chat-assistant-floating-input::before,html.dark #assistant-entry,html.dark #chat-assistant-sheet,html.dark #chat-assistant-sheet .dark\\:bg-background-dark{background-color:#081320!important}span[style*=\"radial-gradient\"]{display:none!important}nav#sidebar .sticky.top-0.h-8{display:none!important}#sidebar #navigation-items{padding-top:2rem}.eyebrow{color:#ff6a1a!important}nav a.text-primary{color:#ff6a1a!important}"}],"page":{"pagePath":"developer-tools/api-reference/v3/scan/scan-a-wfp-—-synchronous-single-shot-or-one-block-of-a-chunked-async-upload","slug":"/developer-tools/api-reference/v3/scan/scan-a-wfp-—-synchronous-single-shot-or-one-block-of-a-chunked-async-upload","pageMetadata":{"title":"Scan a WFP — synchronous single-shot, or one block of a chunked async upload","description":"Dual-mode upload, selected by the presence of the `X-Scan-Id` request\nheader. Both modes return the same `ScanEnvelope` envelope, and the\n`result` payload is byte-identical to the polled async result (both run\nthe same batchScanner pipeline → same `Report`).\n\n**Mode B — synchronous single-shot (no `X-Scan-Id`).** The request body\nis one complete WFP (`application/octet-stream`, capped at\n`scan.max_upload_size`), scanned inline. Responds `200` with a\n`ScanEnvelope` already at `status: completed`, carrying `result`,\n`files_total` and a fresh `scan_id` (for traceability only — no session\nis created, nothing to poll). `Content-Range` is ignored. An\nempty/whitespace body → `400 INVALID_BODY`. The request blocks for the\nwhole scan, so this mode is bounded by the request timeout and intended\nfor small inputs.\n\n**Mode A — chunked async (`X-Scan-Id` present).** One block of a\nmulti-block upload too large for a single request. The client generates\nthe session id — a **canonical lowercase UUIDv7** — and sends it on\n**every** block (it is what a load balancer hashes on to keep all blocks\non one instance). `Content-Range: bytes \u003cstart>-\u003cend>/\u003ctotal>` is\n**required**. Blocks are reassembled by their declared byte offset, so\nthey **may be uploaded in any order or concurrently**; the first\nreceived block need not start at offset 0. Each block responds `202`\nwith a `ScanEnvelope` (`status: uploading`). When the received ranges\nfully cover `[0, total)` with no gaps, the upload is sealed and the\nbatchScanner pipeline is queued (its stages call the scan API over\nHTTP); poll `GET /v3/wfp/scan/{id}` for progress/result.\n`received_bytes` reports the total distinct bytes covered so far.\nRe-POSTing an already-received range with identical bytes is an\nidempotent `202` no-op.\n\nMode A errors: a non-canonical / non-UUIDv7 id → `400 INVALID_SCAN_ID`;\nmissing `Content-Range` → `400 MISSING_RANGE`; malformed `Content-Range`\n(or a body length that disagrees with the range) → `400 INVALID_RANGE`;\nan overlapping block carrying **conflicting** bytes, or reuse of a\nsealed id → `409 RANGE_CONFLICT` (note: out-of-order arrival alone is\n**not** a conflict); a block or declared total over the configured\nlimits → `413 PAYLOAD_TOO_LARGE`.\n","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/wfp/scan","href":"/developer-tools/api-reference/v3/scan/scan-a-wfp-—-synchronous-single-shot-or-one-block-of-a-chunked-async-upload","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Dual-mode upload, selected by the presence of the \", _jsx(_components.code, {\n children: \"X-Scan-Id\"\n }), \" request\\nheader. Both modes return the same \", _jsx(_components.code, {\n children: \"ScanEnvelope\"\n }), \" envelope, and the\\n\", _jsx(_components.code, {\n children: \"result\"\n }), \" payload is byte-identical to the polled async result (both run\\nthe same batchScanner pipeline → same \", _jsx(_components.code, {\n children: \"Report\"\n }), \").\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsxs(_components.strong, {\n children: [\"Mode B — synchronous single-shot (no \", _jsx(_components.code, {\n children: \"X-Scan-Id\"\n }), \").\"]\n }), \" The request body\\nis one complete WFP (\", _jsx(_components.code, {\n children: \"application/octet-stream\"\n }), \", capped at\\n\", _jsx(_components.code, {\n children: \"scan.max_upload_size\"\n }), \"), scanned inline. Responds \", _jsx(_components.code, {\n children: \"200\"\n }), \" with a\\n\", _jsx(_components.code, {\n children: \"ScanEnvelope\"\n }), \" already at \", _jsx(_components.code, {\n children: \"status: completed\"\n }), \", carrying \", _jsx(_components.code, {\n children: \"result\"\n }), \",\\n\", _jsx(_components.code, {\n children: \"files_total\"\n }), \" and a fresh \", _jsx(_components.code, {\n children: \"scan_id\"\n }), \" (for traceability only — no session\\nis created, nothing to poll). \", _jsx(_components.code, {\n children: \"Content-Range\"\n }), \" is ignored. An\\nempty/whitespace body → \", _jsx(_components.code, {\n children: \"400 INVALID_BODY\"\n }), \". The request blocks for the\\nwhole scan, so this mode is bounded by the request timeout and intended\\nfor small inputs.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsxs(_components.strong, {\n children: [\"Mode A — chunked async (\", _jsx(_components.code, {\n children: \"X-Scan-Id\"\n }), \" present).\"]\n }), \" One block of a\\nmulti-block upload too large for a single request. The client generates\\nthe session id — a \", _jsx(_components.strong, {\n children: \"canonical lowercase UUIDv7\"\n }), \" — and sends it on\\n\", _jsx(_components.strong, {\n children: \"every\"\n }), \" block (it is what a load balancer hashes on to keep all blocks\\non one instance). \", _jsx(_components.code, {\n children: \"Content-Range: bytes \u003cstart>-\u003cend>/\u003ctotal>\"\n }), \" is\\n\", _jsx(_components.strong, {\n children: \"required\"\n }), \". Blocks are reassembled by their declared byte offset, so\\nthey \", _jsx(_components.strong, {\n children: \"may be uploaded in any order or concurrently\"\n }), \"; the first\\nreceived block need not start at offset 0. Each block responds \", _jsx(_components.code, {\n children: \"202\"\n }), \"\\nwith a \", _jsx(_components.code, {\n children: \"ScanEnvelope\"\n }), \" (\", _jsx(_components.code, {\n children: \"status: uploading\"\n }), \"). When the received ranges\\nfully cover \", _jsx(_components.code, {\n children: \"[0, total)\"\n }), \" with no gaps, the upload is sealed and the\\nbatchScanner pipeline is queued (its stages call the scan API over\\nHTTP); poll \", _jsx(_components.code, {\n children: \"GET /v3/wfp/scan/{id}\"\n }), \" for progress/result.\\n\", _jsx(_components.code, {\n children: \"received_bytes\"\n }), \" reports the total distinct bytes covered so far.\\nRe-POSTing an already-received range with identical bytes is an\\nidempotent \", _jsx(_components.code, {\n children: \"202\"\n }), \" no-op.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Mode A errors: a non-canonical / non-UUIDv7 id → \", _jsx(_components.code, {\n children: \"400 INVALID_SCAN_ID\"\n }), \";\\nmissing \", _jsx(_components.code, {\n children: \"Content-Range\"\n }), \" → \", _jsx(_components.code, {\n children: \"400 MISSING_RANGE\"\n }), \"; malformed \", _jsx(_components.code, {\n children: \"Content-Range\"\n }), \"\\n(or a body length that disagrees with the range) → \", _jsx(_components.code, {\n children: \"400 INVALID_RANGE\"\n }), \";\\nan overlapping block carrying \", _jsx(_components.strong, {\n children: \"conflicting\"\n }), \" bytes, or reuse of a\\nsealed id → \", _jsx(_components.code, {\n children: \"409 RANGE_CONFLICT\"\n }), \" (note: out-of-order arrival alone is\\n\", _jsx(_components.strong, {\n children: \"not\"\n }), \" a conflict); a block or declared total over the configured\\nlimits → \", _jsx(_components.code, {\n children: \"413 PAYLOAD_TOO_LARGE\"\n }), \".\"]\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Scan a WFP — synchronous single-shot, or one block of a chunked async upload","description":"Dual-mode upload, selected by the presence of the `X-Scan-Id` request\nheader. Both modes return the same `ScanEnvelope` envelope, and the\n`result` payload is byte-identical to the polled async result (both run\nthe same batchScanner pipeline → same `Report`).\n\n**Mode B — synchronous single-shot (no `X-Scan-Id`).** The request body\nis one complete WFP (`application/octet-stream`, capped at\n`scan.max_upload_size`), scanned inline. Responds `200` with a\n`ScanEnvelope` already at `status: completed`, carrying `result`,\n`files_total` and a fresh `scan_id` (for traceability only — no session\nis created, nothing to poll). `Content-Range` is ignored. An\nempty/whitespace body → `400 INVALID_BODY`. The request blocks for the\nwhole scan, so this mode is bounded by the request timeout and intended\nfor small inputs.\n\n**Mode A — chunked async (`X-Scan-Id` present).** One block of a\nmulti-block upload too large for a single request. The client generates\nthe session id — a **canonical lowercase UUIDv7** — and sends it on\n**every** block (it is what a load balancer hashes on to keep all blocks\non one instance). `Content-Range: bytes \u003cstart>-\u003cend>/\u003ctotal>` is\n**required**. Blocks are reassembled by their declared byte offset, so\nthey **may be uploaded in any order or concurrently**; the first\nreceived block need not start at offset 0. Each block responds `202`\nwith a `ScanEnvelope` (`status: uploading`). When the received ranges\nfully cover `[0, total)` with no gaps, the upload is sealed and the\nbatchScanner pipeline is queued (its stages call the scan API over\nHTTP); poll `GET /v3/wfp/scan/{id}` for progress/result.\n`received_bytes` reports the total distinct bytes covered so far.\nRe-POSTing an already-received range with identical bytes is an\nidempotent `202` no-op.\n\nMode A errors: a non-canonical / non-UUIDv7 id → `400 INVALID_SCAN_ID`;\nmissing `Content-Range` → `400 MISSING_RANGE`; malformed `Content-Range`\n(or a body length that disagrees with the range) → `400 INVALID_RANGE`;\nan overlapping block carrying **conflicting** bytes, or reuse of a\nsealed id → `409 RANGE_CONFLICT` (note: out-of-order arrival alone is\n**not** a conflict); a block or declared total over the configured\nlimits → `413 PAYLOAD_TOO_LARGE`.\n","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/wfp/scan","href":"/developer-tools/api-reference/v3/scan/scan-a-wfp-—-synchronous-single-shot-or-one-block-of-a-chunked-async-upload","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["scan"],"summary":"Scan a WFP — synchronous single-shot, or one block of a chunked async upload","description":"Dual-mode upload, selected by the presence of the `X-Scan-Id` request\nheader. Both modes return the same `ScanEnvelope` envelope, and the\n`result` payload is byte-identical to the polled async result (both run\nthe same batchScanner pipeline → same `Report`).\n\n**Mode B — synchronous single-shot (no `X-Scan-Id`).** The request body\nis one complete WFP (`application/octet-stream`, capped at\n`scan.max_upload_size`), scanned inline. Responds `200` with a\n`ScanEnvelope` already at `status: completed`, carrying `result`,\n`files_total` and a fresh `scan_id` (for traceability only — no session\nis created, nothing to poll). `Content-Range` is ignored. An\nempty/whitespace body → `400 INVALID_BODY`. The request blocks for the\nwhole scan, so this mode is bounded by the request timeout and intended\nfor small inputs.\n\n**Mode A — chunked async (`X-Scan-Id` present).** One block of a\nmulti-block upload too large for a single request. The client generates\nthe session id — a **canonical lowercase UUIDv7** — and sends it on\n**every** block (it is what a load balancer hashes on to keep all blocks\non one instance). `Content-Range: bytes \u003cstart>-\u003cend>/\u003ctotal>` is\n**required**. Blocks are reassembled by their declared byte offset, so\nthey **may be uploaded in any order or concurrently**; the first\nreceived block need not start at offset 0. Each block responds `202`\nwith a `ScanEnvelope` (`status: uploading`). When the received ranges\nfully cover `[0, total)` with no gaps, the upload is sealed and the\nbatchScanner pipeline is queued (its stages call the scan API over\nHTTP); poll `GET /v3/wfp/scan/{id}` for progress/result.\n`received_bytes` reports the total distinct bytes covered so far.\nRe-POSTing an already-received range with identical bytes is an\nidempotent `202` no-op.\n\nMode A errors: a non-canonical / non-UUIDv7 id → `400 INVALID_SCAN_ID`;\nmissing `Content-Range` → `400 MISSING_RANGE`; malformed `Content-Range`\n(or a body length that disagrees with the range) → `400 INVALID_RANGE`;\nan overlapping block carrying **conflicting** bytes, or reuse of a\nsealed id → `409 RANGE_CONFLICT` (note: out-of-order arrival alone is\n**not** a conflict); a block or declared total over the configured\nlimits → `413 PAYLOAD_TOO_LARGE`.\n","operationId":"postScanBatch","parameters":["a73e386e-e1af-4ab1-8692-d5bc379bc2df","4dd65068-15cb-4c55-9135-90028c7be12b"],"requestBody":"2be47449-5c71-4e60-bad5-8adb2ec6e255","responses":{"200":"02642891-22fe-4ec4-908a-d2b4007c9210","202":"f56e63b7-20fc-4f8f-a168-fd402230b985","400":"59085cb9-b834-447e-a50b-321b2f73681a","409":"b09d0a98-8e05-47da-ac17-a931ddb09f3b","413":"0fe0693e-7416-44c8-8208-d6331a47a342","500":"23397726-8668-46d0-aa0a-b628aa80095f","503":"55e35a99-1cbf-4b8b-99df-1c3e5d515a00","504":"2c41741d-713c-4be2-bb28-4bb5379153e5"},"method":"post","type":"path","servers":["a152268e-c92f-40ff-87f5-154709a12ae2"],"security":[],"path":"/v3/wfp/scan","baseUrlOptions":["https://api.scanoss.com"],"title":"Scan a WFP — synchronous single-shot, or one block of a chunked async upload","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a73e386e-e1af-4ab1-8692-d5bc379bc2df":{"in":"header","name":"X-Scan-Id","required":false,"schema":{"type":"string","format":"uuid","isRequired":false,"description":"Absent → Mode B (synchronous single-shot). Present → Mode A (chunked async): a client-generated canonical lowercase UUIDv7, sent on every block of the session.\n","uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"Absent → Mode B (synchronous single-shot). Present → Mode A (chunked async): a client-generated canonical lowercase UUIDv7, sent on every block of the session.\n","example":"018f7b2c-9a3e-7d41-8b6a-2c1d4e5f6a7b"},"4dd65068-15cb-4c55-9135-90028c7be12b":{"in":"header","name":"Content-Range","required":false,"schema":{"type":"string","isRequired":false,"description":"Required in Mode A (`X-Scan-Id` present): byte range of this block, e.g. `bytes 0-8388607/26214400` (end inclusive, 0-based). Ignored in Mode B.\n","uniqueKey":"","typeLabel":"string"},"description":"Required in Mode A (`X-Scan-Id` present): byte range of this block, e.g. `bytes 0-8388607/26214400` (end inclusive, 0-based). Ignored in Mode B.\n","example":"bytes 0-8388607/26214400"}},"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"02642891-22fe-4ec4-908a-d2b4007c9210":{"description":"Mode B only. The WFP was scanned inline; `ScanEnvelope` is at `status: completed` with `result` and `files_total` populated.\n","content":{"application/json":{"schema":{"type":"object","description":"Unified status envelope returned by `POST /v3/wfp/scan` (both modes) and `GET /v3/wfp/scan/{id}`. Mode B returns it synchronously already at `status: completed`; Mode A returns it per block (`uploading`) and on each poll. Zero-valued fields are omitted, so an uploading session carries no scan counters and a running scan carries no result.\n","required":["scan_id","status"],"properties":{"scan_id":{"type":"string","format":"uuid","x-go-type":"string","description":"Canonical lowercase UUIDv7 session id. In Mode A this is the client-supplied id; in Mode B it is a server-generated id for traceability only (no session is created).\n","example":"018f7b2c-9a3e-7d41-8b6a-2c1d4e5f6a7b","isRequired":true,"uniqueKey":"scan_id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["uploading","queued","scanning","completed","failed","expired"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"received_bytes":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Bytes received so far (Mode A upload; omitted when 0).","uniqueKey":"received_bytes","typeLabel":"integer"},"total_bytes":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Declared total upload size (Mode A; omitted when 0).","uniqueKey":"total_bytes","typeLabel":"integer"},"upload_percent":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Exact upload progress percent (Mode A; omitted when 0).","uniqueKey":"upload_percent","typeLabel":"integer"},"phase":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Current pipeline pass while scanning, e.g. 'Pass 1: scan files'.","uniqueKey":"phase","typeLabel":"string"},"phase_done":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Items processed in the current phase.","uniqueKey":"phase_done","typeLabel":"integer"},"phase_total":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Total items in the current phase.","uniqueKey":"phase_total","typeLabel":"integer"},"files_total":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"File count of the report, filled in on completion.","uniqueKey":"files_total","typeLabel":"integer"},"result":{"type":"object","description":"Populated only when status is `completed`. The batchScanner report — byte-identical whether obtained synchronously (Mode B) or by polling an async session to completion (Mode A).\n","properties":{"server":{"type":"object","description":"Optional run/server metadata passed through from the batchScanner pipeline when present; omitted otherwise.\n","properties":{"api_version":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"batchScanner API version.","uniqueKey":"result.server.api_version","typeLabel":"string"},"knowledge_base":{"type":"object","description":"SCANOSS knowledge-base versions the scan ran against.","properties":{"monthly_version":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Monthly KB snapshot version.","uniqueKey":"result.server.knowledge_base.monthly_version","typeLabel":"string"},"daily_version":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Daily KB delta version.","uniqueKey":"result.server.knowledge_base.daily_version","typeLabel":"string"}},"uniqueKey":"result.server.knowledge_base","typeLabel":"object"},"hostname":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Host that ran the scan.","uniqueKey":"result.server.hostname","typeLabel":"string"},"elapsed_ms":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Scan wall-clock time, in milliseconds.","uniqueKey":"result.server.elapsed_ms","typeLabel":"integer"}},"uniqueKey":"result.server","typeLabel":"object"},"files":{"type":"array","x-go-type-skip-optional-pointer":true,"description":"One entry per scanned file (order is unspecified).","items":{"type":"object","description":"One scanned-file entry in a batchScanner report.","required":["path","source_hash","file_hash","match_type","matches"],"properties":{"path":{"type":"string","description":"The scanned file path.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].path","typeLabel":"string"},"source_hash":{"type":"string","description":"MD5 of the input file (from the WFP).","isRequired":true,"uniqueKey":"result.files.items.[INDEX].source_hash","typeLabel":"string"},"file_hash":{"type":"string","description":"MD5 of the matched file: equals `source_hash` for a `file` match, the matched OSS file's MD5 for a `snippet` match (differs from `source_hash`), and empty for a `none` match.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].file_hash","typeLabel":"string"},"match_type":{"type":"string","enum":["file","snippet","none"],"description":"Full-file match, partial (snippet) match, or no match.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"matches":{"type":"array","description":"Matched KB entries for this file.","items":{"type":"object","description":"One matched KB entry for a scanned file.","required":["url_hash","confidence"],"properties":{"url_hash":{"type":"string","description":"url_hash of the matched component release.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].url_hash","typeLabel":"string"},"confidence":{"type":"string","enum":["LOW","MEDIUM","HIGH"],"description":"Attribution reliability grade for this match: LOW, MEDIUM or HIGH.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].confidence","typeLabel":"enum\u003cstring>"},"oss_file_path":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Path of the matched file inside the OSS component.","uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_file_path","typeLabel":"string"},"match_percentage":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Snippet matches only; omitted for full-file matches.","uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].match_percentage","typeLabel":"integer"},"input_line_ranges":{"type":"array","x-go-type-skip-optional-pointer":true,"description":"Snippet matches only — matched line ranges in the input file.","items":{"type":"object","description":"A matched line range (inclusive) within a file.","required":["start_line","end_line"],"properties":{"start_line":{"type":"integer","description":"First line of the matched range.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].input_line_ranges.items.[INDEX].start_line","typeLabel":"integer"},"end_line":{"type":"integer","description":"Last line of the matched range.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].input_line_ranges.items.[INDEX].end_line","typeLabel":"integer"}},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].input_line_ranges.items.[INDEX]","typeLabel":"object"},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].input_line_ranges","typeLabel":"object[]"},"oss_line_ranges":{"type":"array","x-go-type-skip-optional-pointer":true,"description":"Snippet matches only — matched line ranges in the OSS file.","items":{"type":"object","description":"A matched line range (inclusive) within a file.","required":["start_line","end_line"],"properties":{"start_line":{"type":"integer","description":"First line of the matched range.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_line_ranges.items.[INDEX].start_line","typeLabel":"integer"},"end_line":{"type":"integer","description":"Last line of the matched range.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_line_ranges.items.[INDEX].end_line","typeLabel":"integer"}},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_line_ranges.items.[INDEX]","typeLabel":"object"},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_line_ranges","typeLabel":"object[]"}},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches","typeLabel":"object[]"}},"uniqueKey":"result.files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"result.files","typeLabel":"object[]"},"components":{"type":"object","x-go-type-skip-optional-pointer":true,"description":"Resolved components keyed by url_hash. Extra fields may be present.","additionalProperties":{"type":"object","description":"A resolved component in a batchScanner report, keyed by url_hash in `ScanResult.components`. Open to extra upstream fields.\n","properties":{"component":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.component","typeLabel":"string"},"vendor":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.vendor","typeLabel":"string"},"version":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.version","typeLabel":"string"},"file":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.file","typeLabel":"string"},"url":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.url","typeLabel":"string"},"release_date":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.release_date","typeLabel":"string"},"rank":{"type":"integer","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.rank","typeLabel":"integer"},"purls":{"type":"array","items":{"type":"string","uniqueKey":"result.components.additionalProperties.purls.items.[INDEX]","typeLabel":"string"},"x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.purls","typeLabel":"string[]"}},"uniqueKey":"result.components.additionalProperties","typeLabel":"object"},"uniqueKey":"result.components","typeLabel":"object"}},"uniqueKey":"result","typeLabel":"object"},"error":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Populated only when status is `failed`.","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"scan_id":"018f7b2c-9a3e-7d41-8b6a-2c1d4e5f6a7b","status":"uploading","received_bytes":123,"total_bytes":123,"upload_percent":123,"phase":"\u003cstring>","phase_done":123,"phase_total":123,"files_total":123,"result":{"server":{"api_version":"\u003cstring>","knowledge_base":{"monthly_version":"\u003cstring>","daily_version":"\u003cstring>"},"hostname":"\u003cstring>","elapsed_ms":123},"files":[{"path":"\u003cstring>","source_hash":"\u003cstring>","file_hash":"\u003cstring>","match_type":"file","matches":[{"url_hash":"\u003cstring>","confidence":"LOW","oss_file_path":"\u003cstring>","match_percentage":123,"input_line_ranges":[{"start_line":123,"end_line":123}],"oss_line_ranges":[{"start_line":123,"end_line":123}]}]}],"components":{}},"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"f56e63b7-20fc-4f8f-a168-fd402230b985":{"description":"Mode A only. Block accepted; `ScanEnvelope` at `status: uploading` (the final block transitions the session to queued → scanning).\n","headers":{"X-Scan-Id":{"schema":{"type":"string","format":"uuid"},"description":"The session id (also present in the body)."}},"content":{"application/json":{"schema":{"type":"object","description":"Unified status envelope returned by `POST /v3/wfp/scan` (both modes) and `GET /v3/wfp/scan/{id}`. Mode B returns it synchronously already at `status: completed`; Mode A returns it per block (`uploading`) and on each poll. Zero-valued fields are omitted, so an uploading session carries no scan counters and a running scan carries no result.\n","required":["scan_id","status"],"properties":{"scan_id":{"type":"string","format":"uuid","x-go-type":"string","description":"Canonical lowercase UUIDv7 session id. In Mode A this is the client-supplied id; in Mode B it is a server-generated id for traceability only (no session is created).\n","example":"018f7b2c-9a3e-7d41-8b6a-2c1d4e5f6a7b","isRequired":true,"uniqueKey":"scan_id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["uploading","queued","scanning","completed","failed","expired"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"received_bytes":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Bytes received so far (Mode A upload; omitted when 0).","uniqueKey":"received_bytes","typeLabel":"integer"},"total_bytes":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Declared total upload size (Mode A; omitted when 0).","uniqueKey":"total_bytes","typeLabel":"integer"},"upload_percent":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Exact upload progress percent (Mode A; omitted when 0).","uniqueKey":"upload_percent","typeLabel":"integer"},"phase":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Current pipeline pass while scanning, e.g. 'Pass 1: scan files'.","uniqueKey":"phase","typeLabel":"string"},"phase_done":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Items processed in the current phase.","uniqueKey":"phase_done","typeLabel":"integer"},"phase_total":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Total items in the current phase.","uniqueKey":"phase_total","typeLabel":"integer"},"files_total":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"File count of the report, filled in on completion.","uniqueKey":"files_total","typeLabel":"integer"},"result":{"type":"object","description":"Populated only when status is `completed`. The batchScanner report — byte-identical whether obtained synchronously (Mode B) or by polling an async session to completion (Mode A).\n","properties":{"server":{"type":"object","description":"Optional run/server metadata passed through from the batchScanner pipeline when present; omitted otherwise.\n","properties":{"api_version":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"batchScanner API version.","uniqueKey":"result.server.api_version","typeLabel":"string"},"knowledge_base":{"type":"object","description":"SCANOSS knowledge-base versions the scan ran against.","properties":{"monthly_version":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Monthly KB snapshot version.","uniqueKey":"result.server.knowledge_base.monthly_version","typeLabel":"string"},"daily_version":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Daily KB delta version.","uniqueKey":"result.server.knowledge_base.daily_version","typeLabel":"string"}},"uniqueKey":"result.server.knowledge_base","typeLabel":"object"},"hostname":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Host that ran the scan.","uniqueKey":"result.server.hostname","typeLabel":"string"},"elapsed_ms":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Scan wall-clock time, in milliseconds.","uniqueKey":"result.server.elapsed_ms","typeLabel":"integer"}},"uniqueKey":"result.server","typeLabel":"object"},"files":{"type":"array","x-go-type-skip-optional-pointer":true,"description":"One entry per scanned file (order is unspecified).","items":{"type":"object","description":"One scanned-file entry in a batchScanner report.","required":["path","source_hash","file_hash","match_type","matches"],"properties":{"path":{"type":"string","description":"The scanned file path.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].path","typeLabel":"string"},"source_hash":{"type":"string","description":"MD5 of the input file (from the WFP).","isRequired":true,"uniqueKey":"result.files.items.[INDEX].source_hash","typeLabel":"string"},"file_hash":{"type":"string","description":"MD5 of the matched file: equals `source_hash` for a `file` match, the matched OSS file's MD5 for a `snippet` match (differs from `source_hash`), and empty for a `none` match.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].file_hash","typeLabel":"string"},"match_type":{"type":"string","enum":["file","snippet","none"],"description":"Full-file match, partial (snippet) match, or no match.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"matches":{"type":"array","description":"Matched KB entries for this file.","items":{"type":"object","description":"One matched KB entry for a scanned file.","required":["url_hash","confidence"],"properties":{"url_hash":{"type":"string","description":"url_hash of the matched component release.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].url_hash","typeLabel":"string"},"confidence":{"type":"string","enum":["LOW","MEDIUM","HIGH"],"description":"Attribution reliability grade for this match: LOW, MEDIUM or HIGH.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].confidence","typeLabel":"enum\u003cstring>"},"oss_file_path":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Path of the matched file inside the OSS component.","uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_file_path","typeLabel":"string"},"match_percentage":{"type":"integer","x-go-type-skip-optional-pointer":true,"description":"Snippet matches only; omitted for full-file matches.","uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].match_percentage","typeLabel":"integer"},"input_line_ranges":{"type":"array","x-go-type-skip-optional-pointer":true,"description":"Snippet matches only — matched line ranges in the input file.","items":{"type":"object","description":"A matched line range (inclusive) within a file.","required":["start_line","end_line"],"properties":{"start_line":{"type":"integer","description":"First line of the matched range.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].input_line_ranges.items.[INDEX].start_line","typeLabel":"integer"},"end_line":{"type":"integer","description":"Last line of the matched range.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].input_line_ranges.items.[INDEX].end_line","typeLabel":"integer"}},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].input_line_ranges.items.[INDEX]","typeLabel":"object"},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].input_line_ranges","typeLabel":"object[]"},"oss_line_ranges":{"type":"array","x-go-type-skip-optional-pointer":true,"description":"Snippet matches only — matched line ranges in the OSS file.","items":{"type":"object","description":"A matched line range (inclusive) within a file.","required":["start_line","end_line"],"properties":{"start_line":{"type":"integer","description":"First line of the matched range.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_line_ranges.items.[INDEX].start_line","typeLabel":"integer"},"end_line":{"type":"integer","description":"Last line of the matched range.","isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_line_ranges.items.[INDEX].end_line","typeLabel":"integer"}},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_line_ranges.items.[INDEX]","typeLabel":"object"},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX].oss_line_ranges","typeLabel":"object[]"}},"uniqueKey":"result.files.items.[INDEX].matches.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"result.files.items.[INDEX].matches","typeLabel":"object[]"}},"uniqueKey":"result.files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"result.files","typeLabel":"object[]"},"components":{"type":"object","x-go-type-skip-optional-pointer":true,"description":"Resolved components keyed by url_hash. Extra fields may be present.","additionalProperties":{"type":"object","description":"A resolved component in a batchScanner report, keyed by url_hash in `ScanResult.components`. Open to extra upstream fields.\n","properties":{"component":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.component","typeLabel":"string"},"vendor":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.vendor","typeLabel":"string"},"version":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.version","typeLabel":"string"},"file":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.file","typeLabel":"string"},"url":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.url","typeLabel":"string"},"release_date":{"type":"string","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.release_date","typeLabel":"string"},"rank":{"type":"integer","x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.rank","typeLabel":"integer"},"purls":{"type":"array","items":{"type":"string","uniqueKey":"result.components.additionalProperties.purls.items.[INDEX]","typeLabel":"string"},"x-go-type-skip-optional-pointer":true,"uniqueKey":"result.components.additionalProperties.purls","typeLabel":"string[]"}},"uniqueKey":"result.components.additionalProperties","typeLabel":"object"},"uniqueKey":"result.components","typeLabel":"object"}},"uniqueKey":"result","typeLabel":"object"},"error":{"type":"string","x-go-type-skip-optional-pointer":true,"description":"Populated only when status is `failed`.","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"scan_id":"018f7b2c-9a3e-7d41-8b6a-2c1d4e5f6a7b","status":"uploading","received_bytes":123,"total_bytes":123,"upload_percent":123,"phase":"\u003cstring>","phase_done":123,"phase_total":123,"files_total":123,"result":{"server":{"api_version":"\u003cstring>","knowledge_base":{"monthly_version":"\u003cstring>","daily_version":"\u003cstring>"},"hostname":"\u003cstring>","elapsed_ms":123},"files":[{"path":"\u003cstring>","source_hash":"\u003cstring>","file_hash":"\u003cstring>","match_type":"file","matches":[{"url_hash":"\u003cstring>","confidence":"LOW","oss_file_path":"\u003cstring>","match_percentage":123,"input_line_ranges":[{"start_line":123,"end_line":123}],"oss_line_ranges":[{"start_line":123,"end_line":123}]}]}],"components":{}},"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"59085cb9-b834-447e-a50b-321b2f73681a":{"description":"`INVALID_BODY` (Mode B empty WFP), `INVALID_SCAN_ID` (Mode A: id is not a canonical lowercase UUIDv7), `MISSING_RANGE` (Mode A: no `Content-Range`) or `INVALID_RANGE` (Mode A: malformed range / body length mismatch).\n","content":{"application/json":{"schema":{"type":"object","required":["status","error","timestamp"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error identifier. Possible values:\n - INVALID_BODY, INVALID_QUERY, INVALID_FILE_HASH, INVALID_RANGE\n - EMPTY_BATCH\n - INVALID_PURL, COMPONENT_NOT_FOUND, VERSION_NOT_FOUND\n - NOTICE_NOT_FOUND, FILE_NOT_FOUND, MZ_READ_FAILED\n - TIMEOUT, INTERNAL_ERROR\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","error":{"code":"INVALID_SCAN_ID","message":"invalid scan id: not a UUIDv7"},"timestamp":"2026-05-19T11:39:56Z"},"examples":{"Example":{"title":"Example","value":{"status":"error","error":{"code":"INVALID_SCAN_ID","message":"invalid scan id: not a UUIDv7"},"timestamp":"2026-05-19T11:39:56Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"b09d0a98-8e05-47da-ac17-a931ddb09f3b":{"description":"Block range gaps or overlaps the bytes already received","content":{"application/json":{"schema":{"type":"object","required":["status","error","timestamp"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error identifier. Possible values:\n - INVALID_BODY, INVALID_QUERY, INVALID_FILE_HASH, INVALID_RANGE\n - EMPTY_BATCH\n - INVALID_PURL, COMPONENT_NOT_FOUND, VERSION_NOT_FOUND\n - NOTICE_NOT_FOUND, FILE_NOT_FOUND, MZ_READ_FAILED\n - TIMEOUT, INTERNAL_ERROR\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","error":{"code":"RANGE_CONFLICT","message":"block does not continue from received_bytes"},"timestamp":"2026-05-19T11:39:56Z"},"examples":{"Example":{"title":"Example","value":{"status":"error","error":{"code":"RANGE_CONFLICT","message":"block does not continue from received_bytes"},"timestamp":"2026-05-19T11:39:56Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"0fe0693e-7416-44c8-8208-d6331a47a342":{"description":"Upload exceeds the configured size limit","content":{"application/json":{"schema":{"type":"object","required":["status","error","timestamp"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error identifier. Possible values:\n - INVALID_BODY, INVALID_QUERY, INVALID_FILE_HASH, INVALID_RANGE\n - EMPTY_BATCH\n - INVALID_PURL, COMPONENT_NOT_FOUND, VERSION_NOT_FOUND\n - NOTICE_NOT_FOUND, FILE_NOT_FOUND, MZ_READ_FAILED\n - TIMEOUT, INTERNAL_ERROR\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","error":{"code":"PAYLOAD_TOO_LARGE","message":"upload exceeds max size"},"timestamp":"2026-05-19T11:39:56Z"},"examples":{"Example":{"title":"Example","value":{"status":"error","error":{"code":"PAYLOAD_TOO_LARGE","message":"upload exceeds max size"},"timestamp":"2026-05-19T11:39:56Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"23397726-8668-46d0-aa0a-b628aa80095f":{"description":"Unexpected server error","content":{"application/json":{"schema":{"type":"object","required":["status","error","timestamp"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error identifier. Possible values:\n - INVALID_BODY, INVALID_QUERY, INVALID_FILE_HASH, INVALID_RANGE\n - EMPTY_BATCH\n - INVALID_PURL, COMPONENT_NOT_FOUND, VERSION_NOT_FOUND\n - NOTICE_NOT_FOUND, FILE_NOT_FOUND, MZ_READ_FAILED\n - TIMEOUT, INTERNAL_ERROR\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","error":{"code":"INTERNAL_ERROR","message":"..."},"timestamp":"2026-05-19T11:39:56Z"},"examples":{"Example":{"title":"Example","value":{"status":"error","error":{"code":"INTERNAL_ERROR","message":"..."},"timestamp":"2026-05-19T11:39:56Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"55e35a99-1cbf-4b8b-99df-1c3e5d515a00":{"description":"The scan engine is not configured or not executable","content":{"application/json":{"schema":{"type":"object","required":["status","error","timestamp"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error identifier. Possible values:\n - INVALID_BODY, INVALID_QUERY, INVALID_FILE_HASH, INVALID_RANGE\n - EMPTY_BATCH\n - INVALID_PURL, COMPONENT_NOT_FOUND, VERSION_NOT_FOUND\n - NOTICE_NOT_FOUND, FILE_NOT_FOUND, MZ_READ_FAILED\n - TIMEOUT, INTERNAL_ERROR\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","error":{"code":"ENGINE_UNAVAILABLE","message":"scan engine not available"},"timestamp":"2026-05-19T11:39:56Z"},"examples":{"Example":{"title":"Example","value":{"status":"error","error":{"code":"ENGINE_UNAVAILABLE","message":"scan engine not available"},"timestamp":"2026-05-19T11:39:56Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"2c41741d-713c-4be2-bb28-4bb5379153e5":{"description":"Request exceeded the server-side deadline","content":{"application/json":{"schema":{"type":"object","required":["status","error","timestamp"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable machine-readable error identifier. Possible values:\n - INVALID_BODY, INVALID_QUERY, INVALID_FILE_HASH, INVALID_RANGE\n - EMPTY_BATCH\n - INVALID_PURL, COMPONENT_NOT_FOUND, VERSION_NOT_FOUND\n - NOTICE_NOT_FOUND, FILE_NOT_FOUND, MZ_READ_FAILED\n - TIMEOUT, INTERNAL_ERROR\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","error":{"code":"TIMEOUT","message":"request timed out"},"timestamp":"2026-05-19T11:39:56Z"},"examples":{"Example":{"title":"Example","value":{"status":"error","error":{"code":"TIMEOUT","message":"request timed out"},"timestamp":"2026-05-19T11:39:56Z"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"a152268e-c92f-40ff-87f5-154709a12ae2":{"url":"https://api.scanoss.com","description":"Production"}}},"originalFileLocation":"api-reference/developer-tools/v3-openapi.yaml"},"subdomain":"scanoss","siteName":"SCANOSS documentation","title":"Scan a WFP — synchronous single-shot, or one block of a chunked async upload - SCANOSS documentation","navMaps":{"firstHrefInVersion":{"v2":{"href":"/developer-tools/api-reference/v3/scan/scan-a-wfp-—-synchronous-single-shot-or-one-block-of-a-chunked-async-upload","matchLevel":0},"v1":{"href":"/en/latest/introduction/what-is-scanoss","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-10-07T10:42:15.979Z","originalFileLocation":"developer-tools/api-reference/v3/scan/scan-a-wfp-—-synchronous-single-shot-or-one-block-of-a-chunked-async-upload.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Dual-mode upload, selected by the presence of the X-Scan-Id request header. Both modes return the same ScanEnvelope envelope, and the result payload is byte-identical to the polled async result (both run the same batchScanner pipeline → same Report). Mode B — synchronous single-shot (no X-Scan-Id). The request body is one complete WFP (application/octet-stream, capped at scan.max_upload_size), scanned inline. Responds 200 with a ScanEnvelope already at status: completed, carrying result, files_total and a fresh scan_id (for traceability only — no session is created, nothing to poll). Content-Range is ignored. An empty/whitespace body → 400 INVALID_BODY. The request blocks for the whole scan, so this mode is bounded by the request timeout and intended for small inputs. Mode A — chunked async (X-Scan-Id present). One block of a multi-block upload too large for a single request. The client generates the session id — a canonical lowercase UUIDv7 — and sends it on every block (it is what a load balancer hashes on to keep all blocks on one instance). Content-Range: bytes -/ is required. Blocks are reassembled by their declared byte offset, so they may be uploaded in any order or concurrently; the first received block need not start at offset 0. Each block responds 202 with a ScanEnvelope (status: uploading). When the received ranges fully cover [0, total) with no gaps, the upload is sealed and the batchScanner pipeline is queued (its stages call the scan API over HTTP); poll GET /v3/wfp/scan/{id} for progress/result. received_bytes reports the total distinct bytes covered so far. Re-POSTing an already-received range with identical bytes is an idempotent 202 no-op. Mode A errors: a non-canonical / non-UUIDv7 id → 400 INVALID_SCAN_ID; missing Content-Range → 400 MISSING_RANGE; malformed Content-Range (or a body length that disagrees with the range) → 400 INVALID_RANGE; an overlapping block carrying conflicting bytes, or reuse of a sealed id → 409 RANGE_CONFLICT (note: out-of-order arrival alone is not a conflict); a block or declared total over the configured limits → 413 PAYLOAD_TOO_LARGE.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SCANOSS documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/scanoss/KZfWE-Zg_gP00ddS/_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/scanoss/KZfWE-Zg_gP00ddS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/scanoss/KZfWE-Zg_gP00ddS/_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/scanoss/KZfWE-Zg_gP00ddS/_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/scanoss/KZfWE-Zg_gP00ddS/_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/scanoss/KZfWE-Zg_gP00ddS/_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/scanoss/KZfWE-Zg_gP00ddS/_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/scanoss/KZfWE-Zg_gP00ddS/_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/scanoss/KZfWE-Zg_gP00ddS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Scan a WFP — synchronous single-shot, or one block of a chunked async upload - SCANOSS documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Dual-mode upload, selected by the presence of the X-Scan-Id request header. Both modes return the same ScanEnvelope envelope, and the result payload is byte-identical to the polled async result (both run the same batchScanner pipeline → same Report). Mode B — synchronous single-shot (no X-Scan-Id). The request body is one complete WFP (application/octet-stream, capped at scan.max_upload_size), scanned inline. Responds 200 with a ScanEnvelope already at status: completed, carrying result, files_total and a fresh scan_id (for traceability only — no session is created, nothing to poll). Content-Range is ignored. An empty/whitespace body → 400 INVALID_BODY. The request blocks for the whole scan, so this mode is bounded by the request timeout and intended for small inputs. Mode A — chunked async (X-Scan-Id present). One block of a multi-block upload too large for a single request. The client generates the session id — a canonical lowercase UUIDv7 — and sends it on every block (it is what a load balancer hashes on to keep all blocks on one instance). Content-Range: bytes -/ is required. Blocks are reassembled by their declared byte offset, so they may be uploaded in any order or concurrently; the first received block need not start at offset 0. Each block responds 202 with a ScanEnvelope (status: uploading). When the received ranges fully cover [0, total) with no gaps, the upload is sealed and the batchScanner pipeline is queued (its stages call the scan API over HTTP); poll GET /v3/wfp/scan/{id} for progress/result. received_bytes reports the total distinct bytes covered so far. Re-POSTing an already-received range with identical bytes is an idempotent 202 no-op. Mode A errors: a non-canonical / non-UUIDv7 id → 400 INVALID_SCAN_ID; missing Content-Range → 400 MISSING_RANGE; malformed Content-Range (or a body length that disagrees with the range) → 400 INVALID_RANGE; an overlapping block carrying conflicting bytes, or reuse of a sealed id → 409 RANGE_CONFLICT (note: out-of-order arrival alone is not a conflict); a block or declared total over the configured limits → 413 PAYLOAD_TOO_LARGE.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SCANOSS documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-—-synchronous-single-shot-or-one-block-of-a-chunked-async-upload\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://scanoss.mintlify.site/_mintlify/api/og/v2?division=scan\u0026amp;title=Scan+a+WFP+%E2%80%94+synchronous+single-shot%2C+or+one+block+of+a+chunked+async+upload\u0026amp;description=Dual-mode+upload%2C+selected+by+the+presence+of+the+%60X-Scan-Id%60+request%0Aheader.+Both+modes+return+the+same+%60ScanEnvelope%60+envelope%2C+and+the%0A%60result%60+payload+is+by\u0026amp;theme=27507c7cd4c9b47ed5abe8b8\u0026amp;signature=164d355e11e4a3087dcf9b4aa6aa0889929f3b5b7ae0b260d2a6b5d61374cbaf\">\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=\"Scan a WFP — synchronous single-shot, or one block of a chunked async upload - SCANOSS documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Dual-mode upload, selected by the presence of the X-Scan-Id request header. Both modes return the same ScanEnvelope envelope, and the result payload is byte-identical to the polled async result (both run the same batchScanner pipeline → same Report). Mode B — synchronous single-shot (no X-Scan-Id). The request body is one complete WFP (application/octet-stream, capped at scan.max_upload_size), scanned inline. Responds 200 with a ScanEnvelope already at status: completed, carrying result, files_total and a fresh scan_id (for traceability only — no session is created, nothing to poll). Content-Range is ignored. An empty/whitespace body → 400 INVALID_BODY. The request blocks for the whole scan, so this mode is bounded by the request timeout and intended for small inputs. Mode A — chunked async (X-Scan-Id present). One block of a multi-block upload too large for a single request. The client generates the session id — a canonical lowercase UUIDv7 — and sends it on every block (it is what a load balancer hashes on to keep all blocks on one instance). Content-Range: bytes -/ is required. Blocks are reassembled by their declared byte offset, so they may be uploaded in any order or concurrently; the first received block need not start at offset 0. Each block responds 202 with a ScanEnvelope (status: uploading). When the received ranges fully cover [0, total) with no gaps, the upload is sealed and the batchScanner pipeline is queued (its stages call the scan API over HTTP); poll GET /v3/wfp/scan/{id} for progress/result. received_bytes reports the total distinct bytes covered so far. Re-POSTing an already-received range with identical bytes is an idempotent 202 no-op. Mode A errors: a non-canonical / non-UUIDv7 id → 400 INVALID_SCAN_ID; missing Content-Range → 400 MISSING_RANGE; malformed Content-Range (or a body length that disagrees with the range) → 400 INVALID_RANGE; an overlapping block carrying conflicting bytes, or reuse of a sealed id → 409 RANGE_CONFLICT (note: out-of-order arrival alone is not a conflict); a block or declared total over the configured limits → 413 PAYLOAD_TOO_LARGE.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://scanoss.mintlify.site/_mintlify/api/og/v2?division=scan\u0026amp;title=Scan+a+WFP+%E2%80%94+synchronous+single-shot%2C+or+one+block+of+a+chunked+async+upload\u0026amp;description=Dual-mode+upload%2C+selected+by+the+presence+of+the+%60X-Scan-Id%60+request%0Aheader.+Both+modes+return+the+same+%60ScanEnvelope%60+envelope%2C+and+the%0A%60result%60+payload+is+by\u0026amp;theme=27507c7cd4c9b47ed5abe8b8\u0026amp;signature=164d355e11e4a3087dcf9b4aa6aa0889929f3b5b7ae0b260d2a6b5d61374cbaf\">\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/scanoss/KZfWE-Zg_gP00ddS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SCANOSS documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF6A1A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-—-synchronous-single-shot-or-one-block-of-a-chunked-async-upload\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.scanoss.com/#organization\",\"name\":\"SCANOSS documentation\",\"url\":\"https://docs.scanoss.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/scanoss/9UP7eHL2Z_rQPx8l/scanoss-logo-horizontal-positive.svg?fit=max\u0026auto=format\u0026n=9UP7eHL2Z_rQPx8l\u0026q=85\u0026s=686c4487013423ef804e2e83983c76ef\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.scanoss.com#website\",\"name\":\"SCANOSS documentation\",\"url\":\"https://docs.scanoss.com\",\"publisher\":{\"@id\":\"https://docs.scanoss.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload#webpage\",\"url\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload\",\"name\":\"Scan a WFP — synchronous single-shot, or one block of a chunked async upload\",\"description\":\"Dual-mode upload, selected by the presence of the X-Scan-Id request header. Both modes return the same ScanEnvelope envelope, and the result payload is byte-identical to the polled async result (both run the same batchScanner pipeline → same Report). Mode B — synchronous single-shot (no X-Scan-Id). The request body is one complete WFP (application/octet-stream, capped at scan.max_upload_size), scanned inline. Responds 200 with a ScanEnvelope already at status: completed, carrying result, files_total and a fresh scan_id (for traceability only — no session is created, nothing to poll). Content-Range is ignored. An empty/whitespace body → 400 INVALID_BODY. The request blocks for the whole scan, so this mode is bounded by the request timeout and intended for small inputs. Mode A — chunked async (X-Scan-Id present). One block of a multi-block upload too large for a single request. The client generates the session id — a canonical lowercase UUIDv7 — and sends it on every block (it is what a load balancer hashes on to keep all blocks on one instance). Content-Range: bytes -/ is required. Blocks are reassembled by their declared byte offset, so they may be uploaded in any order or concurrently; the first received block need not start at offset 0. Each block responds 202 with a ScanEnvelope (status: uploading). When the received ranges fully cover [0, total) with no gaps, the upload is sealed and the batchScanner pipeline is queued (its stages call the scan API over HTTP); poll GET /v3/wfp/scan/{id} for progress/result. received_bytes reports the total distinct bytes covered so far. Re-POSTing an already-received range with identical bytes is an idempotent 202 no-op. Mode A errors: a non-canonical / non-UUIDv7 id → 400 INVALID_SCAN_ID; missing Content-Range → 400 MISSING_RANGE; malformed Content-Range (or a body length that disagrees with the range) → 400 INVALID_RANGE; an overlapping block carrying conflicting bytes, or reuse of a sealed id → 409 RANGE_CONFLICT (note: out-of-order arrival alone is not a conflict); a block or declared total over the configured limits → 413 PAYLOAD_TOO_LARGE.\",\"dateModified\":\"2026-10-07T10:42:15.979Z\",\"isPartOf\":{\"@id\":\"https://docs.scanoss.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://docs.scanoss.com/en/latest/developer-tools/api-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"v3 endpoints\",\"item\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/licenses/attribution-files-licensenotice%E2%80%A6-for-one-or-many-components\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"scan\",\"item\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-an-uploaded-wfp-source-archive-synchronous\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Scan a WFP — synchronous single-shot, or one block of a chunked async upload\",\"item\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload#apireference\",\"headline\":\"Scan a WFP — synchronous single-shot, or one block of a chunked async upload\",\"name\":\"Scan a WFP — synchronous single-shot, or one block of a chunked async upload\",\"description\":\"Dual-mode upload, selected by the presence of the X-Scan-Id request header. Both modes return the same ScanEnvelope envelope, and the result payload is byte-identical to the polled async result (both run the same batchScanner pipeline → same Report). Mode B — synchronous single-shot (no X-Scan-Id). The request body is one complete WFP (application/octet-stream, capped at scan.max_upload_size), scanned inline. Responds 200 with a ScanEnvelope already at status: completed, carrying result, files_total and a fresh scan_id (for traceability only — no session is created, nothing to poll). Content-Range is ignored. An empty/whitespace body → 400 INVALID_BODY. The request blocks for the whole scan, so this mode is bounded by the request timeout and intended for small inputs. Mode A — chunked async (X-Scan-Id present). One block of a multi-block upload too large for a single request. The client generates the session id — a canonical lowercase UUIDv7 — and sends it on every block (it is what a load balancer hashes on to keep all blocks on one instance). Content-Range: bytes -/ is required. Blocks are reassembled by their declared byte offset, so they may be uploaded in any order or concurrently; the first received block need not start at offset 0. Each block responds 202 with a ScanEnvelope (status: uploading). When the received ranges fully cover [0, total) with no gaps, the upload is sealed and the batchScanner pipeline is queued (its stages call the scan API over HTTP); poll GET /v3/wfp/scan/{id} for progress/result. received_bytes reports the total distinct bytes covered so far. Re-POSTing an already-received range with identical bytes is an idempotent 202 no-op. Mode A errors: a non-canonical / non-UUIDv7 id → 400 INVALID_SCAN_ID; missing Content-Range → 400 MISSING_RANGE; malformed Content-Range (or a body length that disagrees with the range) → 400 INVALID_RANGE; an overlapping block carrying conflicting bytes, or reuse of a sealed id → 409 RANGE_CONFLICT (note: out-of-order arrival alone is not a conflict); a block or declared total over the configured limits → 413 PAYLOAD_TOO_LARGE.\",\"url\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scanoss.com/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload#webpage\"},\"dateModified\":\"2026-10-07T10:42:15.979Z\",\"publisher\":{\"@id\":\"https://docs.scanoss.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.scanoss.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SCANOSS documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SCANOSS documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/developer-tools/api-reference/v3/scan/scan-a-wfp-%E2%80%94-synchronous-single-shot-or-one-block-of-a-chunked-async-upload.md","siteName":"SCANOSS documentation","nav":{"global":null,"versions":[{"version":"v2","default":true,"tabs":[{"tab":"Earnie","hidden":false,"pages":[{"title":"Earnie","href":"/en/latest/earnie/introduction"}]},{"tab":"Developer Tools","hidden":false,"groups":[{"group":"Get started","expanded":false,"pages":[{"title":"Choose your path","sidebarTitle":"Overview","href":"/en/latest/developer-tools/overview"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/en/latest/developer-tools/quickstart"},{"title":"API keys and authentication","sidebarTitle":"API keys and authentication","href":"/en/latest/developer-tools/authentication"}]},{"group":"Recipes","expanded":false,"pages":[{"title":"Recipes","sidebarTitle":"Recipes","href":"/en/latest/developer-tools/recipes/index"},{"title":"Scan every pull request in CI","sidebarTitle":"Scan pull requests","href":"/en/latest/developer-tools/recipes/scan-pull-requests"},{"title":"Fail the build on a disallowed licence or a known vulnerability","sidebarTitle":"Licence and vulnerability gate","href":"/en/latest/developer-tools/recipes/licence-and-vulnerability-gate"},{"title":"Approve components with scanoss.json","sidebarTitle":"Approve components (BOM rules)","href":"/en/latest/developer-tools/recipes/approve-components-bom-rules"},{"title":"Local pre-commit check with scanoss-cli","sidebarTitle":"Pre-commit check","href":"/en/latest/developer-tools/recipes/pre-commit-check"},{"title":"Generate an SBOM for each release","sidebarTitle":"Release SBOM","href":"/en/latest/developer-tools/recipes/release-sbom"},{"title":"Keep an existing SBOM current","sidebarTitle":"Weekly SBOM refresh","href":"/en/latest/developer-tools/recipes/refresh-sbom-with-enrich"},{"title":"Build a cryptographic inventory (CBOM) for post-quantum readiness","sidebarTitle":"Cryptographic inventory (CBOM)","href":"/en/latest/developer-tools/recipes/crypto-inventory-cbom"},{"title":"Fingerprint-only scanning for restricted environments","sidebarTitle":"Fingerprint-only scanning","href":"/en/latest/developer-tools/recipes/fingerprint-only-scanning"}]},{"group":"CLI reference","expanded":false,"pages":[{"group":"scanoss-cli","expanded":false,"pages":[{"title":"Installation","sidebarTitle":"Installation","href":"/en/latest/cli/scanoss-go/installation"},{"title":"Quick start","sidebarTitle":"Quick start","href":"/en/latest/cli/scanoss-go/quick-start"},{"title":"Scanning your project","sidebarTitle":"Scanning your project","href":"/en/latest/cli/scanoss-go/scanning-your-project"},{"title":"Output formats","sidebarTitle":"Output formats","href":"/en/latest/cli/scanoss-go/output-formats"},{"title":"Decoration and enrichment","sidebarTitle":"Decoration and enrichment","href":"/en/latest/cli/scanoss-go/decoration-and-enrichment"},{"title":"Configuration","sidebarTitle":"Configuration","href":"/en/latest/cli/scanoss-go/configuration"},{"title":"Using Docker","sidebarTitle":"Using Docker","href":"/en/latest/cli/scanoss-go/using-docker"}]},{"group":"Crypto Finder","expanded":false,"pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/en/latest/cli/crypto-finder/overview"},{"title":"Installation","sidebarTitle":"Installation","href":"/en/latest/cli/crypto-finder/installation"},{"title":"Quick start","sidebarTitle":"Quick start","href":"/en/latest/cli/crypto-finder/quick-start"},{"title":"Configuration","sidebarTitle":"Configuration","href":"/en/latest/cli/crypto-finder/configuration"},{"title":"Output formats","sidebarTitle":"Output formats","href":"/en/latest/cli/crypto-finder/output-formats"},{"title":"Docker usage","sidebarTitle":"Docker usage","href":"/en/latest/cli/crypto-finder/docker-usage"},{"title":"Dependency scanning and call chain attribution","sidebarTitle":"Dependency scanning and call chain attribution","href":"/en/latest/cli/crypto-finder/dependency-scanning"}]}]},{"group":"API reference","expanded":false,"pages":[{"title":"v3 API overview","sidebarTitle":"v3 API overview","href":"/en/latest/developer-tools/api-overview"},{"group":"v3 endpoints","pages":[{"group":"licenses","pages":[{"title":"Attribution files (LICENSE/NOTICE/…) for one or many components","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/license/attribution","href":"/developer-tools/api-reference/v3/licenses/attribution-files-licensenotice…-for-one-or-many-components"},{"title":"Per-file license evidence for one or many components","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/license/evidence","href":"/developer-tools/api-reference/v3/licenses/per-file-license-evidence-for-one-or-many-components"},{"title":"Declared licenses for one component (papi License service)","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/licenses","href":"/developer-tools/api-reference/v3/licenses/declared-licenses-for-one-component-papi-license-service"},{"title":"Declared licenses for many components (batch)","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/licenses","href":"/developer-tools/api-reference/v3/licenses/declared-licenses-for-many-components-batch"},{"title":"SPDX registry metadata + OSADL data for a license id","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/licenses/details","href":"/developer-tools/api-reference/v3/licenses/spdx-registry-metadata-+-osadl-data-for-a-license-id"},{"title":"OSADL compliance obligations for a license id","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/licenses/obligations","href":"/developer-tools/api-reference/v3/licenses/osadl-compliance-obligations-for-a-license-id"}]},{"group":"copyright","pages":[{"title":"Per-file copyright evidence for one or many components","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/copyright/evidence","href":"/developer-tools/api-reference/v3/copyright/per-file-copyright-evidence-for-one-or-many-components"},{"title":"Distinct copyright holders for one or many components","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/copyright/holders","href":"/developer-tools/api-reference/v3/copyright/distinct-copyright-holders-for-one-or-many-components"}]},{"group":"components","pages":[{"title":"Search components by free term, vendor, component or both","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/components/search","href":"/developer-tools/api-reference/v3/components/search-components-by-free-term-vendor-component-or-both"},{"title":"List versions (with licenses) for a given purl","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/components/versions","href":"/developer-tools/api-reference/v3/components/list-versions-with-licenses-for-a-given-purl"},{"title":"Resolve lifecycle status for a single purl","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/components/status","href":"/developer-tools/api-reference/v3/components/resolve-lifecycle-status-for-a-single-purl"},{"title":"Resolve lifecycle status for many purls in one call","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/components/status","href":"/developer-tools/api-reference/v3/components/resolve-lifecycle-status-for-many-purls-in-one-call"},{"title":"Release notes / changelog for a component","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/components/releases","href":"/developer-tools/api-reference/v3/components/release-notes-changelog-for-a-component"},{"title":"Release notes for many purls in one call (SBOM use case)","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/components/releases","href":"/developer-tools/api-reference/v3/components/release-notes-for-many-purls-in-one-call-sbom-use-case"}]},{"group":"cryptography","pages":[{"title":"Cryptographic algorithms detected at one (resolved) version of a component","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/cryptography/algorithms","href":"/developer-tools/api-reference/v3/cryptography/cryptographic-algorithms-detected-at-one-resolved-version-of-a-component"},{"title":"Cryptographic algorithms for many components","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/cryptography/algorithms","href":"/developer-tools/api-reference/v3/cryptography/cryptographic-algorithms-for-many-components"},{"title":"Algorithms detected across every version satisfying a semver range","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/cryptography/algorithms/range","href":"/developer-tools/api-reference/v3/cryptography/algorithms-detected-across-every-version-satisfying-a-semver-range"},{"title":"Algorithms in range, batch","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/cryptography/algorithms/range","href":"/developer-tools/api-reference/v3/cryptography/algorithms-in-range-batch"},{"title":"Partition versions in a semver range into those with and without crypto","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/cryptography/algorithms/versions/range","href":"/developer-tools/api-reference/v3/cryptography/partition-versions-in-a-semver-range-into-those-with-and-without-crypto"},{"title":"Versions in range, batch","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/cryptography/algorithms/versions/range","href":"/developer-tools/api-reference/v3/cryptography/versions-in-range-batch"},{"title":"Crypto library hints (SDKs/protocols/libraries) at one resolved version","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/cryptography/hints","href":"/developer-tools/api-reference/v3/cryptography/crypto-library-hints-sdksprotocolslibraries-at-one-resolved-version"},{"title":"Crypto hints, batch","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/cryptography/hints","href":"/developer-tools/api-reference/v3/cryptography/crypto-hints-batch"},{"title":"Crypto hints across every version satisfying a semver range","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/cryptography/hints/range","href":"/developer-tools/api-reference/v3/cryptography/crypto-hints-across-every-version-satisfying-a-semver-range"},{"title":"Crypto hints in range, batch","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/cryptography/hints/range","href":"/developer-tools/api-reference/v3/cryptography/crypto-hints-in-range-batch"},{"title":"Download a ruleset tarball","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/cryptography/rulesets/{ruleset_name}/{version}/download","href":"/developer-tools/api-reference/v3/cryptography/download-a-ruleset-tarball"}]},{"group":"dependencies","pages":[{"title":"Resolve declared dependencies + licenses for one purl","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/dependencies/dependencies","href":"/developer-tools/api-reference/v3/dependencies/resolve-declared-dependencies-+-licenses-for-one-purl"},{"title":"Resolve declared dependencies for many purls","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/dependencies/dependencies","href":"/developer-tools/api-reference/v3/dependencies/resolve-declared-dependencies-for-many-purls"},{"title":"Walk declared dependencies bounded by depth and limit","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/dependencies/transitive","href":"/developer-tools/api-reference/v3/dependencies/walk-declared-dependencies-bounded-by-depth-and-limit"}]},{"group":"geoprovenance","pages":[{"title":"Declared + curated contributor locations for a single purl","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/geoprovenance/countries","href":"/developer-tools/api-reference/v3/geoprovenance/declared-+-curated-contributor-locations-for-a-single-purl"},{"title":"Declared + curated contributor locations for many purls","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/geoprovenance/countries","href":"/developer-tools/api-reference/v3/geoprovenance/declared-+-curated-contributor-locations-for-many-purls"},{"title":"Contributor origin distribution by timezone-based country","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/geoprovenance/origin","href":"/developer-tools/api-reference/v3/geoprovenance/contributor-origin-distribution-by-timezone-based-country"},{"title":"Contributor origin distribution for many purls","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/geoprovenance/origin","href":"/developer-tools/api-reference/v3/geoprovenance/contributor-origin-distribution-for-many-purls"}]},{"group":"vulnerabilities","pages":[{"title":"CPEs detected for a single (purl, requirement)","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/vulnerabilities/cpes","href":"/developer-tools/api-reference/v3/vulnerabilities/cpes-detected-for-a-single-purl-requirement"},{"title":"CPEs for many components","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/vulnerabilities/cpes","href":"/developer-tools/api-reference/v3/vulnerabilities/cpes-for-many-components"},{"title":"Vulnerabilities for a single (purl, requirement)","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/vulnerabilities/vulnerabilities","href":"/developer-tools/api-reference/v3/vulnerabilities/vulnerabilities-for-a-single-purl-requirement"},{"title":"Vulnerabilities for many components","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/vulnerabilities/vulnerabilities","href":"/developer-tools/api-reference/v3/vulnerabilities/vulnerabilities-for-many-components"}]},{"group":"contents","pages":[{"title":"Fetch the raw text of a notice from the mz store","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/notice-contents/{id}","href":"/developer-tools/api-reference/v3/contents/fetch-the-raw-text-of-a-notice-from-the-mz-store"},{"title":"Fetch the raw text of a source file from the mz store","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/file-contents/{id}","href":"/developer-tools/api-reference/v3/contents/fetch-the-raw-text-of-a-source-file-from-the-mz-store"},{"title":"Fetch the raw text of a metadata fragment from the mz store","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/metadata-contents/{id}","href":"/developer-tools/api-reference/v3/contents/fetch-the-raw-text-of-a-metadata-fragment-from-the-mz-store"}]},{"group":"cryptography-reachability","pages":[{"title":"Reachability for a component stitched across its declared dep tree.","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/cryptography/reachability/component","href":"/developer-tools/api-reference/v3/cryptography-reachability/reachability-for-a-component-stitched-across-its-declared-dep-tree"},{"title":"Reachability for a caller-supplied frozen dependency tree.","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/cryptography/reachability/dep-tree","href":"/developer-tools/api-reference/v3/cryptography-reachability/reachability-for-a-caller-supplied-frozen-dependency-tree"}]},{"group":"scan","pages":[{"title":"Scan an uploaded WFP / source archive (synchronous)","description":"Upload a fingerprint (WFP) or source archive as `multipart/form-data`\n(single file part `file`) and scan it with the engine (`-w`). Blocks\nuntil the engine returns; the body is the engine's native scan output.\n","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/wfp/scan/direct","href":"/developer-tools/api-reference/v3/scan/scan-an-uploaded-wfp-source-archive-synchronous"},{"title":"Scan a WFP — synchronous single-shot, or one block of a chunked async upload","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/wfp/scan","href":"/developer-tools/api-reference/v3/scan/scan-a-wfp-—-synchronous-single-shot-or-one-block-of-a-chunked-async-upload"},{"title":"Poll progress / result of an async (Mode A) batch scan","description":"Report the state of an async session by `scan_id` (given as a path\nsegment). Reflects upload progress (`uploading`), then scan progress\n(`scanning`), then the result (`completed`, with `result`). Terminal\nengine failures are reported in-band as `status: failed` with an `error`\nstring — not as an HTTP error code. Only Mode A creates a session;\nMode B returns its result synchronously and has nothing to poll.\n","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/wfp/scan/{id}","href":"/developer-tools/api-reference/v3/scan/poll-progress-result-of-an-async-mode-a-batch-scan"},{"title":"Components for a file MD5","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml get /v3/raw/scan","href":"/developer-tools/api-reference/v3/scan/components-for-a-file-md5"},{"title":"Match a raw WFP body (snippets)","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/snippets/scan","href":"/developer-tools/api-reference/v3/scan/match-a-raw-wfp-body-snippets"},{"title":"Components for one or more urlhashes","deprecated":null,"version":null,"openapi":"/api-reference/developer-tools/v3-openapi.yaml post /v3/components/scan","href":"/developer-tools/api-reference/v3/scan/components-for-one-or-more-urlhashes"}]}]}]},{"group":"Self-hosting \u0026 knowledge base","expanded":false,"pages":[{"title":"SCANOSS LDB","sidebarTitle":"SCANOSS LDB","href":"/en/latest/core/scanoss-ldb"},{"group":"SCANOSS engine","expanded":false,"pages":[{"title":"Scanning a file or directory","sidebarTitle":"Scanning a file or directory","href":"/en/latest/core/engine/scanning-file-or-directory"},{"title":"Command parameters and flags","sidebarTitle":"Command parameters and flags","href":"/en/latest/core/engine/command-parameters-flags"}]},{"group":"On-premises","expanded":false,"pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/en/latest/installation/on-prem/overview"},{"group":"Deployment guide","expanded":false,"pages":[{"title":"Hardware requirements","sidebarTitle":"Hardware requirements","href":"/en/latest/installation/on-prem/deployment-guide/hardware-requirements"},{"title":"Prepare the environment","sidebarTitle":"Prepare the environment","href":"/en/latest/installation/on-prem/deployment-guide/prepare-environment"},{"title":"Install applications","sidebarTitle":"Install applications","href":"/en/latest/installation/on-prem/deployment-guide/install-applications"},{"title":"Install Knowledge Base","sidebarTitle":"Install Knowledge Base","href":"/en/latest/installation/on-prem/deployment-guide/install-knowledge-base"},{"title":"Verify installation","sidebarTitle":"Verify installation","href":"/en/latest/installation/on-prem/deployment-guide/verify-installation"},{"group":"Configuration","expanded":false,"pages":[{"title":"API service management","sidebarTitle":"API service management","href":"/en/latest/installation/on-prem/configuration/api-service-management"},{"title":"API configuration","sidebarTitle":"API configuration","href":"/en/latest/installation/on-prem/configuration/api-configuration"}]}]},{"title":"KB update guide","sidebarTitle":"KB update guide","href":"/en/latest/installation/on-prem/kb-update-guide"},{"title":"KB Docker example","href":"/en/latest/installation/on-prem/local-kb-docker-example"}]},{"title":"Cloud deployment","sidebarTitle":"Cloud deployment","href":"/en/latest/installation/cloud-deployment"}]}]}]},{"version":"v1","pages":[{"title":"v1","href":"/en/latest/introduction/what-is-scanoss"}]}]},"basePath":"","title":"Scan a WFP — synchronous single-shot, or one block of a chunked async upload - SCANOSS documentation","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-DV3Oq1fY.js","dist-C-XZBk9h.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-D3Isdib3.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","AssistantPageLink--qIqmmVG.js"]}