---
title: "Gets an ApiTable response of a patient's activity feed"
method: GET
path: "/patient/{patient_id}/activity_feed"
tags: ["patient"]
---

# Gets an ApiTable response of a patient's activity feed

`GET /patient/{patient_id}/activity_feed`

## Path parameters

- `patient_id` integer, required

## Query parameters

- `filter` string
- `limit` number
- `before` string, date — Maximum timestamp to return (exclusive)

## Response `200`

successful operation

- object
  - `group_by` string[]
  - `has_more` boolean
  - `next` string
  - `rows` PatientActivityFeedRow[]
    - union
      - PatientActivityFeedRowMealLog
        - `data` MealResponse, required
          - `created_by_user_id` integer, nullable
          - `id` integer, required
          - `is_deleted` boolean
          - `last_updated_by_user_id` integer, nullable
          - `meal_date` string, required — calendar date in format YYYY-MM-DD
          - `meal_items` MealItemResponse[], required
            - `addons` string[], required
            - `audio_photo_id` integer, nullable
            - `base_food_name` string
            - `calcium_mg` number, nullable
            - `calculated_servings` number
            - `carbohydrate_g` number, required
            - `cc_columns` CcColumnsRequest
              - …
            - `cc_servings` CcServingsResponse, nullable — Servings-weighted CC values. Keys match `CcColumnsRequest` fields. Values are derived from calculated servings (clamped to 0-5, rounded to 0.1) and the corresponding boolean CC flag, matching the `health_data_table` nutrients aggregation semantics for `cc_*` fields.
            - `cholesterol_mg` number, nullable
            - `created_by_user_id` integer, nullable
            - `created_time` string, date-time, required
            - `custom_addons` MealItemCustomAddonResponse[], nullable
              - …
            - `custom_item` boolean, nullable
            - `custom_item_source` string, nullable
            - `custom_item_source_id` string, nullable
            - `custom_nutrient_estimates` NutrientEstimatesRequest
              - …
            - `energy_kcal` number, required
            - `extra_addons` string[]
            - `fat_g` number
            - `fiber_g` number
            - `food_name` string, required
            - `food_name_alias` string, nullable
            - `food_name_alias_translations` object, nullable
            - `food_name_translations` object, nullable, required
            - `food_ontology` string[], nullable
            - `food_photo_url` string, nullable, required
            - `food_replacement_name` string, nullable
            - `ghg_equivalent_kg` number, nullable
            - `glycemic_load` string, nullable
            - `grams_per_cubic_inch` number, nullable
            - `id` integer, required
            - `is_foundational_item` boolean — Derived from the resolved food ontology; true for structural container items that do not contribute numeric CC servings.
            - `k_level` string, nullable
            - `last_updated_by_user_id` integer, nullable
            - `meal_audio_url` string, nullable
            - `meal_nlp_phrase` string, nullable
            - `meal_photo_id` integer, nullable
            - `meal_photo_url` string, nullable
            - `net_serving_size_g` number
            - `netcarb_g` number
            - `note` string, nullable
            - `nutrient_overrides` NutrientOverrideCollection
              - …
            - `nutrition_response` UsdaNutritionResponse
              - …
            - `nutrition_source` string, nullable
            - `original_meal_photo_url` string, nullable
            - `parent_food_name` string, nullable
            - `patient_id` integer, required
            - `percent_eaten` number
            - `preparation_method` '' | 'homemade' | 'restaurant' | 'cpg' | 'store_bought' | 'other'
            - `protein_g` number
            - `recipe_id` integer, nullable
            - `recipe_structure` object, nullable
            - `rxfood_id` string, nullable
            - `serving_type_label` string, nullable
            - `serving_type_multiplier` number, nullable
            - `serving_unit_amount` number, required
            - `serving_unit_label` string, required
            - `serving_unit_label_translations` object, nullable, required
            - `servings` number, required
            - `similar_items` string[]
            - `sodium_mg` number, nullable
            - `source_meal_id` integer, nullable — meal id the row was copied from when logging from recent items
            - `source_meal_item_custom_addon_id` integer, nullable — custom addon id the row was copied from when logging from recent items
            - `source_meal_item_id` integer, nullable — meal item id the row was copied from when logging from recent items
            - `updated_time` string, date-time, required
            - `vitamin_d_iu` number, nullable
          - `meal_name` 'breakfast' | 'lunch' | 'dinner' | 'snack', required
          - `meal_name_translations` object, nullable
          - `meal_photo_id` integer, nullable
          - `meal_photo_original_url` string, nullable
          - `meal_photo_resized_url` string, nullable
          - `meal_time` string, required — time in format hh:mm:ss
          - `patient_id` integer, required
        - `id` string, required
        - `timestamp` string, date-time, required
        - `type` 'meal-log', required
      - PatientActivityFeedRowExerciseLog
        - `data` PatientExerciseResponse, required
          - `duration_min` integer — time in minutes
          - `exercise_date` string — calendar date in format YYYY-MM-DD
          - `exercise_time` string — time in HH:MM:SS
          - `exercise_type` 'logged by cgm' | 'strength-resistance' | 'aerobic training' | 'balance and stability' | 'flexibility-stretching' | 'mixed cardio/strength' | 'other'
          - `id` integer, required
          - `intensity` string, nullable
          - `note` string, nullable — note that can be added to provide additional description Max 1024 char
          - `source` string, nullable — source of exercise data
          - `source_id` string, nullable — id of exercise from source
        - `id` string, required
        - `timestamp` string, date-time, required
        - `type` 'exercise-log', required
      - PatientActivityFeedRowMedicationLog
        - `data` PatientMedicationResponse, required
          - `id` integer, required
          - `medication_date` string — calendar date in format YYYY-MM-DD
          - `medication_time` string — time in HH:MM:SS
          - `name` string, required — indicate the name of the medication
          - `note` string, nullable — note that can be added to provide additional description Max 1024 char
          - `quantity` number — typical qty of medication taken
          - `side_effects` string, nullable — side effects of the medication Max 1024 char
          - `unit` string
        - `id` string, required
        - `timestamp` string, date-time, required
        - `type` 'medication-log', required
      - PatientActivityFeedRowEmotionLog
        - `data` PatientEmotionResponse, required
          - `emotion` string, required
          - `emotion_date` string, required — calendar date in format YYYY-MM-DD
          - `emotion_date_time` string, date-time, required
          - `emotion_time` string, nullable, required — time in format hh:mm:ss
          - `id` integer, required
          - `note` string, nullable
          - `patient_id` integer, required
          - `question` string, nullable, required
        - `id` string, required
        - `timestamp` string, date-time, required
        - `type` 'emotion-log', required
      - PatientActivityFeedRowSleepLog
        - `data` PatientSleepDataResponse, required
          - `sleep_date` string, required — calendar date in format YYYY-MM-DD
          - `sleep_duration_min` integer, required — time in minutes
          - `sleep_end_date_time` string, required — datetime in format YYYY-MM-DD HH:MM:SS
          - `sleep_entries_in_date` PatientSleepResponse[], required — list of sleep entries in the date
            - `id` integer, required
            - `note` string, nullable — note that can be added to provide additional description Max 1024 char
            - `sleep_end_date_time` string, required — datetime in format YYYY-MM-DD HH:MM:SS
            - `sleep_group_start_date_time` string — datetime in format YYYY-MM-DD HH:MM:SS
            - `sleep_start_date_time` string, required — datetime in format YYYY-MM-DD HH:MM:SS
            - `sleep_type` 'inBed' | 'asleepUnspecified' | 'awake' | 'asleepCore' | 'asleepDeep' | 'asleepREM', required
            - `source` string, nullable — source of sleep data
            - `source_id` string, nullable — id of sleep from source
          - `sleep_start_date_time` string, required — datetime in format YYYY-MM-DD HH:MM:SS
        - `id` string, required
        - `timestamp` string, date-time, required
        - `type` 'sleep-log', required
      - PatientActivityFeedRowStepsLog
        - `data` PatientStepsDataResponse, required
          - `step_count` integer, required — number of steps taken
          - `steps_date` string, required — calendar date in format YYYY-MM-DD
        - `id` string, required
        - `timestamp` string, date-time, required
        - `type` 'steps-log', required
      - PatientActivityFeedRowMindfulnessLog
        - `data` PatientMindfulnessResponse, required
          - `id` integer, required
          - `mindfulness_activity_type` string, nullable — selected activity type of mindfulness
          - `mindfulness_date` string, required — calendar date in format YYYY-MM-DD
          - `mindfulness_end_time` string, required — time in format hh:mm:ss
          - `mindfulness_start_time` string, required — time in format hh:mm:ss
          - `note` string, nullable — note that can be added to provide additional description Max 1024 char
          - `source` string, nullable — source of mindfulness data
          - `source_id` string, nullable — id of mindfulness from source
        - `id` string, required
        - `timestamp` string, date-time, required
        - `type` 'mindfulness-log', required
      - PatientActivityFeedRowStressLog
        - `data` PatientStressResponse, required
          - `id` integer, required
          - `note` string, nullable — note that can be added to provide additional description Max 1024 char
          - `source` string, nullable — source of stress data
          - `source_id` string, nullable — id of stress from source
          - `stress_activity_type` string, nullable — selected activity type of stress
          - `stress_date` string, required — calendar date in format YYYY-MM-DD
          - `stress_end_time` string, required — time in format hh:mm:ss
          - `stress_start_time` string, required — time in format hh:mm:ss
        - `id` string, required
        - `timestamp` string, date-time, required
        - `type` 'stress-log', required
      - PatientActivityFeedRowEmotionalHealthLog
        - `data` PatientEmotionalHealthResponse, required
          - `association` string, nullable — association of emotional health
          - `emotional_health_activity_type` string, nullable — selected activity type of emotional health
          - `emotional_health_date` string, required — calendar date in format YYYY-MM-DD
          - `emotional_health_time` string, required — time in format hh:mm:ss
          - `id` integer, required
          - `kind` string, nullable — kind of emotional health
          - `label` string, nullable — label of emotional health
          - `note` string, nullable — note that can be added to provide additional description Max 1024 char
          - `source` string, nullable — source of emotional health data
          - `source_id` string, nullable — id of emotional health from source
          - `valence` string, nullable — valence of emotional health
        - `id` string, required
        - `timestamp` string, date-time, required
        - `type` 'emotional-health-log', required

## Changes

- **2026-09-03** `7d063ed4f8ca` — 2 info
  - added the optional property `rows/items/oneOf[#/components/schemas/PatientActivityFeedRowMealLog]/data/meal_items/items/recipe_id` to the response with the `200` status
  - added the optional property `rows/items/oneOf[#/components/schemas/PatientActivityFeedRowMealLog]/data/meal_items/items/recipe_structure` to the response with the `200` status

[Change history](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/changes/patient/:patient_id/activity_feed/get.md)

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/750cc0d96a93?raw)
