---
title: "Get Shared Data Conversation"
method: GET
path: "/api/admin/shared-data/users/{user_id}/conversation"
tags: ["admin"]
---

# Get Shared Data Conversation

`GET /api/admin/shared-data/users/{user_id}/conversation`

Return the consenting user's single conversation.

Each user has at most one conversation (enforced by the
``uq_sessions_user_id`` constraint on OSS). 404s if the user has
no conversation yet, which is normal for a freshly onboarded user
who hasn't sent a first message.

## Path parameters

- `user_id` string, required

## Response `200`

Successful Response

- SharedDataConversationItem — The consenting user's conversation. ``last_trim_seq`` is the highest ``messages.seq`` that the agent's trim path has dropped from live LLM context. Messages with ``seq <= last_trim_seq`` are still in the database (and still ship in the turns endpoint) but the agent no longer sees them on the next inbound. ``None`` means nothing has been trimmed yet on this session, including legacy sessions that predate the watermark. Surfacing it here lets the admin UI render a "trimmed by compaction" line in the timeline at the boundary between dropped and live messages.
  - `session_id` string, required
  - `channel` string, required
  - `created_at` string, nullable, required
  - `last_message_at` string, nullable, required
  - `message_count` integer, required
  - `last_trim_seq` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mozilla-ai/apis/clawbolt.md) · [All operations](https://skmtc.net/mozilla-ai/apis/clawbolt/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/clawbolt/revisions/0e52fe5f8d33/schema)
