The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: List chats
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/list
4---
5
16# List chats
27
38**GET** `/v1/compliance/apps/chats`
from line 114
109114
110115## Headers
111116
117- `"anthropic-version": optional string`
118
119 The version of the Claude API you want to use.
120
121 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
122
112123- `"x-api-key": optional string`
113124
114125## Returns
from line 172
161172
162173 - `user: object or null`
163174
164 User information for compliance responses.
175 The user who created the chat.
176
177 Null when the API key is restricted to one organization and the creator
178 is no longer a member of it (for example, after they were removed from
179 it).
180
181 A key for the whole parent organization returns the creator's `id`
182 and current `email_address` for every chat; on the list endpoint, pass
183 `organization_ids[]` to keep the results to one organization. For the
184 email address the creator had when the chat was created, query
185 `GET /v1/compliance/activities` with `activity_types[]=claude_chat_created`
186 and a `created_at` window around the chat's `created_at`, find the event
187 whose `claude_chat_id` matches this chat's `id`, and read
188 `actor.email_address`. These events exist only for chats created after
189 compliance logging was enabled for the organization.
165190
166191 - `id: string`
167192