> ## 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.

# Get specific daily record

> Get a specific daily record by name and date



## OpenAPI

````yaml /api-reference/openapi.yaml get /users/{user_id}/daily_records/{type}/{day}/{name}
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}/{day}/{name}:
    get:
      tags:
        - daily-records
      summary: Get specific daily record
      description: Get a specific daily record by name and date
      operationId: getDailyRecord
      parameters:
        - $ref: '#/components/parameters/UserIdParam'
        - $ref: '#/components/parameters/RecordTypeParam'
        - $ref: '#/components/parameters/DayParam'
        - $ref: '#/components/parameters/RecordNameParam'
      responses:
        '200':
          description: Daily record details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DailyRecord'
        '404':
          $ref: '#/components/responses/NotFound'
        '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
    DayParam:
      name: day
      in: path
      required: true
      description: Date (YYYY-MM-DD)
      schema:
        type: string
        format: date
    RecordNameParam:
      name: name
      in: path
      required: true
      description: Record name (e.g., ActivityScore)
      schema:
        type: string
  schemas:
    DailyRecord:
      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.
    ValidationError:
      type: object
      title: ValidationError
      required:
        - error
      properties:
        error:
          type: string
          minLength: 1
      additionalProperties: false
  responses:
    NotFound:
      description: Resource not found
      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

````