Request a Document Trust Analysis
On this page, you will learn how to initiate a new Document Trust Analysis request using the API.
Initiate a Document Trust Analysis request
When calling our Document Trust Analysis endpoint, you will need to specify the type of analysis you are looking to run.
Fraud analysis
If you are simply looking to get a risk label on a given document, specify :
analysis_type[fraud_level] : 'advanced' / 'standard'analysis_type[extraction] : false.
Fraud analysis and extraction
To get an extraction of data and a check on the uploaded document in addition to a fraud label, you will need to specify a document type from the current supported document list and specify :
analysis_type[fraud_level] : 'advanced' / 'standard'analysis_type[extraction] : true
To initiate a Document Trust Analysis you can call this endpoint :
POST /document_analyses
curl --location --request POST '{baseUrl}/document_analyses' \
--header 'Authorization: Bearer {apiKey}' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@company_certificate.pdf' \
--form type='company_certificate' \
--form workspace_id='c0840991-848c-47ed-9bfa-68c9daca4793' \
--form analysis_type[fraud_level]='advanced' \
--form analysis_type[extraction]=true{
"id": "023bb153-7901-49c2-b670-62990a1a8cb1",
"workspace_id": "7e7895fe-f647-47d0-9a75-da811834d092",
"workflow_session_id": null,
"previous_attempt_id": null,
"applicant_id": null,
"created_at": "2026-06-22T11:54:18+00:00",
"updated_at": "2026-06-22T11:54:18+00:00",
"status": "pending",
"status_codes": [],
"type": "company_certificate",
"country_code": null,
"data_anonymized": false,
"extracted_from_document": {
"verification_number": null,
"company_name": null,
"company_number": null,
"registered_address": null,
"issuance_date": null,
"legal_representatives": [],
"document_type": null
},
"checks": null,
"analysis_type": {
"extraction": true,
"fraud_level": "advanced"
},
"fraud_risk_analysis": null
}In the response, you'll find the id. This value is required to retrieve the verification results.
Supported document types for extraction, classification and consistency checks
| Type | Description |
|---|---|
social_security | Currently only French Documents are supported : carte vitale and Attestation de Sécurité sociale. |
company_certificate | French document certifying the registration of a company in the Commercial Register, commonly called : KBIS. |
rne_certificate | French document certifying that a company is registered in the Registre Nationale des Entreprises. |
business_registration_certificate | Commonly called : Avis de situation. Fills the same role as a rne_certificate. Useful when company is on file in a different register. |
driver_licence | We currently support French driver licences in the new format. |
vehicle_registration_document | Document certifying the ownership of a vehicle. We currently support French and Italian formats. |
auto_insurance_claims_history | Document containing current or past car insurance information. Commonly called in French : Relevé d'information. |
temporary_vehicle_registration_document | Temporary certificate of vehicle ownership. We currently support Italian : permesso di circolazione. |
tax_notice | 🇫🇷 French tax notice is used to prove the income declared to the tax authorities. 🇩🇪 The Steuerbescheid (German tax assessment notice) is an official document issued by the Finanzamt (tax office) confirming the assessed income and final tax liability for a specific fiscal year. It serves as proof of taxable income and tax compliance. 🇮🇹 The Certificazione unica (Italian single income certification) is an official document issued annually by an employer, pension fund, or other income-paying entity to confirm the total income paid and taxes withheld at source for a specific fiscal year. It serves as proof of taxable income and social contributions. |
payslip | Document issued by an employer summarizing an employee's earnings for a given pay period. Used to verify income and employment status. We currently support French and Italian payslips. |
invoice | Commercial and accounting document issued by a supplier to a customer, confirming a completed commercial transaction. It serves as legal proof of the sale or the provision of services. |
proof_of_address | 🇫🇷 The French proof of address is one of these documents: an energy invoice (electricity or gas), a water invoice, a phone or internet invoice, a certificate of an energy, phone or internet supplier, an income tax notice, a property tax notice or a housing tax notice. 🇮🇹 The Certificato di residenza (Italian certificate of residence) is an official document issued by the municipality through the registry office, confirming a person's registered place of residence. It serves as proof of the holder's official address. 🇩🇪 The Meldebescheinigung (German certificate of registration) is an official document issued by the municipality through the local registration office, confirming a person's registered address. It serves as proof of the holder's official address. |
German id_document | 🇩🇪 Generic document type covering official German identity documents — typically the Personalausweis (national ID card) and the Reisepass (passport). ℹ️ only extraction is available for this document, no fraud level |
bank_account | Document issued by a bank giving the details of one bank account. Supported in the 111 countries that use an IBAN (see the list). Available checks: iban, bic and account_holder (natural or legal person). |
What data are extracted ?
For the type : social_security , the following data will be extracted :
"first_name": "Leo",
"last_name": "Dupont",
"full_name": "Leo Dupont",
"social_security_number": "101111300509563"
"document_type": "Carte Vitale"Failure to extract all data will result in an inconclusive status.
For the type : company_certificate, rne_certificate, business_registration_certificate , the following data will be extracted from the document.
"verification_number": "EHqrFQ8wOS",
"company_name": "TEST COMPANY",
"company_number": "451 456 120",
"registered_address": "Lorem Ipsum",
"issuance_date": "2021-03-07",
"legal_representatives": [
{
"type": "natural_person",
"first_name": "John",
"last_name": "Doe",
"full_name": "Jonh Doe",
"function": "Président",
"company_name": null,
"company_number": null
}
],
"document_type": "KBIS"
}, "issuance_date": "2025-11-14",
"company_description": {
"active": true,
"legal_form": "Entrepreneur individuel",
"company_name": null,
"company_number": "812599215",
"headquarter_company_number": "81259921501245",
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe"
},
"branch_description": {
"branch_company_number": "81259921501245",
"address": "14 RUE DE LA PAIX",
"city": "PARIS",
"postal_code": "75000",
"active": true
}
},"company_name": "My Company",
"company_number": "812 120 000",
"registered_address": "14 RUE DE LA PAIX",
"issuance_date": "2025-09-27",
"legal_representatives": [
{
"type": "natural_person",
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"function": null,
"company_name": null,
"company_number": null
}
]
},For
company_certificatetype document you can use theverification_numberto check the given document on the following website https://controle.infogreffe.fr/controle.
In case a legal representative is of type : legal_person first_name, last_name and full_name will be null.
For the type: driver_licence , we currently only handle the french new format of driver license. (⚠️ we currently not handle old driver licenses formats). On driver_licence document types the following data will be extracted :
"first_name": "JOHN",
"last_name": "DOE",
"full_name": "JOHN DOE",
"born_on": "2002-05-20",
"expired_on": "2036-10-08",
"license_type": [
"AM",
"B1",
"B"
]For the type: tax_notice, the following data will be extracted:
"fiscalNumber1": "1234567",
"fiscalNumber2": "2345678",
"taxNoticeReference": "12345678",
"issuanceDate": "2025-05-20",
"incomeYear": "2024",
"referenceIncome": "123456""fiscalNumber1": "1234567",
"full_name": "John Doe",
"fiscalNumber2": "2345678",
"full_name": "Jane Doe",
"taxNoticeReference": "12345678",
"issuanceDate": "2025-05-20",
"incomeYear": "2024",
"referenceIncome": "123456""employer_name": "Acme corp",
"employer_codice_fiscale": "12345678910",
"fiscalNumber1": "1234567",
"employee_full_name": "John Doe",
"employee_codice_fiscale": "2345678",
"issuanceDate": "2025-05-20",
"incomeYear": "2024",
"referenceIncome": "123456"For the type: payslip, the following data will be extracted:
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"employer_name": "Test Company",
"pay_period_start_date": "2023-09-01",
"pay_period_end_date": "2023-09-30",
"net_pay": 2311.6,
"gross_pay": 3074.38,
"document_type": "Fiche de paie"For the type: invoice, the following data will be extracted:
"issuance_date": "2023-12-03",
"invoice_number": "29941989",
"invoice_date": "2023-11-26",
"seller_name": "Acme corp",
"seller_address": "Rue De Suède Av Pierre Berthelot 14000 CAEN",
"seller_company_number": "123456789",
"vat_identification_number": "FR12 123456789",
"shipping_address": "12 rue des hirondelles 14000 Caen",
"buyer_name": "John Doe",
"buyer_address": "13 avenue des marguerites 14000 Caen",
"total_excluding_taxes": 340.83,
"total_including_taxes": 408.99,
"document_type": "Facture""issuance_date": "2023-12-03",
"invoice_number": "29941989",
"invoice_date": "2023-11-26",
"seller_name": "ACME corp",
"seller_address": "Via Silvio Spaventa 52 06068 Perugia",
"seller_company_number": "01234567890",
"vat_identification_number": "IT 01234567890",
"seller_codice_fiscale": "01234567890",
"billing_address": null,
"shipping_address": " Via Partenope 193 47010 Forli",
"buyer_name": "John Doe",
"buyer_address": "VIA P. NENNI 22/28, 50054 Fucecchio",
"buyer_codice_fiscale": "RSSMRA85T10A562S",
"total_excluding_taxes": 340.83,
"total_including_taxes": 408.99,
"document_type": "Fattura"For the type: proof_of_address, the following data will be extracted:
"first_name": "John",
"last_name": "Doe",
"first_name_2": null,
"last_name_2": null,
"full_address": "1 rue de l'Exemple 75001 Paris",
"issuance_date": "2026-09-15",
"2d_doc": {
"full_name": "DOE JOHN",
"full_name_2": null,
"address": {
"line1": "1 RUE DE L EXEMPLE",
"postal_code": "75001",
"city": "PARIS",
"country_code": "FR"
}
}"first_name": "John",
"last_name": "Doe",
"full_address": "VIA ROMA 12\n00184 ROMA (RM)",
"issuance_date": "2014-01-01",
"seal_present": true,
"document_type": "Certificato di residenza""first_name": "Anna",
"last_name": "Schmidt",
"full_address": "Hauptstraße 12, 10115 Berlin",
"residence_start_date": "2019-03-15",
"issuance_date": "2024-11-20",
"document_type": "Meldebescheinigung"For a French proof of address, first_name_2 and last_name_2 hold the second holder of the document (for example a couple on an invoice or a joint income tax notice), null when the document has one holder.
2d_doc holds the data signed in the 2D-Doc. It is filled only when fraud_level is standard, the file is a PDF, and a proof of address 2D-Doc (ANTS type 00 energy invoice, 01 internet invoice, 02 housing tax notice, 04 or 28 income tax notice) is found with a valid signature and certificate. Otherwise 2d_doc is null. The income tax notice 2D-Doc (types 04 and 28) encodes no address: its address fields are all null.
A 2D-Doc is not required on a proof of address: a missing or unreadable 2D-Doc never changes the status (no DA_1304). An anomaly of the 2D-Doc is only a risk indicator in fraud_risk_analysis.
For the German id_document, the following data will be extracted:
"first_name": "Max",
"birth_name": "Mustermann",
"last_name": "Mustermann",
"born_on": "1990-05-15",
"birth_location": "Berlin",
"gender": "m",
"full_address": "MUSTERSTRASSE 12\n10115 BERLIN",
"handwritten": false,
"type": "id_card",
"issuing_country_code": "DE",
"issued_on": "2020-03-01",
"expired_on": "2030-03-01",
"document_number": "T22000129",
"mrz": {
"line1": "IDD<<T220001293<<<<<<<<<<<<<<<",
"line2": "9005158M3003013<<<<<<<<<<<<<<8",
"line3": "MUSTERMANN<<MAX<<<<<<<<<<<<<<<"Handwritten addresses are automatically flagged, so you can send them to manual review rather than risk inaccurate automated extraction.
For the German id documents, only the extraction is available.No consistency checks, no fraud analysis on these documents (passport, id card..)
If you need to verify the identity, and not just perform extraction, please refer to our Identity verification products.
Classified document types
When calling Document Trust, a document_type label and a country_code will be attributed to the uploaded document. The list of available document_types can be found here in the document_classification.document_type section.
For a proof_of_address, a document_variant gives the exact document (for example energy_invoice or income_tax_notice). See Document Classification.
How to perform consistency checks ?
Implementation tipsPerforming data consistency checks and checking that the uploaded document matches your expected type requires you to specify :
- The
typeof document you are uploading.analysis_type[extraction] : trueBy default, when passing a
type, we classify the uploaded document and match it against your expected document type.
To run data consistency checks you can call the following endpoint by passing the checks optional parameters in the payload :
To check that a document belongs to a person you can call the following endpoint by passing the checks optional parameters in the payload :
For social_security, driver_licence type documents :
social_security, driver_licence type documents :| Body parameter | Type | Description |
|---|---|---|
| file | file | **[required]**The file containing the data to extract. Accepted formats: PDF, PNG, JPG, JPEG. Max size: 10 MB. Max number of pages for PDF: 2. |
| type | string | [required] The type of the document you are trying to analyze. Example : social_security |
| checks | object | [optional] |
| checks[first_name] | string | The first name of the person you want to check |
| checks[last_name] | string | The last name of the person you want to check. |
For company_certificate, rne_certificate type documents :
company_certificate, rne_certificate type documents :For company_certificate, rne_certificate type documents you can pass a list of legal representative first_names and last_names to confirm they appear on the document.
| Body parameter | Type | Description |
|---|---|---|
| file | file | [required] The file containing the data to extract. Accepted formats: PDF, PNG, JPG, JPEG. Max size: 10 MB. Max number of pages for PDF: 2. |
| type | string | [required] The type of the document you are trying to analyze. Example : social_security |
| legal_representatives | list of objects | [optional] |
| checks[legal_representatives][0][first_name] | string | The first name name of the legal representative you want to check. |
| checks[legal_representatives][0][last_name] | string | The last name name of the legal representative you want to check. |
curl --location --request POST '{baseUrl}/document_analyses' \
--header 'Authorization: Bearer {apiKey}' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@social_security_card.pdf' \
--form type='social_security' \
--form workspace_id='c0840991-848c-47ed-9bfa-68c9daca4793'
--form checks[first_name]:'John'
--form checks[first_name]:'Doe'curl --request POST \
--url '{baseUrl}/document_analyses' \
--header 'accept: application/json' \
--header 'content-type: multipart/form-data' \
--form type=company_certificate \
--form [legal_representative][0][first_name]=John \
--form [legal_representative][0][last_name]=Doecurl --request POST \
--url '{baseUrl}/document_analyses' \
--header 'accept: application/json' \
--header 'content-type: multipart/form-data' \
--form type=rne_certificate \
--form [legal_representative][0][first_name]=John \
--form [legal_representative][0][last_name]=Doe
Comparison rulesWhen providing a
first_nameand alast_name, we will compute afull_nameand compare it with the extracted data based on the following rules : Name Matching rules.
Additionally, on company_certificate, rne_certificate type documents we use the issuance_date to check that the document is at least 3 months old. To learn more on how to follow a Document Analysis results check the full guide on statuses here.
For vehicle_registration_document,temporary_vehicle_registration_document type documents :
vehicle_registration_document,temporary_vehicle_registration_document type documents :| Body parameter | Type | Description |
|---|---|---|
| file | file | **[required]**The file containing the data to extract. Accepted formats: PDF, PNG, JPG, JPEG. Max size: 10 MB. Max number of pages for PDF: 2. |
| type | string | [required] The type of the document you are trying to analyze. Example : social_security |
| country_code | string | Defines the country of origin of the document. |
| checks | object | [optional] |
| checks[vehicle_owner][type] | string | The type of vehicle of owner : legal_person or natural_person |
| checks[vehicle_owner][first_name] | string | The first name of the owner of the vehicle |
| checks[vehicle_owner][last_name] | string | The last name of the owner of the vehicle |
| checks[vehicle_owner][company_name] | string | Required when type is legal_person. |
For auto_insurance_claims_history documents :
auto_insurance_claims_history documents :| Body parameter | Type | Description |
|---|---|---|
| file | file | **[required]**The file containing the data to extract. Accepted formats: PDF, PNG, JPG, JPEG. Max size: 10 MB. Max number of pages for PDF: 2. |
| type | string | [required] The type of the document you are trying to analyze. Example : social_security |
| checks | object | [optional] |
| checks[policy_holder][type] | string | The type of vehicle of owner : legal_person or natural_person |
| checks[policy_holder][first_name] | string | The first name of the owner of the vehicle |
| checks[policy_holder][last_name] | string | The last name of the owner of the vehicle |
| checks[policy_holder][company_name] | string | Required when type is legal_person. |
For tax_notice documents :
tax_notice documents :| Body parameter | Type | Description |
|---|---|---|
| type | string | The type of the document you are trying to analyze. Example : tax_notice |
| country_code | string | Defines the country of origin of the document. |
| Checks[first_name] [FR] | string | [optional] The first name provided must match exactly as it appears on the document, as a consistency check will be performed. |
| Checks[last_name] [FR] | string | [optional] The last name provided must match exactly as it appears on the document, as a consistency check will be performed. |
| Checks[employee_full_name] [IT] | string | [optional] The full name provided must match exactly as it appears on the document, as a consistency check will be performed. |
| Checks[full_name] [DE] | string | [optional] The full name provided must match exactly as it appears on the document, as a consistency check will be performed. |
| Checks[income_year] | string | [optional] The tax filing period |
ℹ️ Comparison rules
- For
tax_noticedocuments, you can also provideincome_yearto check that the tax filing period matches the document. - For the French tax notice:
when providing afirst_nameand alast_name, the verification will automatically read and extract the information from the 2D-Doc and cross-check it with the provided document content. The 2D-Doc printed on the French tax notice is read only withstandard.
fraud_level | Files | Extraction | 2d_doc | DA_1304 | Checks compared with | Fraud detection |
|---|---|---|---|---|---|---|
none or omitted | PDF, JPG, PNG | Yes | null | Never | Values read in the text | None |
standard | PDF only | Yes | Filled when an income tax notice 2D-Doc (ANTS type 04, or 28 since 2025) is found and its signature and certificate are valid. Otherwise null | When the file was read and holds no 2D-Doc: the analysis is failed. A 2D-Doc that cannot be read gives inconclusive with DA_3004, or failed with DA_3001 when the fraud risk is blocking | The valid 2D-Doc, otherwise the values read in the text | Document Trust (fraud_risk_analysis, barcode.* indicators) |
advanced | PDF, JPG, PNG | Yes | null | Never | Values read in the text | Resistant (fraud_risk_analysis) |
standard, extraction: false | PDF only | No (classification only) | None: extracted_from_document is [] | Never | None | Document Trust. The 2D-Doc signature and certificate are checked only when a 2D-Doc is found, so a tax notice without a 2D-Doc can end done |
advanced, extraction: false | PDF, JPG, PNG | No (classification only) | None: extracted_from_document is [] | Never | None | Resistant |
For payslip documents :
payslip documents :| Body parameter | Type | Description |
|---|---|---|
| file | file | [required] The file containing the data to extract. Accepted formats: PDF, PNG, JPG, JPEG. Max size: 10 MB. Max number of pages for PDF: 2. |
| type | string | [required] The type of the document you are trying to analyze. Example : payslip |
| country_code | string | Defines the country of origin of the document. |
| checks | object | [optional] |
| checks[first_name] | string | The first name of the person you want to check |
| checks[last_name] | string | The last name of the person you want to check |
For invoice documents :
invoice documents :| Body parameter | Type | Description |
|---|---|---|
| file | file | [required] The file containing the data to extract. Accepted formats: PDF, PNG, JPG, JPEG. Max size: 10 MB. Max number of pages for PDF: 2. |
| type | string | [required] The type of the document you are trying to analyze. Example : invoice |
| country_code | string | Defines the country of origin of the document. |
| checks | object | [optional] |
| checks[buyer_name] | string | The first and last name of the person you want to check |
For proof_of_address documents :
proof_of_address documents :| Body parameter | Type | Description |
|---|---|---|
| file | file | [required] The file containing the data to extract. Accepted formats: PDF, PNG, JPG, JPEG (PDF only when fraud_level is standard). Max size: 25 MB. Max number of pages for PDF: 10. |
| type | string | [required] The type of the document you are trying to analyze. Example : proof_of_address |
| country_code | string | Defines the country of origin of the document: FR, IT or DE. Required when extraction is enabled. |
| checks | object | [optional] first_name and last_name together, address, or both. Not supported when extraction is false. |
| checks[first_name] | string | The first name of the person you want to check. Required with last_name. |
| checks[last_name] | string | The last name of the person you want to check. Required with first_name. |
| checks[address][line1] | string | 🇫🇷 FR only. [required with address] The street number and name. |
| checks[address][line2] | string | 🇫🇷 FR only. [optional] An apartment, a building or a floor. |
| checks[address][postal_code] | string | 🇫🇷 FR only. [required with address] The French postal code, 5 digits. |
| checks[address][city] | string | 🇫🇷 FR only. [required with address] The city. |
curl --location --request POST '{baseUrl}/document_analyses' \
--header 'Authorization: Bearer {apiKey}' \
--form 'file=@"/path/to/energy_invoice.pdf"' \
--form 'type="proof_of_address"' \
--form 'country_code="FR"' \
--form 'analysis_type[fraud_level]="standard"' \
--form 'checks[first_name]="John"' \
--form 'checks[last_name]="Doe"' \
--form 'checks[address][line1]="1 rue de l'\''Exemple"' \
--form 'checks[address][postal_code]="75001"' \
--form 'checks[address][city]="Paris"'ℹ️ Comparison rules for a French proof of address
- Name: the full name is compared with up to two persons, and the best match is kept. The first person is
2d_doc.full_namewhen the valid 2D-Doc has a name, otherwise the name read in the text. The second person is2d_doc.full_name_2, otherwisefirst_name_2andlast_name_2read in the text.checks.full_name.extractedis the person with the best match. Ano_matchreturnsDA_2001. See Name Matching rules. - Address: compared with the address of the valid 2D-Doc when it has one, otherwise with
full_address(an income tax notice 2D-Doc has no address). Case, accents, punctuation and the official forms of the city (ST,CEDEX, district) are ignored:exact. AFNOR street abbreviations (BD,MAL...), a truncated 2D-Doc city, or an apartment, building or floor on one side only giveclose. Another number, street, postal code, city or apartment givesno_matchandDA_2003. - Only
no_matchfails the analysis.
fraud_level | Files | Extraction | 2d_doc | Checks compared with |
|---|---|---|---|---|
none or omitted | PDF, JPG, PNG | Yes | null | Values read in the text |
standard | PDF only | Yes | Filled when a valid proof of address 2D-Doc (ANTS 00, 01, 02, 04 or 28) is found, otherwise null | The valid 2D-Doc (name, and address except ANTS 04 and 28), otherwise the values read in the text |
advanced | PDF, JPG, PNG | Yes | null | Values read in the text |
standard, extraction: false | PDF only | No (classification only) | None: extracted_from_document is [] | None |
advanced, extraction: false | PDF, JPG, PNG | No (classification only) | None: extracted_from_document is [] | None |
For bank_account documents :
bank_account documents :| Body parameter | Type | Description |
|---|---|---|
| file | file | [required] The file containing the bank account details. Accepted formats: PDF, PNG, JPG, JPEG (PDF only when fraud_level is standard). Max size: 25 MB. Max number of pages for PDF: 10. |
| type | string | [required] The type of the document you are trying to analyze. Example : bank_account |
| checks | object | [optional] |
| checks[iban] | string | The expected IBAN. Spaces and case are ignored. |
| checks[bic] | string | The expected BIC (8 or 11 characters). Its country must match the country of the IBAN when both are sent. |
| checks[account_holder][type] | string | The type of the account holder : natural_person or legal_person. Required when account_holder is sent. |
| checks[account_holder][first_name] | string | The first name of the account holder. Required when type is natural_person. |
| checks[account_holder][last_name] | string | The last name of the account holder. Required when type is natural_person. |
| checks[account_holder][company_name] | string | The company name of the account holder. Required when type is legal_person. |
curl --location --request POST '{baseUrl}/document_analyses' \
--header 'Authorization: Bearer {apiKey}' \
--form 'file=@"/path/to/bank_details.pdf"' \
--form 'type="bank_account"' \
--form 'checks[iban]="FR7630006000011234567890189"' \
--form 'checks[account_holder][type]="natural_person"' \
--form 'checks[account_holder][first_name]="John"' \
--form 'checks[account_holder][last_name]="Doe"'For a company, send checks[account_holder][type]=legal_person and checks[account_holder][company_name].
Updated 5 days ago

