curl --request POST \
--url https://api.insightchain.ai/v1/passports/{id}/origin_evidence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document_external_id": "DOC-CERT-1"
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/origin_evidence"
payload = { "document_external_id": "DOC-CERT-1" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({document_external_id: 'DOC-CERT-1'})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/origin_evidence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"evidence": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"document_external_id": "<string>",
"document_title": "<string>",
"document_kind": "certificate",
"status": "pending",
"extraction": {
"ok": true,
"extraction": {
"documentType": "transaction_certificate",
"issuer": "<string>",
"documentReference": "<string>",
"origins": [
{
"country": "<string>",
"regionCode": "<string>",
"regionName": "<string>",
"material": "<string>",
"page": 123
}
],
"plots": [
{
"label": "<string>",
"country": "<string>",
"geometry": {
"type": "Point",
"coordinates": [
123
]
},
"areaHa": 123,
"page": 123
}
],
"custodySteps": [
{
"seller": "<string>",
"buyer": "<string>",
"date": "2023-12-25",
"quantity": 123,
"uom": "<string>",
"documentReference": "<string>",
"countryFrom": "<string>",
"regionFrom": "<string>",
"page": 123
}
],
"confidence": "high",
"warnings": [
"<string>"
]
}
},
"extracted_at": "2023-11-07T05:31:56Z",
"suggested": {
"country": "<string>",
"regionCode": "<string>",
"regionName": "<string>",
"ambiguous": true
},
"confirmed_country": "<string>",
"confirmed_region_code": "<string>",
"confirmed_region_name": "<string>",
"material_external_ids": [
"<string>"
],
"review_note": "<string>",
"reviewed_by": "<string>",
"reviewed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"cached": true,
"request_id": "<string>"
}{
"evidence": {
"id": "266eac01-057f-44a1-9649-8dccbcce51a3",
"document_external_id": "DOC-ORIGIN-04",
"document_title": "Tannery declaration of origin 04",
"document_kind": "certificate",
"status": "pending",
"extraction": {
"ok": true,
"extraction": {
"plots": [
{
"page": 2,
"label": "Pasture A",
"areaHa": 2.8,
"country": "IT",
"geometry": {
"type": "Point",
"coordinates": [
11.58,
43.07
]
}
}
],
"issuer": "Conceria Modello S.p.A.",
"origins": [
{
"page": 1,
"country": "IT",
"material": "Bovine hides",
"regionCode": "IT-52",
"regionName": "Toscana"
}
],
"warnings": [
"plot_point_without_area"
],
"confidence": "high",
"custodySteps": [
{
"uom": "kg",
"date": "2026-01-05",
"page": 1,
"buyer": "Macello Senese S.r.l.",
"seller": "Azienda Agricola Val d'Orcia",
"quantity": 2400,
"regionFrom": null,
"countryFrom": null,
"documentReference": "DDT-04"
}
],
"documentType": "tannery_declaration",
"documentReference": "TD-2026-04"
}
},
"extracted_at": "2026-11-21T09:39:13.011735+00:00",
"suggested": {
"country": "IT",
"regionCode": "IT-52",
"regionName": "Toscana",
"ambiguous": false
},
"confirmed_country": null,
"confirmed_region_code": null,
"confirmed_region_name": null,
"material_external_ids": [],
"review_note": null,
"reviewed_by": null,
"reviewed_at": null,
"created_at": "2026-11-21T09:39:13.011735+00:00"
},
"cached": false,
"request_id": "0b7e5c1a-3d2f-4a69-8c1e-7f5d2b9a6e10"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Create passport origin evidence
Extract origin evidence from a document of the passport (a PDF or an image, already uploaded): once per document, a repeat returns the stored result; 25 documents per passport.
Key scope: ingest. Module: dpp. Reading a document draws on your organization’s daily budget for AI-assisted routes (429 model_budget_exceeded past it, with Retry-After). At most 25 documents per passport can be read: past that the answer is 429 with no Retry-After, and the evidence is entered by hand. 415 and 413 are about the stored document, not this request: only PDF and image documents of an evidence kind, up to 10 MB, can be read. 503 extraction_unavailable: reading is switched off for now. 502 extraction_failed: this reading failed and nothing was stored; try again
curl --request POST \
--url https://api.insightchain.ai/v1/passports/{id}/origin_evidence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document_external_id": "DOC-CERT-1"
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/origin_evidence"
payload = { "document_external_id": "DOC-CERT-1" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({document_external_id: 'DOC-CERT-1'})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/origin_evidence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"evidence": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"document_external_id": "<string>",
"document_title": "<string>",
"document_kind": "certificate",
"status": "pending",
"extraction": {
"ok": true,
"extraction": {
"documentType": "transaction_certificate",
"issuer": "<string>",
"documentReference": "<string>",
"origins": [
{
"country": "<string>",
"regionCode": "<string>",
"regionName": "<string>",
"material": "<string>",
"page": 123
}
],
"plots": [
{
"label": "<string>",
"country": "<string>",
"geometry": {
"type": "Point",
"coordinates": [
123
]
},
"areaHa": 123,
"page": 123
}
],
"custodySteps": [
{
"seller": "<string>",
"buyer": "<string>",
"date": "2023-12-25",
"quantity": 123,
"uom": "<string>",
"documentReference": "<string>",
"countryFrom": "<string>",
"regionFrom": "<string>",
"page": 123
}
],
"confidence": "high",
"warnings": [
"<string>"
]
}
},
"extracted_at": "2023-11-07T05:31:56Z",
"suggested": {
"country": "<string>",
"regionCode": "<string>",
"regionName": "<string>",
"ambiguous": true
},
"confirmed_country": "<string>",
"confirmed_region_code": "<string>",
"confirmed_region_name": "<string>",
"material_external_ids": [
"<string>"
],
"review_note": "<string>",
"reviewed_by": "<string>",
"reviewed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"cached": true,
"request_id": "<string>"
}{
"evidence": {
"id": "266eac01-057f-44a1-9649-8dccbcce51a3",
"document_external_id": "DOC-ORIGIN-04",
"document_title": "Tannery declaration of origin 04",
"document_kind": "certificate",
"status": "pending",
"extraction": {
"ok": true,
"extraction": {
"plots": [
{
"page": 2,
"label": "Pasture A",
"areaHa": 2.8,
"country": "IT",
"geometry": {
"type": "Point",
"coordinates": [
11.58,
43.07
]
}
}
],
"issuer": "Conceria Modello S.p.A.",
"origins": [
{
"page": 1,
"country": "IT",
"material": "Bovine hides",
"regionCode": "IT-52",
"regionName": "Toscana"
}
],
"warnings": [
"plot_point_without_area"
],
"confidence": "high",
"custodySteps": [
{
"uom": "kg",
"date": "2026-01-05",
"page": 1,
"buyer": "Macello Senese S.r.l.",
"seller": "Azienda Agricola Val d'Orcia",
"quantity": 2400,
"regionFrom": null,
"countryFrom": null,
"documentReference": "DDT-04"
}
],
"documentType": "tannery_declaration",
"documentReference": "TD-2026-04"
}
},
"extracted_at": "2026-11-21T09:39:13.011735+00:00",
"suggested": {
"country": "IT",
"regionCode": "IT-52",
"regionName": "Toscana",
"ambiguous": false
},
"confirmed_country": null,
"confirmed_region_code": null,
"confirmed_region_name": null,
"material_external_ids": [],
"review_note": null,
"reviewed_by": null,
"reviewed_at": null,
"created_at": "2026-11-21T09:39:13.011735+00:00"
},
"cached": false,
"request_id": "0b7e5c1a-3d2f-4a69-8c1e-7f5d2b9a6e10"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}