---
title: "Get user's health goals"
method: GET
path: "/api/goals"
tags: ["Goals"]
---

# Get user's health goals

`GET /api/goals`

## Request

- Base URL: `https://api.hiyd.ai`
- URL: `https://api.hiyd.ai/api/goals`
- Auth: HTTP bearer

## Query parameters

- `status` 'active' | 'completed' | 'paused' | 'cancelled' | 'all'
- `goal_type` 'daily_steps' | 'weekly_exercise' | 'weight_target' | 'sleep_hours' | 'water_intake' | 'calorie_burn' | 'heart_rate_zone'

## Response `200`

Goals retrieved successfully

- object
  - `goals` HealthGoal[]
    - `id` string, uuid
    - `user_id` string, uuid
    - `goal_type` 'daily_steps' | 'weekly_exercise' | 'weight_target' | 'sleep_hours' | 'water_intake' | 'calorie_burn' | 'heart_rate_zone'
    - `target_value` number
    - `target_unit` string
    - `current_value` number
    - `progress_percentage` number
    - `target_date` string, date
    - `status` 'active' | 'completed' | 'paused' | 'cancelled'
    - `reminder_enabled` boolean
    - `reminder_time` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

---

[API](https://skmtc.dev/hiyd/apis/hiyd-backend-api.md) - [All operations](https://skmtc.dev/hiyd/apis/hiyd-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hiyd/apis/hiyd-backend-api/revisions/23598d347e1b?raw)
