# List documents

URL: https://docs.hanzo.ai/docs/openapi/legal/get-legal-documents

> Returns the org's generated documents, newest first, WITHOUT their rendered content — fetch one document to read its body.

`GET /v1/legal/documents`

> [Legal →](https://docs.hanzo.ai/docs/openapi/legal) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                           |
| ------------- | ----------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/legal/documents` |
| **Method**    | `GET`                                     |
| **Operation** | `get_legal_documents`                     |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`    |

Returns the org's generated documents, newest first, WITHOUT
their rendered content — fetch one document to read its body.

The response is marked no-store: these records name the counterparties an org is
contracting with, and must not sit in a shared cache.

## Request

1 field.

| Field   | In    | Type    | Required | Description            |
| ------- | ----- | ------- | -------- | ---------------------- |
| `limit` | query | integer | —        | Limit bounds the page. |

## Response

| Status    | Body               | Meaning |
| --------- | ------------------ | ------- |
| `200`     | legal.documentPage | ok      |
| `default` | problem-details    | refused |

`200` body — 12 fields.

| Field                    | In   | Type                     | Always | Description                                                                                                   |
| ------------------------ | ---- | ------------------------ | ------ | ------------------------------------------------------------------------------------------------------------- |
| `data`                   | body | legal.documentSummary\[] | —      | Data are the documents, WITHOUT their rendered content — fetch one to read it.                                |
| `data[].category`        | body | string                   | —      | Category is the template's category: formation, equity, ops or sales.                                         |
| `data[].createdAt`       | body | integer (int64)          | —      | CreatedAt is when the document was generated, in unix seconds.                                                |
| `data[].esignProvider`   | body | string                   | —      | EsignProvider names the e-signature provider handling it, absent until a signature has been requested.        |
| `data[].id`              | body | string                   | —      | ID is the document's server-minted handle, "doc\_"-prefixed.                                                  |
| `data[].signedAt`        | body | integer (int64)          | —      | SignedAt is when the provider reported completion, in unix seconds.                                           |
| `data[].status`          | body | string                   | —      | Status is the lifecycle state: draft, out\_for\_signature, signed or voided.                                  |
| `data[].templateId`      | body | string                   | —      | TemplateID is the template it was rendered from.                                                              |
| `data[].templateVersion` | body | integer (int64)          | —      | TemplateVersion is WHICH version of that template rendered it, so the document is reproducible and auditable. |
| `data[].title`           | body | string                   | —      | Title is the document's title, inherited from the template.                                                   |
| `data[].updatedAt`       | body | integer (int64)          | —      | UpdatedAt is when it last changed, in unix seconds.                                                           |
| `disclaimer`             | body | string                   | —      | Disclaimer is the boundary made visible on the wire.                                                          |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo legal documents list
```

**SDK**

**.ts**

```ts
import { Configuration, LegalApi } from 'hanzoai';

const api = new LegalApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getLegalDocuments();
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import LegalApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = LegalApi(client).get_legal_documents()
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.LegalAPI.GetLegalDocuments(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, legal_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = legal_api::get_legal_documents(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.LegalApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new LegalApi(client).getLegalDocuments();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/legal/documents \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

MCP reaches **legal** through the `legal` tool, which names its 10 operations with its own verbs — this one among them, under a name only MCP declares. `describe` explains any of them:

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "describe",
         "arguments": {
           "op": "list_legal_documents"
         }
       }
     }'
```

---

[Legal API](https://docs.hanzo.ai/docs/openapi/legal) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
