The whole hunk
from line 30, old and new numbered
/
lines
from line 30
3030curl --fail-with-body -sS -G \
3131 "https://api.anthropic.com/v1/compliance/apps/chats" \
3232 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
33 --header "anthropic-version: 2023-06-01" \
3334 --data-urlencode "order_by=updated_at" \
3435 --data-urlencode "updated_at.gte=2025-06-01T00:00:00Z" \
3536 --data-urlencode "limit=100"
from line 73
7273curl --fail-with-body -sS -G \
7374 "https://api.anthropic.com/v1/compliance/apps/chats" \
7475 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
76 --header "anthropic-version: 2023-06-01" \
7577 --data-urlencode "user_ids[]=user_01XyDMpzjS89pFZXqSFUBDr6" \
7678 --data-urlencode "created_at.gte=2025-06-01T00:00:00Z" \
7779 --data-urlencode "limit=100"
from line 86
8486
8587curl --fail-with-body -sS \
8688 "https://api.anthropic.com/v1/compliance/apps/chats/$chat_id/messages" \
87 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY"
89 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
90 --header "anthropic-version: 2023-06-01"
8891```
8992
9093The messages endpoint returns the chat's metadata plus a `chat_messages` array sorted by `created_at`. When `limit` is omitted, the full message set is returned in one response; pass `limit`, `after_id`, or `before_id` to page through very long chats. The endpoint also accepts `created_at.*` and `updated_at.*` range bounds (`gt`, `gte`, `lt`, `lte`) and an `order` parameter (`asc` or `desc`). See [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) for the full parameter list. For user messages, `created_at` is when the message was sent; for assistant messages, it is when Claude finished generating the message. Each message carries its text content and, when present, any uploaded files (typically on user messages), any tool-generated files, and any artifacts the assistant produced or updated (typically on assistant messages):
from line 197
194197
195198curl --fail-with-body -sS -OJ \
196199 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
200 --header "anthropic-version: 2023-06-01" \
197201 "https://api.anthropic.com/v1/compliance/apps/chats/files/$file_id/content"
198202```
199203
from line 229
225229
226230curl --fail-with-body -sS -G \
227231 "https://api.anthropic.com/v1/compliance/apps/projects/$project_id/attachments" \
228 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY"
232 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
233 --header "anthropic-version: 2023-06-01"
229234```
230235
231236```json Response
from line 286
281286
282287curl --fail-with-body -sS -X DELETE \
283288 "https://api.anthropic.com/v1/compliance/apps/chats/$chat_id" \
284 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY"
289 --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
290 --header "anthropic-version: 2023-06-01"
285291```
286292
287293```json Response