---
title: "Create a new health goal"
method: POST
path: "/api/goals"
tags: ["Goals"]
---

# Create a new health goal

`POST /api/goals`

## Request

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

## Request body

- object
  - `goal_type` 'daily_steps' | 'weekly_exercise' | 'weight_target' | 'sleep_hours' | 'water_intake' | 'calorie_burn' | 'heart_rate_zone', required
  - `target_value` number, required
  - `target_unit` string, required
  - `target_date` string, date
  - `reminder_enabled` boolean
  - `reminder_time` string

## Response `201`

Goal created successfully

---

[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)
