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

# List goals

`GET /cases/{case_id}/goals`

## Request

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

List all estate management goals for a case.

## Query parameters

- `page` integer
- `per_page` integer
- `status` 'pending' | 'in_progress' | 'completed'

## Response `200`

List of goals.

- object
  - `data` Goal[]
    - `id` string
    - `type` 'discover_financial_accounts' | 'discover_life_insurance' | 'consolidate_finances' | 'open_estate_bank_account' | 'prepare_probate_documents' | 'sell_real_estate'
    - `status` 'pending' | 'in_progress' | 'completed'
    - `completed_at` string, date-time, nullable
    - `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)
