{"uid":"cap_cSJAdes9AR6vwwRpdOVtb","slug":"docx-section-header-footer-link-to-previous-effective-parts-resolver-8769be61","name":"DOCX Section Header/Footer Link-to-Previous Effective Parts Resolver","description":"Resolve effective first/even/default header and footer parts across section omissions.","url":"https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-01/docx-section-header-footer-link-to-previous-effective-parts?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["sectionParts"],"properties":{"sectionParts":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["even_and_odd","available_parts","sections"],"properties":{"sections":{"type":"array","items":{"type":"object","required":["title_page","header","footer"],"properties":{"footer":{"type":"array","items":{"type":"object","required":["type","part"],"properties":{"part":{"type":"string","maxLength":64},"type":{"enum":["first","even","default"]}},"additionalProperties":false},"maxItems":3,"minItems":0},"header":{"type":"array","items":{"type":"object","required":["type","part"],"properties":{"part":{"type":"string","maxLength":64},"type":{"enum":["first","even","default"]}},"additionalProperties":false},"maxItems":3,"minItems":0},"title_page":{"type":"boolean"}},"additionalProperties":false},"maxItems":32,"minItems":1},"even_and_odd":{"type":"boolean"},"available_parts":{"type":"array","items":{"type":"string","maxLength":64},"maxItems":32,"minItems":0}},"additionalProperties":false},"claim":{"anyOf":[{"type":"null"},{"type":"object","required":["sections"],"properties":{"sections":{"type":"array","items":{"type":"object","required":["footer","header","section"],"properties":{"footer":{"type":"object","required":["default","even","first"],"properties":{"even":{"type":"string","maxLength":20000},"first":{"type":"string","maxLength":20000},"default":{"type":"string","maxLength":20000}},"additionalProperties":false},"header":{"type":"object","required":["default","even","first"],"properties":{"even":{"type":"string","maxLength":20000},"first":{"type":"string","maxLength":20000},"default":{"type":"string","maxLength":20000}},"additionalProperties":false},"section":{"type":"integer"}},"additionalProperties":false},"maxItems":4096}},"additionalProperties":false}]}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8D_pVwtUbefpp1xUpgJe8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves the effective (rendered) header and footer content for each section in a DOCX document, correctly propagating 'link to previous' inheritance across section omissions for first, even, and default part types.","exampleAgentPrompt":"I have a DOCX with 3 sections where even_and_odd headers are enabled; section 1 defines a default header part 'hdr1' and a first-page header 'hdr-first', section 2 omits its header entirely (linking to previous), and section 3 defines only a default header 'hdr3' — can you resolve the effective first, even, and default header and footer parts that would actually render in each section?","exampleUseCases":[{"title":"Debug inherited headers in multi-section report","prompt":"My Word document has 5 sections and even/odd headers turned on. Sections 1 and 3 define explicit headers, but sections 2, 4, and 5 rely on link-to-previous. Can you tell me which header part — first, even, or default — will actually show up in each section based on these definitions?"},{"title":"Verify claimed header layout before rendering","prompt":"I'm about to render a DOCX and I have a claimed mapping of which header and footer parts appear in each section. The document has title_page enabled on section 1 and even_and_odd headers globally. Can you check whether my claimed effective parts are actually correct given the section definitions and available parts?"},{"title":"Compute footers for document with omitted sections","prompt":"I have a DOCX where sections 2 and 4 don't declare any footer parts at all — they should inherit from the previous section. Even/odd pages are off and no title pages. Given my section definitions and the available footer parts, what's the effective default footer that will render in each section?"}],"resultDescription":"Returns the resolved effective header and footer part identifiers (first, even, default) for each section in the document, correctly accounting for link-to-previous inheritance, even_and_odd page settings, and title_page flags. If a claim is provided, the response indicates whether the claimed effective parts are correct.","failureModes":["Invalid or missing sectionParts data returns a validation error","Sections array empty or exceeding 32 items rejected","Part identifiers not present in available_parts may cause resolution errors","Malformed claim object with section indices out of range","even_and_odd or title_page flags missing causes schema rejection"],"whenToPreferThis":"Use this endpoint when you need to programmatically determine the actual rendered header or footer content for each section of a DOCX file, especially when sections inherit (link to previous) rather than define their own parts. It is the right choice for document rendering pipelines, DOCX validators, and diff tools that need to know exactly which header/footer part is effective at any page position.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T06:38:39.588Z","isFirstParty":false,"canonicalSlug":"docx-section-header-footer-link-to-previous-effective-parts-resolver-8769be61"}