Confirm a datasheet upload started via request_datasheet_upload. Pass the upload_token you got back from the request step. The server downloads the uploaded bytes, re-hashes to verify integrity, validates that it's a real PDF with the MPN on the first page, creates the private Document + Component records, charges the upload fee (50¢), and queues extraction.
Success response: document_id, mpn, sha256, file_size_bytes, status='pending'. Poll check_extraction_status with the MPN to wait for extraction to finish (30s-2min typically).
Failure modes:
- 'upload_not_found' — no bytes at the upload URL yet. Retry your curl upload.
- 'sha256_mismatch' — uploaded bytes hash differs from expected_sha256. Re-compute the hash and re-request.
- 'invalid_pdf' — bytes aren't a parseable PDF. No charge.
- 'mpn_not_in_pdf' — MPN (or its stem) isn't on the first page. Either you uploaded the wrong file or it's a scanned image-only PDF. No charge.
- 'token_expired' — upload token is older than 15 minutes. Restart via request_datasheet_upload.
Connector