> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lexera.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Download Law Firm-Certified Contract Artifacts

> Once current_status is verified_executed, download the certified redline .docx and review report using your Bearer token via curl or Node.js fetch.

When `lexera_get_order_status` returns `current_status: verified_executed`, the payload contains law firm-certified artifact URLs. These are finalized `.docx` documents that you can download using the same Bearer token you use for SSE and JSON-RPC calls. This guide shows how to save the redlined contract and the review report to disk.

## Prerequisites

* The order must be in `verified_executed` status.
* The `certified_redline_url` and `certified_report_url` from the status payload.
* A valid Lexera API key with the `lex_` prefix.

## Download the certified redline

The `certified_redline_url` points to the final, attorney-reviewed contract. Use a `GET` request with your `Authorization: Bearer` header.

### Using curl

```bash theme={null}
curl -X GET https://lexera.dev/api/mcp/orders/32e65a49-ba4c-441f-b8fe-73932e545f89/download \
  -H "Authorization: Bearer lex_82bea57b8c3fd39f6907ccb1130a6a0cbb6d8e956ff14a88" \
  --output certified_contract.docx
```

### Using Node.js fetch

```js theme={null}
const url = "https://lexera.dev/api/mcp/orders/32e65a49-ba4c-441f-b8fe-73932e545f89/download";
const token = "lex_82bea57b8c3fd39f6907ccb1130a6a0cbb6d8e956ff14a88";

const response = await fetch(url, {
  headers: { "Authorization": `Bearer ${token}` }
});

if (!response.ok) {
  throw new Error(`Download failed: ${response.status} ${response.statusText}`);
}

const buffer = await response.arrayBuffer();
await fs.promises.writeFile("certified_contract.docx", Buffer.from(buffer));
```

<Note>
  The `certified_report_url` provides the separate review report document. Download it the same way by substituting the report URL and your desired output filename.
</Note>

## What you receive

* **`certified_redline_url`**: The finalized contract with attorney revisions, tracked changes, and the law firm-certified signature.
* **`certified_report_url`**: The review report summarizing the attorney's findings, notes, and any risk flags.

Both files are delivered as `.docx` and are suitable for direct use in contract execution or internal record keeping.

## Next steps

* For background on how artifacts are generated and what they contain, see [Certified Artifacts](/concepts/artifacts).
* To check whether an order is ready for download, follow the [Poll Order Status guide](/guides/poll-order-status).
