> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.middesk.com/reference/document/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.middesk.com/_mcp/server. # Document object > Lists the contents of a document object. This page describes the `document` object, which provides downloadable business filing documents (like Articles of Incorporation and Certificates of Good Standing) retrieved directly from government sources, eliminating the need for manual document collection. In retrieving filings directly from the source, Middesk also provides the ability to download documents related to these filings. Often, retrieving these documents can supersede the process of reaching out to an individual and requesting upload through a document capture flow. **`Example JSON response`** ```json title="Example JSON response" { "object": "document", "id": "1538c2f9-ff0f-489e-0099-a5f116a4af07", "document_type": "Initial_Filing", "filename": "3868812_Articles_Of_Incorporation_2009-03-16", "content_type": "application/pdf", "size": 82034, "download_url": "https://storage.middesk.com/middesk/z6q1p5209ipr0vgof1900l1s580n", "created_at": "2020-04-30T23:50:51.222Z", "source": { "type": "registration", "id": "2b16130a-0351-49fc-9f73-4a8a1ccc95c8", "metadata": { "state": "PA", "status": "active" } }, "filing_date": "2009-03-16T00:00:00.000Z" } ``` ## Document attributes | Attribute | Type | Description | | ----------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `object` | string | The object type. Always `document`. | | `id` | string (uuid) | The unique identifier for the document record. | | `document_type` | string | The type of document. For SOS documents, Articles of Incorporation are `Initial_Filing` and Certificates of Good Standing are `Certificate of Good Standing`. UCC1 documents are `Initial Filing`. | | `filename` | string | The filename for the document. | | `content_type` | string | The media type for the document, like `application/pdf`. | | `size` | integer | The size in bytes of the document. | | `download_url` | string | URL for downloading the document contents. | | `created_at` | timestamp | The time the document was retrieved for the Business. | | `source` | object | The source for the document. In many cases, these are a link to a Registration record. | | `source.type` | string | The source type (for example, `registration`). | | `source.id` | string (uuid) | The ID of the source record. | | `source.metadata` | object | Additional source metadata. | | `filing_date` | timestamp \| null | The date the document was filed. | | `metadata` | object | Additional document metadata. | > **Get a demo** > > Contact your account manager or [contact sales](https://www.middesk.com/contact-sales) to inquire about access. > Lists the contents of a document object.