---
title: "Get User Events"
method: GET
path: "/api/v1/users/event/{user_id}"
tags: ["event"]
---

# Get User Events

`GET /api/v1/users/event/{user_id}`

## Path parameters

- `user_id` union, required — The ID of the user
  - string, uuid4
  - string, uuid5

## Query parameters

- `topk` integer — Number of events to retrieve, default is 10
- `max_token_size` integer — Max token size of returned events
- `need_summary` boolean — Whether to return events with summaries

## Response `200`

Successful Response

- UserEventsDataResponse
  - `data` UserEventsData
    - `events` UserEventData[], required — List of user events
      - `id` union, required — The event's unique identifier
        - string, uuid4
        - string, uuid5
      - `event_data` EventData
        - `profile_delta` ProfileDelta[], nullable — List of profile data
          - `content` string, required — The profile content
          - `attributes` object, nullable, required — User profile attributes in JSON, containing 'topic', 'sub_topic'
        - `event_tip` string, nullable — Event tip
        - `event_tags` EventTag[], nullable — List of event tags
          - `tag` string, required — The event tag
          - `value` string, required — The event tag value
      - `created_at` string, date-time — Timestamp when the event was created
      - `updated_at` string, date-time — Timestamp when the event was last updated
      - `similarity` number, nullable — Similarity score
    - `gists` UserEventGistData[] — List of user event gists
      - `id` union, required — The event gist's unique identifier
        - string, uuid4
        - string, uuid5
      - `gist_data` EventGistData
        - `content` string, required — The event gist content
      - `created_at` string, date-time — Timestamp when the event gist was created
      - `updated_at` string, date-time — Timestamp when the event gist was last updated
      - `similarity` number, nullable — Similarity score
  - `errno` 0 | 400 | 401 | 403 | 404 | 405 | 409 | 422 | 500 | 501 | 502 | 503 | 504 | 520
  - `errmsg` string — Error message, empty when success

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-17** `4543f130c8e0` — 1 info
  - added the optional property `data/anyOf[subschema #1: UserEventsData]/gists` to the response with the `200` status
- **2025-09-01** `c5d39efe16d8` — 1 info
  - for the `path` request parameter `user_id`, the type/format was generalized from `string`/`` to ``/``
- **2025-04-30** `ac1987e886c9` — 1 info
  - added the new optional `query` request parameter `need_summary`
- **2025-04-23** `7888f6e1f6e7` — 1 info
  - added the optional property `data/anyOf[subschema #1: UserEventsData]/events/items/similarity` to the response with the `200` status
- **2025-04-17** `ff75f1135b23` — 1 warning
  - added the new `520.00` enum value to the `errno` response property for the response status `200`

[Full history](https://skmtc.dev/memodb-io/apis/memobase-api/changes/api/v1/users/event/:user_id/get.md)

---

[API](https://skmtc.dev/memodb-io/apis/memobase-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/memobase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/memobase-api/revisions/4543f130c8e0/schema)
