---
title: "List documents"
method: GET
path: "/cases/{case_id}/documents"
tags: ["Documents"]
---

# List documents

`GET /cases/{case_id}/documents`

## Request

- Base URL: `https://api.example.com/v1`
- URL: `https://api.example.com/v1/cases/{case_id}/documents`
- Auth: none declared

List all documents for a case.

## Query parameters

- `page` integer
- `per_page` integer
- `type` 'death_certificate' | 'probate_document' | 'bank_document' | 'credit_report' | 'birth_certificate' | 'deceased_id' | 'executor_id' | 'property_report' | 'will' | 'trust_documents' | 'other'
- `status` 'uploaded' | 'skipped' | 'pending' | 'rejected'

## Response `200`

List of documents.

- object
  - `data` Document[]
    - `id` string
    - `type` 'death_certificate' | 'probate_document' | 'bank_document' | 'credit_report' | 'birth_certificate' | 'deceased_id' | 'executor_id' | 'property_report' | 'will' | 'trust_documents' | 'other'
    - `file_name` string
    - `file_size_bytes` integer
    - `mime_type` string
    - `status` 'uploaded' | 'skipped' | 'pending' | 'rejected'
    - `uploaded_at` string, date-time
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `meta` PaginationMeta
    - `page` integer
    - `per_page` integer
    - `total_count` integer
    - `total_pages` integer
    - `next_cursor` string, nullable: Opaque cursor for fetching the next page. Pass as the `cursor` query parameter. Null when on the last page.
    - `has_more` boolean: Whether more results exist beyond this page.

## Other responses

- `404`: Resource not found.

---

[API](https://skmtc.dev/hellosunset/apis/sunset-api.md) - [All operations](https://skmtc.dev/hellosunset/apis/sunset-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hellosunset/apis/sunset-api/revisions/f128e5526efe?raw)
