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

---

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