Get a ∀Doc
GET/api/v8/partner/any-documents/:document_id
Veryfi's Get a ∀Doc endpoint allows you to retrieve a previously processed ∀Doc.
Request
Path Parameters
The unique identifier of the document.
Query Parameters
A field used to determine whether or not to return bounding_box and bounding_region for extracted fields in the Document response.
A field used to determine whether or not to return the score and ocr_score fields in the Document response.
Responses
- 200
Returns a processed ∀Doc.
- application/json
- Schema
- Example (from schema)
Schema
- API_V8_PARTNER_ANYDOCUMENTS_ANYDOCUMENTRESPONSE
- Array [
- ]
- MOD1
- MOD2
- MOD1
- MOD2
- Array [
- ]
- Array [
- ]
- Array [
- _FraudulentPDFSignalReason
- _FraudulentPDFMetadataReason
- _FraudulentPDFSplicedPageReason
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
Possible values: non-empty
A custom identification value. Use this if you would like to assign your own ID to documents. This parameter is useful when mapping this document to a service or resource outside Veryfi.
meta AnyDocumentMeta
Possible values: non-empty
A custom identification value. Use this if you would like to assign your own ID to documents. This parameter is useful when mapping this document to a service or resource outside Veryfi.
pages object[]
Possible values: <= 1
The average OCR score of the page.
The width of the page.
The height of the page.
is_blurry ClassNullableBoolField
The processed page is blurry or not
Possible values: <= 1
The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.
The extracted value.
Possible values: non-empty
Default value: ``
Tags associated with the document.
Possible values: <= 1
The average OCR score of the whole document.
Possible values: non-empty
The version of the model used to process the document.
Possible values: non-empty
The original file name of the uploaded document.
Possible values: [api.email, api.web, api, browser_extension, lens.bill, lens.invoice, lens.long_receipt, lens.other, lens.receipt, lens.web, lens]
Default value: api
The source of the document's submission for processing.
device_data ResponsesDeviceData
device data containing uuid
uuid object
Device unique identifier
string
string
user_uuid object
User unique identifier, like a digital fingerprint (hashed login) used to access the app where they upload their documents. Used in fraud detection.
string
string
duplicates object[]
An array of duplicate documents found in the system.
The id of the duplicate document.
Possible values: non-empty and <= 2083 characters
The url of the duplicate document.
Possible values: <= 1
How close is the match
fraud AnydocFraud
An object that contains additional information to help check for fraud.
Possible values: <= 1
Confidence of Fraud Detector in it's prediction
Possible values: [green, yellow, red]
Color from Fraud Detector: green means legitimate, yellow means review needed and red means fraud
Possible values: [LCD photo, screenshot, fraudulent pdf, not a document, generated document, ai generated, duplicate, digital tampering, multiple profiles or devices, high velocity, critical velocity, invalid mrz data]
List of attributions which marked the document as fraud
details AnyDocumentFraudDetails
Strictly typed descriptions and reasons keyed by fraud type.
lcd_photo _FraudTypeDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
screenshot _ScreenshotDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
reasons object[]
Possible values: [mobile_screenshot, other_screenshot]
Possible values: non-empty
fraudulent_pdf _FraudulentPDFDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
reasons object[]
Possible values: [text_overlay, font_mismatch, modified, date_inversion, producer_content_mismatch, writer_mismatch, null_metadata, xmp_info_mismatch, future_metadata_date, raster_profile_mismatch, uncompressed_raster, double_jpeg, scrubbed_provenance]
Possible values: non-empty
Possible values: non-empty
Possible values: [creator, producer]
Possible values: non-empty
Possible values: non-empty
Possible values: > 0
1-based number of the first page written after the pages surrounding it. Later pages may belong to the same block.
not_a_document _FraudTypeDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
generated_document _GeneratedDocumentDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
reasons object[]
Possible values: [ai_generated_provenance, ai_enhanced_provenance, possible_ai_provenance, provenance_integrity_clash, headless_browser_render]
Possible values: non-empty
Possible values: non-empty
ai_generated _FraudTypeDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
duplicate _FraudTypeDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
digital_tampering _FraudTypeDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
multiple_profiles_or_devices _FraudTypeDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
high_velocity _FraudTypeDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
critical_velocity _FraudTypeDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
invalid_mrz_data _FraudTypeDetails
Possible values: non-empty
Human-readable explanation of the fired fraud type.
submissions object
The amount of submissions from specific device id, used in velocity fraud detection.
Possible values: [text_similarity, field_matching]
Method used to detect duplicates for fraud
duplicates object[]
An array of duplicate documents found for purposes of fraud detection
The id of the duplicate document.
Possible values: non-empty and <= 2083 characters
The url of the duplicate document.
fraudulent_pdf FraudulentPDFResult
Results of the pdf analysis.
Possible values: non-empty
What incremental PDF revisions changed.
incremental_edits object[]
Which word an incremental PDF revision replaced, and on which page.
Possible values: > 0
1-based number of the page the edit landed on.
Possible values: non-empty
The replaced word, or null when the word was inserted.
Possible values: non-empty
The replacing word, or null when the word was deleted.
Possible values: non-empty
Possible values: > 0
1-based number of the first page written after the pages surrounding it. Later pages may belong to the same block.
Score for a PDF an automated browser rendered from a desktop operating system. It is reported here but scored against the generated document signal, so it does not move the fraudulent pdf score.
Possible values: non-empty
Operating system named by the headless browser that rendered the PDF. Reported for every headless render, including the server platforms that do not score.
Score for a raster that was JPEG-compressed more than once. An original capture is compressed exactly once, so a second compression means the file is not the first-generation scan it presents itself as. Disabled by default, and reported as 0.0 until it is enabled for your account.
Possible values: > 0
JPEG quality of the first compression, recovered from the coefficient histograms. Evidence for a reviewer rather than a score, and absent when nothing coherent was recovered.
Score for a raster whose encoder signature carries no provenance: grayscale content in a subsampled colour JPEG, no EXIF, a placeholder JFIF density and a stock quantization table. Reaches the same conclusion as double_jpeg for a re-encode too coarse to leave a recoverable first compression. Disabled by default, and reported as 0.0 until it is enabled for your account.
device_profiles object[]
Device/profile pairs supporting the multiple profiles or devices fraud signal.
Possible values: non-empty
Possible values: non-empty
pages object[]
An array containing fraud info about each extracted page
is_lcd ClassBoolField
Possible values: <= 1
The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.
The extracted value.
flags object[]
List of flags which marked the document as fraud
Possible values: <= 1
The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.
Possible values: non-empty
ai_generated ClassBoolField
Possible values: <= 1
The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.
The extracted value.
handwriting object[]
An array containing handwriting info about each extracted page
Possible values: >= 8, <= 8
Bounding region of the artifact in [x1,y1,x2,y2,x3,y3,x4,y4] format
Possible values: non-empty
Type of the artifact
digital_tampering object[]
An array containing digital tampering info about each extracted page
Possible values: >= 8, <= 8
Bounding region of the artifact in [x1,y1,x2,y2,x3,y3,x4,y4] format
Possible values: non-empty
Type of the artifact
List of fields which were digitally tampered. Does not work with the parameter boost_mode set to true.
blueprint_version BlueprintVersionInfo
The version of the blueprint used to extract data.
Possible values: non-empty
barcodes object[]
An array of barcodes detected on the document.
Possible values: >= 8, <= 8
An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.
Possible values: non-empty
The machine-readable representation of the barcode found on the document.
Possible values: non-empty
The name of the encoding for the barcode. Supported types include: QR Code, PDF417, EAN, UPC, Code128, Code39, I25
warnings object[]
An array of warnings to help catch errors or fraud on the processed document.
Possible values: [tax_rate_mismatch, item_counts_mismatch, totals_mismatch, line_item_amount_mismatch, line_item_repeats, barcode_decoding_issue, barcode_code_missing_in_ocr, logo_vendor_mismatch, malware, weekend_transaction, time_and_currency_mismatch, exif_creation_modified_date_mismatch, missing_date, suspicious_document_aspect_ratio, generic_placeholder_content]
Type of the warning, e.g. barcode_code_missing_in_ocr. Type is an enumerated field and comes from a defined number of enumerated values.
Possible values: non-empty
The detailed message about the warning.
List of fields which were handwritten. Does not work with the parameter boost_mode set to true.
List of fields which were fully handwritten (excluding tampering). Does not work with the parameter boost_mode set to true.
List of fields which were tampered. Does not work with the parameter boost_mode set to true.
Heads-up flag set to true when handwriting (including handwritten tampering) is detected anywhere on the document, including outside the fields configured in fraud.handwriting.enabled_fields. Independent from handwritten_fields. Does not work with the parameter boost_mode set to true.
Possible values: non-empty and <= 2083 characters
A signed URL to access the auto-generated PDF created from the submitted document. This URL expires 15 minutes after the response object is returned and is resigned during every GET request.
The unique number created to identify the document.
Possible values: non-empty and <= 2083 characters
A signed URL to access the auto-generated thumbnail created for the submitted document. This URL expires 15 minutes after the response object is returned and is resigned during every GET request.
The text returned from converting the document into a machine-readable text format.
Possible values: non-empty
The blueprint name which was used to extract the data. Sample blueprints: [ "auto_insurance_card", "bill_of_lading", "flight_itinerary", "goods_received_note", "incorporation_document", "incorporation_document_latam", "indian_passport", "latam_passport", "prescription_medication_label", "product_nutrition_facts", "restaurant_menu", "shipping_label", "uk_drivers_license", "us_driver_license", "us_health_insurance_card", "us_passport", "vehicle_registration", "vendor_statement", "work_order"]
Possible values: non-empty
Deprecated. The blueprint name which was used to extract the data. Same as blueprint_name.
{}