> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onvy.health/llms.txt
> Use this file to discover all available pages before exploring further.

# List daily records

> List all daily records of specified type with optional filtering



## OpenAPI

````yaml /api-reference/openapi.yaml get /users/{user_id}/daily_records/{type}
openapi: 3.1.0
info:
  title: ONVY Health API
  description: >-
    AI-powered holistic health services API with data merging and metrics
    calculation
  version: 1.0.0
  contact:
    name: ONVY Support
    email: support@onvy.health
    url: https://onvy.health
  license:
    name: Proprietary
    url: https://onvy.health/terms
servers:
  - url: https://api.onvy.health
    description: Public API
security:
  - bearerAuth: []
tags:
  - name: static
    description: Static configuration endpoints
  - name: users
    description: User management
  - name: baselines
    description: User baseline metrics
  - name: daily-records
    description: Daily health records
  - name: chat
    description: AI chat completions
  - name: facts
    description: User facts for individualization
  - name: activities
    description: User activities (workouts and mindfulness sessions)
  - name: ai-summaries
    description: |
      AI-generated summaries. This is how ONVY exposes domain-specific
      insights such as meal nutrition analysis, sleep insights, workouts,
      and daily, weekly, nutrition, trend, and impact analysis. Most
      summary types are system-generated; the public create surface
      currently accepts `type=meal`.
  - name: custom-records
    description: Custom records and types
  - name: meals
    description: Nutrition meal tracking
paths:
  /users/{user_id}/daily_records/{type}:
    get:
      tags:
        - daily-records
      summary: List daily records
      description: List all daily records of specified type with optional filtering
      operationId: listDailyRecords
      parameters:
        - $ref: '#/components/parameters/UserIdParam'
        - $ref: '#/components/parameters/RecordTypeParam'
        - $ref: '#/components/parameters/StartDateParam'
        - $ref: '#/components/parameters/EndDateParam'
        - $ref: '#/components/parameters/NamesParam'
      responses:
        '200':
          description: List of daily records
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DailyRecordList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    UserIdParam:
      name: user_id
      in: path
      required: true
      description: User ID (e.g., google_104940819145861640201)
      schema:
        type: string
    RecordTypeParam:
      name: type
      in: path
      required: true
      description: Record type (scores, zones, or logs)
      schema:
        type: string
        enum:
          - scores
          - zones
          - logs
    StartDateParam:
      name: start
      in: query
      required: false
      description: Start date (YYYY-MM-DD)
      schema:
        type: string
        format: date
    EndDateParam:
      name: end
      in: query
      required: false
      description: End date (YYYY-MM-DD)
      schema:
        type: string
        format: date
    NamesParam:
      name: names
      in: query
      required: false
      description: Comma-separated list of record names to filter
      schema:
        type: string
  schemas:
    DailyRecordList:
      title: DailyRecordList
      type: object
      required:
        - records
        - type
      properties:
        records:
          type: array
          items:
            title: DailyRecord
            type: object
            oneOf:
              - title: DailyRecordScore
                type: object
                required:
                  - user_id
                  - project_id
                  - date
                  - name
                  - value
                  - type
                properties:
                  user_id:
                    type: string
                  project_id:
                    type: string
                  date:
                    type: string
                    format: date
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
                  name:
                    type: string
                    description: Score name
                  providers:
                    type: array
                    items:
                      type: string
                      enum:
                        - GARMIN
                        - APPLE
                        - OURA
                        - FITBIT
                        - WHOOP
                  type:
                    type: string
                  value:
                    type: number
                    minimum: 0
                    maximum: 100
                    description: Score value (0-100)
                  ref:
                    type:
                      - string
                      - 'null'
                    description: Optional reference to source data
              - title: DailyRecordZone
                type: object
                required:
                  - user_id
                  - project_id
                  - date
                  - name
                  - value
                  - type
                properties:
                  user_id:
                    type: string
                  project_id:
                    type: string
                  date:
                    type: string
                    format: date
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
                  name:
                    type: string
                    description: Zone name
                  providers:
                    type: array
                    items:
                      type: string
                      enum:
                        - GARMIN
                        - APPLE
                        - OURA
                        - FITBIT
                        - WHOOP
                  type:
                    type: string
                  value:
                    type: array
                    items:
                      type: number
                    minItems: 2
                    maxItems: 2
                    description: Zone range [lower, upper]
                  ref:
                    type:
                      - string
                      - 'null'
                    description: Optional reference to source data
              - title: DailyRecordHabitLog
                type: object
                required:
                  - user_id
                  - project_id
                  - date
                  - name
                  - value
                  - type
                properties:
                  user_id:
                    type: string
                  project_id:
                    type: string
                  date:
                    type: string
                    format: date
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
                  name:
                    type: string
                    description: Log type name
                  providers:
                    type: array
                    items:
                      type: string
                      enum:
                        - GARMIN
                        - APPLE
                        - OURA
                        - FITBIT
                        - POLAR
                  type:
                    type: string
                  value:
                    type: boolean
                    description: >-
                      Habit log boolean value (true if habit completed, false
                      otherwise)
                  ref:
                    type:
                      - string
                      - 'null'
                    description: Reference to habit, survey, etc.
        type:
          type: string
          enum:
            - scores
            - zones
            - logs
        date:
          type: string
          format: date
          description: Date for daily records (when querying by day)
        pagination:
          type: object
          title: Pagination
          required:
            - limit
            - total
          properties:
            page:
              type: string
            limit:
              type: integer
              minimum: 1
              maximum: 1000
            total:
              type: integer
              minimum: 0
            next_page:
              type: string
    ValidationError:
      type: object
      title: ValidationError
      required:
        - error
      properties:
        error:
          type: string
          minLength: 1
      additionalProperties: false
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth bearer token for Health API authentication

````