---
title: "Get all habit records"
method: GET
path: "/api/v5/habits/habit-records/"
tags: ["Habits Record"]
---

# Get all habit records

`GET /api/v5/habits/habit-records/`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/habits/habit-records/`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/habits/habit-records/get.ts> (a function with typed inputs; its response is checked against the schema)

Get all habit records

## Query parameters

- `user_habit_id` integer, required

## Response `200`

Successful Response

- ListOfHabitRecordInResponse
  - `habitName` string
  - `habitType` string
  - `habitUnit` string
  - `habitRecords` HabitRecord[], required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `id` integer
    - `userHabitId` integer, required
    - `value` number, required
    - `date` string, date, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
