Skip to content
Your Company Documentation Demo

Start typing to search all documentation.

Search the documentationFind a guide, feature, endpoint, or error across every section.

List documents

Your Company APIDocuments

GEThttps://api.your-company.example/v1/matters/{matter_id}/documents

AuthenticationRequires bearerAuth.

Description

Returns documents in a Matter, including drafts, returned redlines, and the Executed Copy.

Parameters

matter_idpathstringrequired
Matter identifier.
limitqueryintegerdefault: 20
Maximum number of records to return, from 1 to 100.
cursorquerystring
Opaque cursor from the previous page response.
kindquerystring
Allowed values: draftredlinesupportingexecuted_copy
Return only documents of this kind.

Responses

200A page of documents.application/json
dataobject[]required
Array item fields
idstringrequired
matter_idstringrequired
namestringrequired
kindstringrequired
Allowed values: draftredlinesupportingexecuted_copy
Role of a document in the Matter.
media_typestringrequired
Media type detected during upload.
size_bytesintegerrequired
File size in bytes.
version_numberintegerrequired
Sequential version within its document history.
source_document_idstring | null
Prior version when applicable.
created_atstring <date-time>required
next_cursorstring | nullrequired
Example response
{
  "data": [
    {
      "id": "doc_01JAZ7C3V9",
      "matter_id": "mat_01JAZ6Q7K2",
      "name": "Example Counterparty MSA v3.docx",
      "kind": "draft",
      "media_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      "size_bytes": 284219,
      "version_number": 3,
      "created_at": "2026-07-11T19:40:02Z"
    }
  ],
  "next_cursor": null
}
401The API key is missing, malformed, expired, or revoked.application/json
errorobjectrequired
Object fields
codestringrequired
Stable machine-readable error code.
messagestringrequired
Human-readable summary.
request_idstringrequired
Identifier to include in a support ticket.
detailsobject[]
Array item fields
fieldstringrequired
Request field with an issue.
issuestringrequired
Human-readable validation problem.
Example response
{
  "error": {
    "code": "unauthorized",
    "message": "Provide a valid bearer API key.",
    "request_id": "req_01JAZA0P8M"
  }
}
404The resource was not found in the authenticated Workspace.application/json
errorobjectrequired
Object fields
codestringrequired
Stable machine-readable error code.
messagestringrequired
Human-readable summary.
request_idstringrequired
Identifier to include in a support ticket.
detailsobject[]
Array item fields
fieldstringrequired
Request field with an issue.
issuestringrequired
Human-readable validation problem.
Example response
{
  "error": {
    "code": "not_found",
    "message": "The requested resource was not found.",
    "request_id": "req_01JAZA0P8M"
  }
}

Docs created for you by SaturnDocs