Testing Document Trust Analysis in Sandbox

Learn how to use Document Analysis in Sandbox

This guide will explain how to test the Document Trust without incurring charges in the Sandbox environment.

In the Sandbox, we do not perform the real processes of fraud detection or extraction, but we will provide you a simulated experience that closely mirrors the production behavior.

When initiating an Document Trust Analysis, you must upload a file with a specific filename using the file parameter.

  • This filename determines the status result that will be simulated and the operations that will be simulated.
  • The type field determines the data that would be extracted.

Filenameanalysis_type[extraction]analysis_type[fraud_level]checksstatus
done.pdftrueadvancednulldone
inconclusive.pdftrueadvancednullinconclusive
failed.pdftrueadvancedfailed
failed-expired.pdftrueadvancednullfailed
fraud-high.pdftrueadvancednullfailed
fraud-medium.pdftrueadvancednullfailed
fraud-low.pdftrueadvancednulldone
fraud-trusted.pdftrueadvancednull`done

ℹ️ If you name the test file incorrectly, the API won't recognize it, and the Document Analysis will fail.

Once the Document Trust Analysis has been done, you can retrieve the results through the designated endpoint.

Also, if you have subscribed in the Sandbox to the document_analysis.done event you will also receive a webhook notification.