---
title: "Get agreement document"
method: GET
path: "/v0/agreements/documents/{documentId}"
tags: ["Agreement Documents"]
---

# Get agreement document

`GET /v0/agreements/documents/{documentId}`

## Request

- Base URL: `https://test-api.shodai.network`
- URL: `https://test-api.shodai.network/v0/agreements/documents/{documentId}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Returns the rendered prose document associated with an agreement documentId. Access requires the same authorization as reading the agreement record.

## Path parameters

- `documentId` string, required

## Response `200`

Rendered agreement prose document.

- object
  - `data` AgreementDocumentResponse, required: Authenticated resolver response for hosted agreement prose associated with an on-chain docUri.
    - `documentId` string, required: Opaque hosted agreement document identifier.
    - `docUri` string: Hosted document URI recorded with the agreement.
    - `agreementId` string, required: Hosted agreement record ID.
    - `agreementAddress` string: Deployed agreement address, when deployed.
    - `chainId` integer, required: Agreement chain ID.
    - `displayName` string, required: Human-readable agreement label.
    - `contentType` string, required: MIME type for the rendered prose content.
    - `content` string, required: Rendered agreement prose with stored variable values applied.
    - `docHash` string: On-chain document hash, when available.
    - `updatedAt` string, date-time: Agreement record update timestamp.
  - `meta` ResponseMeta, required
    - `apiVersion` string, required
    - `requestId` string, required: Correlation ID for support and debugging.

## Other responses

- `401`: Missing or invalid API credential.
- `402`: The authenticated Shodai account has paid_required entitlement mode for the requested scope. Per-call x402 settlement is not implemented. Treat this as an entitlement/operator issue.
- `403`: Not authorized to access this agreement document.
- `404`: Agreement document not found.

---

[API](https://skmtc.dev/shodai/apis/agreements-api.md) · [All operations](https://skmtc.dev/shodai/apis/agreements-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shodai/apis/agreements-api/revisions/0ac329d0e9a0?raw)
