{"info":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","description":"<html><head></head><body><p>Customer-facing DocImprint API collection. Set BASE_URL and API_KEY in collection variables before running.</p>\n<p>Authenticated requests use collection-level <code>Authorization: Bearer </code>. Discovery endpoints override auth to noauth.</p>\n<p><strong>Default behaviour:</strong> <code>POST /v1/extract</code> returns a lean AI extraction with no stored bundle (<code>store: false</code>). Add <code>\"store\": true</code> to the request body (or <code>?store=true</code>) to create a verifiable evidence bundle with <code>bundle_id</code>, artifacts, and provenance.</p>\n<p><strong>Browser content cache:</strong> Add <code>?max_age=</code> to reuse a recently-fetched page's raw content (browser/OCR skip on hit, AI always runs fresh).</p>\n<p>Docs: <a href=\"https://docimprint.com/docs\">https://docimprint.com/docs</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"34212964","collectionId":"72e69049-4f71-40ee-b6e3-f5da31bf717c","publishedId":"2sBY4PNfRd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-07-18T17:55:30.000Z"},"item":[{"name":"1 · Getting started","item":[{"name":"GET / — health check","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('status field', () => { pm.expect(pm.response.json().status).to.eql('ok'); });"],"id":"00e9838e-fcbb-4c3e-8fb5-b7f0c9c670a9"}}],"id":"d36bc0fb-0d0a-4f6d-9cf2-ca7dee555796","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.docimprint.com/","description":"<p>Service health and version. No auth required.</p>\n","urlObject":{"path":[""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d36bc0fb-0d0a-4f6d-9cf2-ca7dee555796"},{"name":"GET /.well-known/agent.json","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has name', () => { pm.expect(pm.response.json().name).to.eql('DocImprint'); });"],"id":"09e7c492-d5bf-45e1-82eb-bacafcef6ae1"}}],"id":"8004ead2-eaaf-4a7b-899f-21a2bde4a985","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.docimprint.com/.well-known/agent.json","description":"<p>Machine-readable capabilities, pricing, and MCP endpoint. No auth required.</p>\n","urlObject":{"path":[".well-known","agent.json"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8004ead2-eaaf-4a7b-899f-21a2bde4a985"},{"name":"GET /openapi.json","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has openapi field', () => { pm.expect(pm.response.json()).to.have.property('openapi'); });"],"id":"9100318d-cf7c-4dab-abf2-487166e9f8a8"}}],"id":"961e1565-99bd-48f5-a0ae-39832b25ecb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.docimprint.com/openapi.json","description":"<p>OpenAPI 3 specification for the full API. No auth required.</p>\n","urlObject":{"path":["openapi.json"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"961e1565-99bd-48f5-a0ae-39832b25ecb0"},{"name":"GET /SKILL.md","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('is markdown', () => { pm.expect(pm.response.headers.get('content-type')).to.include('text'); });"],"id":"9327a804-0355-4da1-bcf4-52cb86d1f627"}}],"id":"acf35c87-b7e1-40f4-8ad9-fdb503e20153","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.docimprint.com/SKILL.md","description":"<p>Agent onboarding guide (markdown). No auth required.</p>\n","urlObject":{"path":["SKILL.md"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"acf35c87-b7e1-40f4-8ad9-fdb503e20153"},{"name":"GET /.well-known/darkroom-keys.json","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"694ee2bc-35a3-4033-b0f9-dfa6200a5bab"}}],"id":"9be05de8-9897-4a41-905f-a0109bbec9cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.docimprint.com/.well-known/darkroom-keys.json","description":"<p>Published secp256k1 keys for offline manifest verification. No auth required.</p>\n","urlObject":{"path":[".well-known","darkroom-keys.json"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9be05de8-9897-4a41-905f-a0109bbec9cb"},{"name":"GET /v1/keys","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"dff6bb3f-8abe-48e9-aba1-223a97efec33"}}],"id":"9f3802f8-37c5-48a8-8541-0a090834c477","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.docimprint.com/v1/keys","description":"<p>Signing keys for bundle manifest verification. No auth required.</p>\n","urlObject":{"path":["v1","keys"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f3802f8-37c5-48a8-8541-0a090834c477"},{"name":"POST /v1/quickstart/sample-bundle — sample invoice","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('201 ok', () => { pm.response.to.have.status(201); });","const data = pm.response.json();","pm.test('has bundle_id', () => { pm.expect(data.bundle_id).to.match(/^ev_/); });","pm.test('has verify_url', () => { pm.expect(data.verify_url).to.be.a('string'); });"],"id":"2ae5c074-d9c0-4bc0-9ee0-da697ecc7a69"}}],"id":"8ac57c15-0d0c-4af7-944b-67170849ffe0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"doc_type\": \"invoice\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/quickstart/sample-bundle","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","quickstart","sample-bundle"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ac57c15-0d0c-4af7-944b-67170849ffe0"}],"id":"33dd2073-be84-412d-a2b5-23a1f5f1070b","_postman_id":"33dd2073-be84-412d-a2b5-23a1f5f1070b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}},{"name":"2 · Extract (with evidence bundle)","item":[{"name":"POST /v1/extract — full bundle (sets BUNDLE_ID)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function setFlowVar(key, value) {","  pm.collectionVariables.set(key, value)","  pm.environment.set(key, value)","}","","const data = pm.response.json();","if (data.bundle_id) {","  setFlowVar('BUNDLE_ID', data.bundle_id);","  console.log('BUNDLE_ID set to', data.bundle_id);","}","if (data.bundle_id) {","  setFlowVar('PREV_BUNDLE_ID', data.bundle_id);","  console.log('PREV_BUNDLE_ID set to', data.bundle_id);","}","pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has bundle_id', () => { pm.expect(pm.response.json().bundle_id).to.match(/^ev_/); });","pm.test('has provenance.manifest_sha256', () => {","  pm.expect(pm.response.json().provenance).to.be.an('object');","  pm.expect(pm.response.json().provenance.manifest_sha256).to.match(/^[a-f0-9]{64}$/);","});"],"id":"3aee6ffc-fa5b-4ad8-b762-cda0f3471b42"}}],"id":"64231983-fcfe-45a1-81fe-6d0f578bac6d","protocolProfileBehavior":{"requestTimeout":120000,"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"store\": true,\n  \"include\": [\n    \"markdown\",\n    \"summary\",\n    \"screenshot\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract?sync=true","description":"<p>Extract + AI analysis with full evidence bundle. Requires <code>\"store\": true</code> in the body (the default is lean/no-bundle). Returns <code>bundle_id</code>, artifacts, and provenance. Sets BUNDLE_ID for subsequent requests.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract"],"host":["https://api.docimprint.com"],"query":[{"key":"sync","value":"true"}],"variable":[]}},"response":[],"_postman_id":"64231983-fcfe-45a1-81fe-6d0f578bac6d"},{"name":"GET /v1/extract/:id — retrieve bundle","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const id = pm.collectionVariables.get('BUNDLE_ID') || pm.environment.get('BUNDLE_ID');","if (!id || !/^ev_/.test(id)) {","  throw new Error('BUNDLE_ID not set — run POST /v1/extract (full bundle) first.');","}"],"id":"74ab75af-c4a9-4503-87f4-04ee189faa21"}},{"listen":"test","script":{"type":"text/javascript","exec":["function flowVar(key) {","  return pm.collectionVariables.get(key) || pm.environment.get(key);","}","","pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('id matches', () => { pm.expect(pm.response.json().bundle_id).to.eql(flowVar('BUNDLE_ID')); });"],"id":"e9ccdeee-6e63-446d-82d9-3a7613755426"}}],"id":"ba5aedf3-d8be-4812-9ac4-a934aaba917d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba5aedf3-d8be-4812-9ac4-a934aaba917d"},{"name":"GET /v1/extract/:id/verify — integrity check","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('valid true', () => { pm.expect(pm.response.json().valid).to.be.true; });"],"id":"f12489e6-1923-4b2e-8354-5189c75cab6a"}}],"id":"27beca92-a0be-48eb-9b69-d4904ee33f02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract//verify","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","verify"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"27beca92-a0be-48eb-9b69-d4904ee33f02"},{"name":"GET /v1/extract/:id/verify?quick=true","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"cc658a2d-6b02-484b-bdfb-a1d1cc6b0c85"}}],"id":"b762054d-5981-45cf-83d5-d4f8578d6758","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract//verify?quick=true","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","verify"],"host":["https://api.docimprint.com"],"query":[{"key":"quick","value":"true"}],"variable":[]}},"response":[],"_postman_id":"b762054d-5981-45cf-83d5-d4f8578d6758"},{"name":"GET /v1/extract/:id/download — ZIP archive","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"50a313ee-cd80-4e3a-a135-2f8feab2338e"}}],"id":"07a1553a-0a6c-47b3-8249-c1249e6aaa43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract//download","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","download"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"07a1553a-0a6c-47b3-8249-c1249e6aaa43"},{"name":"POST /v1/extract/:id/verify-citation","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('2xx ok', () => { pm.expect(pm.response.code).to.be.within(200, 299); });"],"id":"168afbc1-4c41-463c-a180-76b02c6c5997"}}],"id":"0d6c8fe4-fd87-4b26-85bc-47ff89af066f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"chunk_id\": \"c_0\",\n  \"text\": \"A Light in the Attic\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract//verify-citation","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","verify-citation"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d6c8fe4-fd87-4b26-85bc-47ff89af066f"},{"name":"GET /v1/extract/:id/history — version chain","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"d09530c4-e8d1-4cc4-86ea-46b9178cd2d4"}}],"id":"00931c78-d919-4a8a-8ec7-0ddf56a16469","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract//history","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","history"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"00931c78-d919-4a8a-8ec7-0ddf56a16469"},{"name":"GET /v1/extract/:id/provenance","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"a697d507-cc02-4d04-a504-47aed386905b"}}],"id":"f1a44c50-8b49-4dd4-922c-fdaea19bcab9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract//provenance","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","provenance"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f1a44c50-8b49-4dd4-922c-fdaea19bcab9"},{"name":"POST /v1/extract/:id/provenance","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('201 created', () => { pm.response.to.have.status(201); });"],"id":"f8d2675b-aa8b-4c9a-9a0b-fca5552d7a8a"}}],"id":"283376e5-b84c-437b-883c-0f5bc37a6f8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"agent_id\": \"demo-agent\",\n  \"action\": \"qa\",\n  \"query\": \"What is the book title?\",\n  \"result_summary\": \"A Light in the Attic\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract//provenance","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","provenance"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"283376e5-b84c-437b-883c-0f5bc37a6f8e"},{"name":"POST /v1/extract/:id/handoff","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('201 created', () => { pm.response.to.have.status(201); });"],"id":"e6e4dc77-2a4d-4a22-94d7-f61bf211debd"}}],"id":"63050bf4-015b-4c5e-9c29-45d7bf8e796c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"from_agent\": \"demo-agent-a\",\n  \"to_agent\": \"demo-agent-b\",\n  \"note\": \"Passing for review\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract//handoff","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","handoff"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"63050bf4-015b-4c5e-9c29-45d7bf8e796c"},{"name":"GET /v1/extract/:id/chain","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"2628d255-2ddc-4520-9774-9e1eaf93dbb6"}}],"id":"940042fd-f7c7-40d6-b5b0-6d49a98ac8a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract//chain","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","chain"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"940042fd-f7c7-40d6-b5b0-6d49a98ac8a4"},{"name":"PUT /v1/extract/:id/hold","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('legal_hold true', () => { pm.expect(pm.response.json().legal_hold).to.be.true; });"],"id":"ba561124-57e5-4dd0-b216-f2546024dd9b"}}],"id":"69bd8233-00fd-4d6d-a1eb-92addf0c30ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"https://api.docimprint.com/v1/extract//hold","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","hold"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"69bd8233-00fd-4d6d-a1eb-92addf0c30ea"},{"name":"DELETE /v1/extract/:id/hold","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('legal_hold false', () => { pm.expect(pm.response.json().legal_hold).to.be.false; });"],"id":"b15e676a-cf64-4563-acf1-3c96d66d7633"}}],"id":"c12a035a-7810-48b4-9d9d-b6823268ba35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.docimprint.com/v1/extract//hold","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","hold"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c12a035a-7810-48b4-9d9d-b6823268ba35"},{"name":"POST /v1/extract/:id/notarize","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const skip = pm.collectionVariables.get('SKIP_NOTARIZE') || pm.environment.get('SKIP_NOTARIZE');","if (skip === 'true' || skip === true) {","  console.log('Skipping notarize (SKIP_NOTARIZE=true)');","  pm.execution.skipRequest();","}"],"id":"291404ea-d797-4044-ad99-8fdee91fcd6f"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has attestation', () => { pm.expect(pm.response.json()).to.have.property('attestation'); });","if (pm.response.code !== 200) {","  const err = pm.response.json().error || pm.response.text();","  console.warn('[notarize failed]', pm.response.code, err);","  console.warn('Notarize failed — on-chain attestation may be unavailable. Set SKIP_NOTARIZE=true to skip.');","}"],"id":"fc67048b-56e5-41c9-8111-b45add47133c"}}],"id":"bcdf29c7-3e23-4096-a969-077a18325f98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://api.docimprint.com/v1/extract//notarize","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","notarize"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bcdf29c7-3e23-4096-a969-077a18325f98"},{"name":"POST /v1/extract — throwaway bundle (for delete demo)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function setFlowVar(key, value) {","  pm.collectionVariables.set(key, value)","  pm.environment.set(key, value)","}","","const data = pm.response.json();","if (data.bundle_id) {","  setFlowVar('DELETE_BUNDLE_ID', data.bundle_id);","  console.log('DELETE_BUNDLE_ID set to', data.bundle_id);","}","pm.test('200 ok or rate limited', () => { pm.expect([200, 429]).to.include(pm.response.code); });","if (pm.response.code === 200) {","  pm.test('has bundle_id', () => { pm.expect(pm.response.json().bundle_id).to.match(/^ev_/); });","}"],"id":"ffa9b2c9-e62f-4255-8041-51a34e0cd3fe"}}],"id":"7dbf7b39-e77e-4ab4-8ddb-a1fd99500ccc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"mode\": \"summarize\",\n  \"store\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract?sync=true","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract"],"host":["https://api.docimprint.com"],"query":[{"key":"sync","value":"true"}],"variable":[]}},"response":[],"_postman_id":"7dbf7b39-e77e-4ab4-8ddb-a1fd99500ccc"},{"name":"DELETE /v1/extract/:id — delete bundle","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok or no bundle to delete', () => {","  pm.expect([200, 404]).to.include(pm.response.code);","});","if (pm.response.code === 200) {","  pm.test('deleted true', () => { pm.expect(pm.response.json().deleted).to.be.true; });","}"],"id":"f6fe76ed-9ffc-4a2f-882e-189aa611c35a"}}],"id":"aaf4b3c1-ce63-488d-b398-6f9bbce758cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.docimprint.com/v1/extract/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"aaf4b3c1-ce63-488d-b398-6f9bbce758cd"}],"id":"4dc026e1-4f8d-4914-972c-d764c16d8898","_postman_id":"4dc026e1-4f8d-4914-972c-d764c16d8898","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}},{"name":"2b · Signed action receipts","item":[{"name":"GET /v1/extract/:id/receipts — list action receipts","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","const data = pm.response.json();","pm.test('receipts is an array', () => { pm.expect(data.receipts).to.be.an('array'); });","if (data.receipts && data.receipts.length) {","  pm.collectionVariables.set('RECEIPT_ID', data.receipts[0].id);","  console.log('RECEIPT_ID set to', data.receipts[0].id);","} else {","  console.log('No receipts yet — call get_bundle/verify_bundle/notarize_bundle/add_document_to_collection via MCP against this bundle to generate one.');","}"],"id":"71f8592b-a6f1-4311-9f39-0c5583dbb8b6"}}],"id":"c7b67b3c-3180-483c-b4d0-b4d51acdf8e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract//receipts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","receipts"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7b67b3c-3180-483c-b4d0-b4d51acdf8e3"},{"name":"GET /v1/extract/receipts/:id/verify — verify receipt signature","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const id = pm.collectionVariables.get('RECEIPT_ID') || pm.environment.get('RECEIPT_ID');","if (!id || !/^rcpt_/.test(id)) {","  console.log('Skipping — no RECEIPT_ID. Receipts are created by calling get_bundle / verify_bundle / notarize_bundle / add_document_to_collection via MCP, not by this REST collection.');","  pm.execution.skipRequest();","}"],"id":"250c11f5-4381-4b33-8f53-a7ca5c4f0120"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has signature_valid + manifest_matches_current', () => {","  const j = pm.response.json();","  pm.expect(j.signature_valid).to.be.a('boolean');","  pm.expect(j.manifest_matches_current).to.be.a('boolean');","});"],"id":"3e665e23-5230-4526-88ea-f0485e697b0f"}}],"id":"b80fc993-01f2-45ca-9c07-c64c136d0d55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract/receipts//verify","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","receipts","","verify"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b80fc993-01f2-45ca-9c07-c64c136d0d55"}],"id":"1f76fe22-2a33-4200-86f2-464653730994","_postman_id":"1f76fe22-2a33-4200-86f2-464653730994","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}},{"name":"2c · Checkpoints & proofs","item":[{"name":"checkpoint · force create (sets CHECKPOINT_ID)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 or 201 ok', () => { pm.expect([200, 201]).to.include(pm.response.code); });","const data = pm.response.json();","if (data.checkpoint && data.checkpoint.id) {","  pm.collectionVariables.set('CHECKPOINT_ID', data.checkpoint.id);","  console.log('CHECKPOINT_ID set to', data.checkpoint.id);","} else {","  console.log('No new checkpoint created — no completed bundles were pending.');","}"],"id":"65e28116-c8ed-4833-be60-4cfed5ad9623"}}],"id":"04acdff9-1ff1-4c3e-9eec-cb1fba661c5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://api.docimprint.com/v1/checkpoints?force=true&batch_size=5","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","checkpoints"],"host":["https://api.docimprint.com"],"query":[{"key":"force","value":"true"},{"key":"batch_size","value":"5"}],"variable":[]}},"response":[],"_postman_id":"04acdff9-1ff1-4c3e-9eec-cb1fba661c5f"},{"name":"GET /v1/checkpoints/:id — checkpoint details","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const id = pm.collectionVariables.get('CHECKPOINT_ID') || pm.environment.get('CHECKPOINT_ID');","if (!id || !/^cp_/.test(id)) {","  console.log('Skipping — no CHECKPOINT_ID. No new checkpoint was created by the previous request (nothing was pending).');","  pm.execution.skipRequest();","}"],"id":"0bdd827a-ed2b-4b75-bf10-7b42c916ea63"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has checkpoint', () => { pm.expect(pm.response.json().checkpoint).to.exist; });"],"id":"b398472d-9a28-400e-b2d1-20540f8a7b7c"}}],"id":"0ae8486e-4af6-4bde-9968-61de564b204e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/checkpoints/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","checkpoints",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ae8486e-4af6-4bde-9968-61de564b204e"},{"name":"GET /v1/checkpoints/proof?bundle_id — Merkle proof for a bundle","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const id = pm.collectionVariables.get('BUNDLE_ID') || pm.environment.get('BUNDLE_ID');","if (!id || !/^ev_/.test(id)) {","  throw new Error('BUNDLE_ID not set — run POST /v1/extract (full bundle) first.');","}"],"id":"44856da1-e5af-4037-80dd-fa6365117d72"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 proof found or 404 not yet checkpointed', () => {","  pm.expect([200, 404]).to.include(pm.response.code);","});","if (pm.response.code === 200) {","  pm.test('proof is an array', () => { pm.expect(pm.response.json().proof).to.be.an('array'); });","}"],"id":"b2901454-b916-4a30-a954-4464135a0cba"}}],"id":"6fb1733c-c21d-48da-8e59-6b4c0286832a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/checkpoints/proof?bundle_id=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","checkpoints","proof"],"host":["https://api.docimprint.com"],"query":[{"key":"bundle_id","value":""}],"variable":[]}},"response":[],"_postman_id":"6fb1733c-c21d-48da-8e59-6b4c0286832a"},{"name":"GET /v1/checkpoints/public-key — signing public key","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has key', () => { pm.expect(pm.response.json().key).to.be.a('string').and.not.empty; });"],"id":"c4cf9f9e-d17d-4eb7-8838-f7b40bb4704a"}}],"id":"1ca6488d-98bc-4354-85b3-5952dd2b0818","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/checkpoints/public-key","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","checkpoints","public-key"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ca6488d-98bc-4354-85b3-5952dd2b0818"}],"id":"05fc0d3e-069f-4705-9d58-d18dbd2b056c","_postman_id":"05fc0d3e-069f-4705-9d58-d18dbd2b056c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}},{"name":"3 · Focused analysis (lean — no bundle)","item":[{"name":"POST /v1/extract — lean (no bundle, default)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('store false', () => { pm.expect(pm.response.json().store).to.be.false; });","pm.test('no bundle_id', () => { pm.expect(pm.response.json().bundle_id).to.be.undefined; });"],"id":"0cbd0763-21ec-4d52-97c7-6d6d3d98cf3f"}}],"id":"51d0dfce-5d86-479c-bf05-e4b5abb735ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract","description":"<p>Lean extract — AI analysis with no stored bundle. This is the default behaviour (<code>store: false</code>). Response contains <code>result</code> but no <code>bundle_id</code>, artifacts, or provenance.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"51d0dfce-5d86-479c-bf05-e4b5abb735ee"},{"name":"POST /v1/extract?max_age=300 — cached browser fetch","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('store false', () => { pm.expect(pm.response.json().store).to.be.false; });"],"id":"b32bda86-4b55-4972-81a4-cb70a63321ff"}}],"id":"4e4c20a3-7128-479d-987c-5a8c1400ad09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"mode\": \"summarize\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract?max_age=300","description":"<p>Browser content cache: if the same URL was fetched within <code>max_age</code> seconds, the raw page content is served from KV cache (browser launch + OCR skipped). AI analysis always runs fresh. Run this request twice — the second call should be noticeably faster.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract"],"host":["https://api.docimprint.com"],"query":[{"key":"max_age","value":"300"}],"variable":[]}},"response":[],"_postman_id":"4e4c20a3-7128-479d-987c-5a8c1400ad09"},{"name":"POST /v1/extract — PDF upload (lean, no bundle)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"2aa6e476-ec1f-4cd0-8e4a-483c0c952407"}}],"id":"01dda4d6-d0c3-4a6a-9ca1-92e59b716607","protocolProfileBehavior":{"requestTimeout":120000,"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null},{"key":"mode","type":"text","value":"invoice"}]},"url":"https://api.docimprint.com/v1/extract?store=false","description":"<p>Multipart PDF upload (lean, no bundle). In Postman Body → form-data, select a PDF file for the <code>file</code> field.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract"],"host":["https://api.docimprint.com"],"query":[{"key":"store","value":"false"}],"variable":[]}},"response":[],"_postman_id":"01dda4d6-d0c3-4a6a-9ca1-92e59b716607"},{"name":"POST /v1/summarize","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"b623c438-8055-4f7c-9760-8ce1f1c43abd"}}],"id":"2e2ba673-13fa-4b68-9cb8-33265897153c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/summarize","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","summarize"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e2ba673-13fa-4b68-9cb8-33265897153c"},{"name":"POST /v1/qa","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"3e65e478-ecbb-4442-8d1b-c430a17a6e07"}}],"id":"b7afc400-b129-4a13-bd84-47551ed21574","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"question\": \"What is the price of the book?\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/qa","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","qa"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7afc400-b129-4a13-bd84-47551ed21574"},{"name":"POST /v1/translate","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"af9cbb36-129c-49ac-ae65-967879bd7589"}}],"id":"e263e584-c991-4ad5-83cd-0a07d2c0149e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"target_lang\": \"es\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/translate","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","translate"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e263e584-c991-4ad5-83cd-0a07d2c0149e"},{"name":"POST /v1/check-claims","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"15fd5a42-7cf5-4d1c-aeda-bc76b9ecd72d"}}],"id":"bf30525b-5fe5-4fdf-8348-a5d6edb1a674","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"claims\": [\n    \"The book is titled A Light in the Attic\",\n    \"The book is in stock\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/check-claims","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","check-claims"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf30525b-5fe5-4fdf-8348-a5d6edb1a674"},{"name":"POST /v1/describe","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"022da2b1-0ba8-4ce7-a078-052154f407b0"}}],"id":"5bfbc7e3-f92e-4d67-8f11-d71910c120a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/describe","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","describe"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5bfbc7e3-f92e-4d67-8f11-d71910c120a7"}],"id":"1464c841-2f93-4f12-ae29-56711f7c26fd","_postman_id":"1464c841-2f93-4f12-ae29-56711f7c26fd","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}},{"name":"3b · Invoice (evidence bundle)","item":[{"name":"POST /v1/extract — invoice URL → evidence bundle","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function setFlowVar(key, value) {","  pm.collectionVariables.set(key, value)","  pm.environment.set(key, value)","}","","const data = pm.response.json();","if (data.bundle_id) {","  setFlowVar('INVOICE_BUNDLE_ID', data.bundle_id);","  console.log('INVOICE_BUNDLE_ID set to', data.bundle_id);","}","pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has bundle_id', () => { pm.expect(pm.response.json().bundle_id).to.match(/^ev_/); });","pm.test('has invoice result', () => {","  const r = pm.response.json().result;","  pm.expect(r.invoice || r.invoice_cited).to.exist;","});","pm.test('has provenance', () => { pm.expect(pm.response.json().provenance).to.be.an('object'); });"],"id":"38cbeadc-604e-48aa-b17b-efaabdafdd81"}}],"id":"5d7b5d2d-b3bc-4f6a-9ee1-3f99509df74b","protocolProfileBehavior":{"requestTimeout":120000,"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://www.w3.org/WAI/WCAG21/Techniques/pdf/sample.pdf\",\n  \"mode\": \"invoice\",\n  \"store\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract?sync=true","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract"],"host":["https://api.docimprint.com"],"query":[{"key":"sync","value":"true"}],"variable":[]}},"response":[],"_postman_id":"5d7b5d2d-b3bc-4f6a-9ee1-3f99509df74b"},{"name":"GET /v1/extract/:id — invoice bundle","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('mode is invoice', () => { pm.expect(pm.response.json().mode).to.eql('invoice'); });"],"id":"7a213e27-e9fc-4efe-9520-4fe37e017708"}}],"id":"200588b5-760e-4a34-a35a-4dac98520e9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"200588b5-760e-4a34-a35a-4dac98520e9e"},{"name":"GET /v1/extract/:id/verify — invoice bundle","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('valid true', () => { pm.expect(pm.response.json().valid).to.be.true; });"],"id":"a7767080-648f-49e5-b7b4-ba5fa71bf4f6"}}],"id":"a774e3a1-4517-4b0d-8f10-70b1c69e7136","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/extract//verify","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract","","verify"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a774e3a1-4517-4b0d-8f10-70b1c69e7136"},{"name":"POST /v1/extract — invoice PDF upload → evidence bundle","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has bundle_id', () => { pm.expect(pm.response.json().bundle_id).to.match(/^ev_/); });","pm.test('has invoice result', () => {","  const r = pm.response.json().result;","  pm.expect(r.invoice || r.invoice_cited).to.exist;","});"],"id":"3c7f5382-48cc-48ce-9f71-ea1f606c8ef0"}}],"id":"d59f820b-b838-4572-9560-271d3a5290b3","protocolProfileBehavior":{"requestTimeout":120000,"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null},{"key":"mode","type":"text","value":"invoice"}]},"url":"https://api.docimprint.com/v1/extract?sync=true&store=true","description":"<p>Multipart PDF upload with full evidence bundle. In Postman Body → form-data, select a PDF file for the <code>file</code> field.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract"],"host":["https://api.docimprint.com"],"query":[{"key":"sync","value":"true"},{"key":"store","value":"true"}],"variable":[]}},"response":[],"_postman_id":"d59f820b-b838-4572-9560-271d3a5290b3"}],"id":"392b8fcb-daf1-4872-93e5-2ff81b7fee44","_postman_id":"392b8fcb-daf1-4872-93e5-2ff81b7fee44","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}},{"name":"4 · Async jobs","item":[{"name":"POST /v1/extract?async=true — queue job","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function setFlowVar(key, value) {","  pm.collectionVariables.set(key, value)","  pm.environment.set(key, value)","}","","const data = pm.response.json();","if (data.job_id) {","  setFlowVar('JOB_ID', data.job_id);","  console.log('JOB_ID set to', data.job_id);","}","pm.test('202 queued', () => { pm.response.to.have.status(202); });","pm.test('has job_id', () => { pm.expect(pm.response.json().job_id).to.match(/^job_/); });"],"id":"ac37de36-e1d6-441d-9262-95716f312f74"}}],"id":"c82d1e7d-17e5-4986-a245-dcf43b0df440","protocolProfileBehavior":{"requestTimeout":120000,"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"mode\": \"summarize\",\n  \"store\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract?async=true","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract"],"host":["https://api.docimprint.com"],"query":[{"key":"async","value":"true"}],"variable":[]}},"response":[],"_postman_id":"c82d1e7d-17e5-4986-a245-dcf43b0df440"},{"name":"GET /v1/jobs/:id — job status","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function flowVar(key) {","  return pm.collectionVariables.get(key) || pm.environment.get(key)","}","","const jobId = flowVar('JOB_ID')","const baseUrl = pm.variables.replaceIn('https://api.docimprint.com')","const apiKey = pm.collectionVariables.get('API_KEY') || pm.environment.get('API_KEY')","","const maxAttempts = 30","const delayMs = 2000","let attempt = 0","","function poll() {","  attempt += 1","  pm.sendRequest(","    {","      url: `${baseUrl}/v1/jobs/${jobId}`,","      method: 'GET',","      header: { Authorization: `Bearer ${apiKey}` },","    },","    (err, res) => {","      pm.test('200 ok', () => {","        if (err) throw err","        pm.expect(res.code).to.eql(200)","      })","","      const body = res.json()","      const status = body.status","","      if (status === 'complete') {","        pm.test('job reached complete', () => {","          pm.expect(status).to.eql('complete')","        })","        return","      }","","      if (status === 'failed') {","        pm.test('job reached complete', () => {","          throw new Error(`Job failed: ${body.error || JSON.stringify(body)}`)","        })","        return","      }","","      if (attempt >= maxAttempts) {","        pm.test('job reached complete', () => {","          throw new Error(`Job still ${status} after ${maxAttempts} attempts (${maxAttempts * delayMs / 1000}s)`)","        })","        return","      }","","      setTimeout(poll, delayMs)","    },","  )","}","","pm.test('JOB_ID is set', () => {","  pm.expect(jobId, 'Run async job step first').to.match(/^job_/)","})","","poll()"],"id":"5c8bc8e9-89f6-4be3-ba9d-de063f719622"}}],"id":"4eb9d856-d8ec-4de5-b032-3afd48d7a848","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/jobs/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","jobs",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4eb9d856-d8ec-4de5-b032-3afd48d7a848"},{"name":"job · async=true lean (store=false returns 200 synchronously)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 sync (async ignored for lean)', () => { pm.response.to.have.status(200); });","pm.test('store false', () => { pm.expect(pm.response.json().store).to.be.false; });","pm.test('no job_id (lean is always sync)', () => { pm.expect(pm.response.json().job_id).to.be.undefined; });"],"id":"75c405c3-1455-4014-8ffd-d8719431d9b8"}}],"id":"45ae19b9-4027-4c67-81a3-237f3bd5b24a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"mode\": \"summarize\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/extract?async=true","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","extract"],"host":["https://api.docimprint.com"],"query":[{"key":"async","value":"true"}],"variable":[]}},"response":[],"_postman_id":"45ae19b9-4027-4c67-81a3-237f3bd5b24a"},{"name":"POST /v1/jobs — batch queue","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('202 queued', () => { pm.response.to.have.status(202); });","pm.test('has job_id', () => { pm.expect(pm.response.json().job_id).to.match(/^job_/); });"],"id":"11b3cb05-a55d-4524-aeb8-bb43d0a07acc"}}],"id":"131e2000-709b-46d1-ab44-bad7f50db124","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"items\": [\n    {\n      \"source\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\"\n    },\n    {\n      \"source\": \"https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html\"\n    }\n  ],\n  \"mode\": \"summarize\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/jobs","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","jobs"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"131e2000-709b-46d1-ab44-bad7f50db124"}],"id":"a587ac43-90db-4705-ac24-4114afe174b9","_postman_id":"a587ac43-90db-4705-ac24-4114afe174b9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}},{"name":"5 · Collections & search","item":[{"name":"POST /v1/collections — create (sets COLLECTION_ID)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function setFlowVar(key, value) {","  pm.collectionVariables.set(key, value)","  pm.environment.set(key, value)","}","","const data = pm.response.json();","if (data.collection_id) {","  setFlowVar('COLLECTION_ID', data.collection_id);","  console.log('COLLECTION_ID set to', data.collection_id);","}","pm.test('2xx ok', () => { pm.expect(pm.response.code).to.be.within(200, 299); });"],"id":"01dc5b71-264b-4d51-b014-a81cff172970"}}],"id":"1e9afd7c-c336-4aa3-821f-5eeec2d6770d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Demo Matter\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/collections","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","collections"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e9afd7c-c336-4aa3-821f-5eeec2d6770d"},{"name":"GET /v1/collections","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"40186d27-3e71-42d8-8433-af4483656db7"}}],"id":"c27a980b-b749-40c7-8972-2788b960b2cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/collections","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","collections"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c27a980b-b749-40c7-8972-2788b960b2cd"},{"name":"GET /v1/collections/:id","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"f4f6773f-dee4-46f5-bc67-b1141a71c90d"}}],"id":"9b79e33d-78bd-4883-8130-d3eedc669206","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/collections/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","collections",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b79e33d-78bd-4883-8130-d3eedc669206"},{"name":"POST /v1/collections/:id/documents — add bundle","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function setFlowVar(key, value) {","  pm.collectionVariables.set(key, value)","  pm.environment.set(key, value)","}","","const data = pm.response.json();","if (data.job_id) {","  setFlowVar('JOB_ID', data.job_id);","  console.log('JOB_ID set to', data.job_id);","}","pm.test('202 queued', () => { pm.response.to.have.status(202); });","pm.test('has job_id', () => { pm.expect(pm.response.json().job_id).to.match(/^job_/); });"],"id":"176840e9-1266-4d06-a2ff-a29599535565"}}],"id":"263da1c8-c546-446b-af6a-9363585816c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"bundle_id\": \"\",\n  \"async\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/collections//documents","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","collections","","documents"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"263da1c8-c546-446b-af6a-9363585816c9"},{"name":"error · duplicate document (409)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('409 duplicate', () => { pm.response.to.have.status(409); });"],"id":"e8ec1236-5286-4154-839a-ea3119bb649c"}}],"id":"1a345b18-7f68-4d78-9b7b-cdaf4a12a1d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"bundle_id\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/collections//documents","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","collections","","documents"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a345b18-7f68-4d78-9b7b-cdaf4a12a1d8"},{"name":"GET /v1/jobs/:id — index job status","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function flowVar(key) {","  return pm.collectionVariables.get(key) || pm.environment.get(key)","}","","const jobId = flowVar('JOB_ID')","const baseUrl = pm.variables.replaceIn('https://api.docimprint.com')","const apiKey = pm.collectionVariables.get('API_KEY') || pm.environment.get('API_KEY')","","const maxAttempts = 30","const delayMs = 2000","let attempt = 0","","function poll() {","  attempt += 1","  pm.sendRequest(","    {","      url: `${baseUrl}/v1/jobs/${jobId}`,","      method: 'GET',","      header: { Authorization: `Bearer ${apiKey}` },","    },","    (err, res) => {","      pm.test('200 ok', () => {","        if (err) throw err","        pm.expect(res.code).to.eql(200)","      })","","      const body = res.json()","      const status = body.status","","      if (status === 'complete') {","        pm.test('job reached complete', () => {","          pm.expect(status).to.eql('complete')","        })","        return","      }","","      if (status === 'failed') {","        pm.test('job reached complete', () => {","          throw new Error(`Job failed: ${body.error || JSON.stringify(body)}`)","        })","        return","      }","","      if (attempt >= maxAttempts) {","        pm.test('job reached complete', () => {","          throw new Error(`Job still ${status} after ${maxAttempts} attempts (${maxAttempts * delayMs / 1000}s)`)","        })","        return","      }","","      setTimeout(poll, delayMs)","    },","  )","}","","pm.test('JOB_ID is set', () => {","  pm.expect(jobId, 'Run async job step first').to.match(/^job_/)","})","","poll()"],"id":"cb1aa7e0-f6bc-496c-b8ae-c0a4798c1a4f"}}],"id":"bd2d0a97-5f90-4150-8874-8bc2a0719276","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/jobs/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","jobs",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd2d0a97-5f90-4150-8874-8bc2a0719276"},{"name":"GET /v1/collections/:id/search — semantic search","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok or vectorize unavailable', () => {","  pm.expect([200, 503]).to.include(pm.response.code);","});","if (pm.response.code === 200) {","  pm.test('has results array', () => { pm.expect(pm.response.json().results).to.be.an('array'); });","  pm.test('search returned hits', () => {","    const n = pm.response.json().results.length;","    if (n === 0) console.warn('Search returned 0 hits — index may still be warming');","    pm.expect(n, 'Index may still be running').to.be.at.least(0);","  });","}"],"id":"b275777e-35e4-4083-abfb-6b259a52f9a2"}}],"id":"556dec18-ac6b-4acc-9a8f-7420c29d3319","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/collections//search?q=light in attic&limit=5","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","collections","","search"],"host":["https://api.docimprint.com"],"query":[{"key":"q","value":"light in attic"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"556dec18-ac6b-4acc-9a8f-7420c29d3319"},{"name":"POST /v1/collections/:id/ask — cross-document Q&A","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok or vectorize unavailable', () => {","  pm.expect([200, 503]).to.include(pm.response.code);","});","if (pm.response.code === 503) {","  console.warn('ask 503 — semantic search unavailable on this account or plan');","}"],"id":"ad4e94f1-2464-4272-a96a-07b28a17d92f"}}],"id":"5373a9de-1207-442b-81d5-2bef62fc108a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"question\": \"Which books are in stock and what are their prices?\",\n  \"max_chunks\": 8\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/collections//ask","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","collections","","ask"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5373a9de-1207-442b-81d5-2bef62fc108a"},{"name":"POST /v1/collections/:id/documents/:bundleId/reindex","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('202 queued or already indexed', () => {","  pm.expect(pm.response.code).to.be.oneOf([202, 409]);","});"],"id":"b4daae11-853e-41de-b750-a0c807c290ad"}}],"id":"70e6814a-b896-4e81-9dd9-9941189f44a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://api.docimprint.com/v1/collections//documents//reindex","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","collections","","documents","","reindex"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"70e6814a-b896-4e81-9dd9-9941189f44a7"},{"name":"DELETE /v1/collections/:id/documents/:bundleId","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('2xx ok', () => { pm.expect(pm.response.code).to.be.within(200, 299); });"],"id":"7abac5e4-5123-4945-bd5f-9b0147222315"}}],"id":"d09e37b1-6415-4ac2-8e3b-448c73963d31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.docimprint.com/v1/collections//documents/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","collections","","documents",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d09e37b1-6415-4ac2-8e3b-448c73963d31"}],"id":"d7c8cf98-e308-422c-a5a3-e34b5f55ddb5","_postman_id":"d7c8cf98-e308-422c-a5a3-e34b5f55ddb5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}},{"name":"6 · Monitor","item":[{"name":"POST /v1/monitor — create (sets MONITOR_ID)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function setFlowVar(key, value) {","  pm.collectionVariables.set(key, value)","  pm.environment.set(key, value)","}","","const data = pm.response.json();","if (data.id) {","  setFlowVar('MONITOR_ID', data.id);","  console.log('MONITOR_ID set to', data.id);","}","pm.test('2xx ok', () => { pm.expect(pm.response.code).to.be.within(200, 299); });"],"id":"fb9d3e21-d77d-4f1f-8d54-6d942f42ee3b"}}],"id":"3352adc3-145a-42ad-a396-a76dc3820e02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"url\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"mode\": \"diff\",\n  \"webhook_url\": \"https://your-webhook.io/notify\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/monitor","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","monitor"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3352adc3-145a-42ad-a396-a76dc3820e02"},{"name":"monitor · mode=always (sets MONITOR_ALWAYS_ID)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["function setFlowVar(key, value) {","  pm.collectionVariables.set(key, value)","  pm.environment.set(key, value)","}","","const data = pm.response.json();","if (data.id) {","  setFlowVar('MONITOR_ALWAYS_ID', data.id);","  console.log('MONITOR_ALWAYS_ID set to', data.id);","}","pm.test('2xx ok', () => { pm.expect(pm.response.code).to.be.within(200, 299); });","pm.test('mode is always', () => { pm.expect(pm.response.json().mode).to.eql('always'); });"],"id":"f6d13a1b-49c3-40fa-9c5d-cd8ab51aa67d"}}],"id":"e5bb7756-8000-43ec-b0a0-cf51e3aa02ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"url\": \"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html\",\n  \"mode\": \"always\",\n  \"webhook_url\": \"https://your-webhook.io/notify\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/monitor","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","monitor"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5bb7756-8000-43ec-b0a0-cf51e3aa02ea"},{"name":"GET /v1/monitor — list monitors","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"34691b4b-d0ab-423c-acb4-d165f67c93a1"}}],"id":"ea67124a-f6b7-4dad-82d0-3c5b63fdb840","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/monitor","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","monitor"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea67124a-f6b7-4dad-82d0-3c5b63fdb840"},{"name":"GET /v1/monitor/:id — monitor details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"61bea5bd-0459-4ad2-bd82-c8c69950edb2"}}],"id":"d3280ebe-9148-4a00-a488-4d589b3e63ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/monitor/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","monitor",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3280ebe-9148-4a00-a488-4d589b3e63ed"},{"name":"GET /v1/monitor/:id/history — change history","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });"],"id":"e33a53a9-53eb-44a8-8a4f-1ab8b810cf36"}}],"id":"c5a64d67-794d-4614-92f8-cc67295e3759","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/monitor//history?limit=50&offset=0","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","monitor","","history"],"host":["https://api.docimprint.com"],"query":[{"key":"limit","value":"50"},{"key":"offset","value":"0"}],"variable":[]}},"response":[],"_postman_id":"c5a64d67-794d-4614-92f8-cc67295e3759"},{"name":"DELETE /v1/monitor/:id — delete monitor","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('2xx ok', () => { pm.expect(pm.response.code).to.be.within(200, 299); });"],"id":"bef67a14-ad89-4123-944f-72eb4a0d3d28"}}],"id":"330633ed-65a3-4011-bf06-7fa774837c66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.docimprint.com/v1/monitor/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","monitor",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"330633ed-65a3-4011-bf06-7fa774837c66"},{"name":"DELETE /v1/monitor/:id (always)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('2xx ok', () => { pm.expect(pm.response.code).to.be.within(200, 299); });"],"id":"33c0862e-7646-4843-b39e-0486d86034bd"}}],"id":"85a3277c-9fc8-46a1-95dd-271aedbd9f2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.docimprint.com/v1/monitor/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","monitor",""],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"85a3277c-9fc8-46a1-95dd-271aedbd9f2c"}],"id":"2150fa0e-2a72-4738-92a5-c65ee80326f9","_postman_id":"2150fa0e-2a72-4738-92a5-c65ee80326f9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}},{"name":"7 · Quota & feedback","item":[{"name":"GET /v1/quota — credits & usage","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('has remaining credits', () => {","  const j = pm.response.json();","  pm.expect(j.remaining).to.be.a('number');","  pm.expect(j.monthly_credits).to.be.a('number');","  pm.expect(j.plan_id).to.exist;","});"],"id":"720a3261-d3f6-4de6-b8cf-da5822d74b97"}}],"id":"07b54f41-73bd-4c7c-8dd3-4b56e46f273f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.docimprint.com/v1/quota","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","quota"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"07b54f41-73bd-4c7c-8dd3-4b56e46f273f"},{"name":"POST /v1/feedback — send feedback","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('200 ok', () => { pm.response.to.have.status(200); });","pm.test('received true', () => { pm.expect(pm.response.json().received).to.be.true; });"],"id":"27962ae6-c02d-4c8b-8ed4-fd43ec496e32"}}],"id":"7f902e26-17aa-4bb9-8e99-f9a605c5c56d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"rating\": \"good\",\n  \"message\": \"API works as expected\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.docimprint.com/v1/feedback","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}},"urlObject":{"path":["v1","feedback"],"host":["https://api.docimprint.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f902e26-17aa-4bb9-8e99-f9a605c5c56d"}],"id":"c5a16897-e339-4668-a8c4-05812277b4d2","_postman_id":"c5a16897-e339-4668-a8c4-05812277b4d2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","id":"72e69049-4f71-40ee-b6e3-f5da31bf717c","name":"DocImprint API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["/**"," * Pre-request: inject Bearer API_KEY for authenticated requests."," * Skips injection when the request uses auth: noauth."," */",";(async () => {","  const authType = pm.request.auth?.type","  if (authType === 'noauth') return","","  const apiKey = pm.collectionVariables.get('API_KEY') || pm.environment.get('API_KEY')","  if (!apiKey || !String(apiKey).trim()) {","    console.warn('[postman] API_KEY is empty — set dr_live_... in collection or environment variables')","    return","  }","  pm.request.headers.upsert({ key: 'Authorization', value: `Bearer ${String(apiKey).trim()}` })","})()",""],"id":"a08a1cfc-964f-4e0f-a999-1f4fa4544d68"}}],"variable":[{"key":"BASE_URL","value":"https://api.docimprint.com","description":"API base URL (default: production)"},{"key":"API_KEY","value":"","description":"{{bearer_token_05s8}} — get one at docimprint.com/get-started"},{"key":"TARGET_URL","value":"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html","description":"URL to analyse in examples"},{"key":"BUNDLE_ID","value":"","description":"Auto-set by full extract"},{"key":"RECEIPT_ID","value":"","description":"Auto-set by GET /receipts if any signed action receipts exist (created via MCP tool calls)"},{"key":"CHECKPOINT_ID","value":"","description":"Auto-set by POST /v1/checkpoints if a new checkpoint was created"},{"key":"PREV_BUNDLE_ID","value":"","description":"Auto-set by compare extract (internal)"},{"key":"INVOICE_BUNDLE_ID","value":"","description":"Auto-set by invoice evidence bundle extract"},{"key":"COLLECTION_ID","value":"","description":"Auto-set by collection create"},{"key":"MONITOR_ID","value":"","description":"Auto-set by monitor create"},{"key":"MONITOR_ALWAYS_ID","value":"","description":"Auto-set by monitor create (mode=always)"},{"key":"JOB_ID","value":"","description":"Auto-set by async / index steps"},{"key":"DELETE_BUNDLE_ID","value":"","description":"Auto-set by throwaway delete step"},{"key":"WEBHOOK_URL","value":"https://your-webhook.io/notify","description":"HTTPS URL for monitor webhooks"},{"key":"SKIP_NOTARIZE","value":"false","description":"Set true to skip on-chain notarize step"},{"key":"bearer_token_05s8","secret":true}]}