openapi: 3.0.1 info: title: Enterprise Documents API description: "The Enterprise Document Service (EDS) API is the system of record for documents\nacross the Zinnia life insurance\ \ and annuity platform. Store a document once, then\nretrieve, update, and search it for the full duration of its retention\ \ period. The API\ncovers carrier-issued correspondence and annual tax forms.\n\n## Overview\n\nA document in EDS has\ \ two parts:\n\n- **Content** — the file itself.\n- **Metadata** — structured business information describing what the\ \ file is and what it relates to.\n\nEach document is identified by a `documentId`, assigned at upload. Treat it as an\n\ opaque handle: store it and pass it back on every subsequent call for that document.\n\nTax forms are managed separately\ \ from the general document collection. They are never\nreturned by Search Documents and are accessible only through the\ \ two Tax Form operations.\n\n## Operations\n\n
| Operation | \n \ \Method and path | \nPurpose | \n
|---|---|---|
| Upload Document | \nPOST /document/v3/documents | \n Store\
\ a new file with its business metadata and receive a documentId. | \n
| Get Document Metadata | \nGET /document/v3/documents/{documentId} | \n Retrieve full metadata for a document, optionally including version history. | \n
| Update Document | \nPUT /document/v3/documents/{documentId} | \n Update metadata, optionally replace the file content, and create a new version. | \n
| Download Document | \nGET /document/v3/documents/{documentId}/download | \n Retrieve document content, returned Base64-encoded in a JSON envelope. | \n
| Search Documents | \nPOST /document/v3/documents/search | \n Find documents by carrier, policy, case, agent, type, status, date range, and identifier\ \ tags. | \n
| Get Tax Forms | \n \ \GET /document/v3/tax-forms | \n List tax forms available for a contract. | \n
| Download Tax Form | \nGET /document/v3/tax-forms/{formId}/download | \n Retrieve a tax form as a Base64-encoded PDF. | \n