The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Get chat messages
3url: https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list
4---
5
16# Get chat messages
27
38**GET** `/v1/compliance/apps/chats/{claude_chat_id}/messages`
from line 107
102107
103108## Headers
104109
110- `"anthropic-version": optional string`
111
112 The version of the Claude API you want to use.
113
114 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
115
105116- `"x-api-key": optional string`
106117
107118## Returns
from line 157
146157
147158 Text content block.
148159
160 - `type: "text"`
161
162 default: text
163
149164 - `text: string`
150165
151166 Text content from human or assistant
from line 177
162177
163178 default: false
164179
165 - `type: "text"`
166
167 default: text
168
169180 - `ToolUse object`
170181
171182 Tool invocation requested by the assistant.
172183
184 - `type: "tool_use"`
185
186 default: tool_use
187
173188 - `id: string or null`
174189
175190 Tool-use ID, e.g. 'toolu_01AbC...'
from line 211
196211
197212 default: false
198213
199 - `type: "tool_use"`
200
201 default: tool_use
202
203214 - `ToolResult object`
204215
205216 Result returned by a tool invocation.
206217
218 - `type: "tool_result"`
219
220 default: tool_result
221
207222 - `content: array of object`
208223
209224 Text content returned by the tool. Generated files are surfaced via the message's `generated_files` list; other non-text item types (including images and links) are omitted.
210225
211 - `text: string`
212
213 Text returned by the tool
214
215226 - `type: "text"`
216227
217228 default: text
218229
230 - `text: string`
231
232 Text returned by the tool
233
219234 - `integration_name: string or null`
220235
221236 Name of the integration that provides this tool, when applicable
from line 257
242257
243258 default: false
244259
245 - `type: "tool_result"`
246
247 default: tool_result
248
249260 - `created_at: string`
250261
251262 Message creation timestamp - For human: when they sent the message, For assistant: when it completed the last content block
from line 379
368379
369380- `user: object or null`
370381
371 User information for compliance responses.
382 The user who created the chat.
383
384 Null when the API key is restricted to one organization and the creator
385 is no longer a member of it (for example, after they were removed from
386 it).
387
388 A key for the whole parent organization returns the creator's `id`
389 and current `email_address` for every chat; on the list endpoint, pass
390 `organization_ids[]` to keep the results to one organization. For the
391 email address the creator had when the chat was created, query
392 `GET /v1/compliance/activities` with `activity_types[]=claude_chat_created`
393 and a `created_at` window around the chat's `created_at`, find the event
394 whose `claude_chat_id` matches this chat's `id`, and read
395 `actor.email_address`. These events exist only for chats created after
396 compliance logging was enabled for the organization.
372397
373398 - `id: string`
374399