Publish passport
curl --request POST \
--url https://api.insightchain.ai/v1/passports/{id}/publish \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"change_note": "Bill of materials completed"
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/publish"
payload = { "change_note": "Bill of materials completed" }
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({change_note: 'Bill of materials completed'})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/publish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"passport": {
"id": "5f042be4-0cce-4a7f-ab93-bbcb8c35ef81",
"org_id": "4fc7a944-6245-4491-b6af-694bd6bd14cf",
"external_id": "TOTE-MAT-00000023",
"granularity": "model",
"item_id": "221641ba-5901-43de-bacd-998771b3a578",
"variant_id": null,
"lot_id": null,
"tracked_unit_id": null,
"item_external_id": "MAT-00000023",
"lot_external_id": null,
"gtin": "00012345678905",
"batch_lot": null,
"serial": null,
"title": {
"en": "Canvas tote",
"fr": "Cabas en toile"
},
"brand": "Northwind Atelier",
"category": "Handbags",
"status": "published",
"published_version_id": "7cf4ec15-e6ae-4a3c-83b3-3e03f87cf808",
"draft_data": {
"impact": {
"water_m3": 0.4,
"energy_kwh": 3.2
},
"durability": [
{
"value": "Grade 5",
"metric": "abrasion",
"standard_ref": "ISO 12947-2"
}
],
"image_urls": [
"images/canvas-tote-front.jpg"
],
"circularity": {
"takeback_url": "https://example.com/takeback",
"material_routes": [
{
"route": "metal_recycling",
"material": "Brass"
}
],
"recyclability_route": {
"en": "Leather is repurposable; hardware is recyclable."
},
"takeback_scheme_name": "Take-back",
"epr_registration_number": "IT-EPR-0001"
},
"manufacturing": {
"assembly_country": "IT",
"facility_country": "IT",
"facility_external_id": "FAC-IT-0001"
},
"repairability": {
"score": 8,
"summary": {
"en": "Straps and hardware are replaceable."
},
"spare_parts_url": "https://example.com/spares",
"disassembly_steps": [
"Unclip the strap."
],
"disassembly_tools": [
"Screwdriver"
]
},
"stage_origins": [
{
"stage": "fibre",
"country_code": "IT"
}
],
"care_instructions": {
"en": "Wipe with a soft, dry cloth."
}
},
"completeness_score": 81.11,
"compliance_state": "incomplete",
"ruleset_version": "2026.08-textile-v1",
"public_enabled": false,
"registry_ref": null,
"created_at": "2026-11-21T10:55:55.212128+00:00",
"updated_at": "2026-11-21T10:55:55.614206+00:00"
},
"version": {
"id": "7cf4ec15-e6ae-4a3c-83b3-3e03f87cf808",
"version": 1,
"checksum": "981927c85ea8834e2ead3309678b336ca7d7407a45cfe7616c71be6db4a1de8f",
"published_at": "2026-11-21T10:55:55.609+00:00"
},
"completeness": {
"score": 81.11,
"sections": [
{
"section": "materials",
"label": "Materials & composition",
"score": 81.82,
"met": 6,
"total": 7,
"weight": 22
}
],
"gaps": [
{
"id": "impact.carbon_footprint",
"label": "Product carbon footprint",
"section": "impact",
"sectionLabel": "Environmental impact",
"severity": "required",
"weight": 5,
"remediation": "Add the product carbon footprint in kg CO2e.",
"regulationRefs": [
"ESPR 2024/1781 Annex I"
]
}
],
"blockingGaps": 0,
"requiredGaps": 4,
"applicable": 36,
"met": 29,
"rulesetVersion": "2026.08-textile-v1"
},
"request_id": "2f15db65-1845-47b3-8248-da5971820d26"
}{
"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>"
}Product passports
Publish passport
Publish a version (422 while blocking gaps remain). Publishing does not open the passport to the public: public_enabled does. A decision: the key’s creator must still be a member.
Key scope: execute. Module: dpp.
POST
/
v1
/
passports
/
{id}
/
publish
Publish passport
curl --request POST \
--url https://api.insightchain.ai/v1/passports/{id}/publish \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"change_note": "Bill of materials completed"
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/publish"
payload = { "change_note": "Bill of materials completed" }
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({change_note: 'Bill of materials completed'})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/publish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"passport": {
"id": "5f042be4-0cce-4a7f-ab93-bbcb8c35ef81",
"org_id": "4fc7a944-6245-4491-b6af-694bd6bd14cf",
"external_id": "TOTE-MAT-00000023",
"granularity": "model",
"item_id": "221641ba-5901-43de-bacd-998771b3a578",
"variant_id": null,
"lot_id": null,
"tracked_unit_id": null,
"item_external_id": "MAT-00000023",
"lot_external_id": null,
"gtin": "00012345678905",
"batch_lot": null,
"serial": null,
"title": {
"en": "Canvas tote",
"fr": "Cabas en toile"
},
"brand": "Northwind Atelier",
"category": "Handbags",
"status": "published",
"published_version_id": "7cf4ec15-e6ae-4a3c-83b3-3e03f87cf808",
"draft_data": {
"impact": {
"water_m3": 0.4,
"energy_kwh": 3.2
},
"durability": [
{
"value": "Grade 5",
"metric": "abrasion",
"standard_ref": "ISO 12947-2"
}
],
"image_urls": [
"images/canvas-tote-front.jpg"
],
"circularity": {
"takeback_url": "https://example.com/takeback",
"material_routes": [
{
"route": "metal_recycling",
"material": "Brass"
}
],
"recyclability_route": {
"en": "Leather is repurposable; hardware is recyclable."
},
"takeback_scheme_name": "Take-back",
"epr_registration_number": "IT-EPR-0001"
},
"manufacturing": {
"assembly_country": "IT",
"facility_country": "IT",
"facility_external_id": "FAC-IT-0001"
},
"repairability": {
"score": 8,
"summary": {
"en": "Straps and hardware are replaceable."
},
"spare_parts_url": "https://example.com/spares",
"disassembly_steps": [
"Unclip the strap."
],
"disassembly_tools": [
"Screwdriver"
]
},
"stage_origins": [
{
"stage": "fibre",
"country_code": "IT"
}
],
"care_instructions": {
"en": "Wipe with a soft, dry cloth."
}
},
"completeness_score": 81.11,
"compliance_state": "incomplete",
"ruleset_version": "2026.08-textile-v1",
"public_enabled": false,
"registry_ref": null,
"created_at": "2026-11-21T10:55:55.212128+00:00",
"updated_at": "2026-11-21T10:55:55.614206+00:00"
},
"version": {
"id": "7cf4ec15-e6ae-4a3c-83b3-3e03f87cf808",
"version": 1,
"checksum": "981927c85ea8834e2ead3309678b336ca7d7407a45cfe7616c71be6db4a1de8f",
"published_at": "2026-11-21T10:55:55.609+00:00"
},
"completeness": {
"score": 81.11,
"sections": [
{
"section": "materials",
"label": "Materials & composition",
"score": 81.82,
"met": 6,
"total": 7,
"weight": 22
}
],
"gaps": [
{
"id": "impact.carbon_footprint",
"label": "Product carbon footprint",
"section": "impact",
"sectionLabel": "Environmental impact",
"severity": "required",
"weight": 5,
"remediation": "Add the product carbon footprint in kg CO2e.",
"regulationRefs": [
"ESPR 2024/1781 Annex I"
]
}
],
"blockingGaps": 0,
"requiredGaps": 4,
"applicable": 36,
"met": 29,
"rulesetVersion": "2026.08-textile-v1"
},
"request_id": "2f15db65-1845-47b3-8248-da5971820d26"
}{
"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>"
}