List chats
get /v1/compliance/apps/chats
Lists chat metadata with filtering capabilities for targeted compliance review. Results are sorted chronologically (time ascending) by created_at, with ties broken by id.
Query Parameters
-
user_ids: array of stringFilter to chats created by specific users. Required; pass 1–10 user IDs per request. Enumerate IDs via
GET /v1/compliance/organizations/{org_uuid}/users. -
after_id: optional stringPagination cursor for retrieving the next page of results (heading backwards in time). To paginate, pass the
last_idvalue from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice. -
before_id: optional stringPagination cursor for retrieving the previous page of results (heading forwards in time). To paginate, pass the
first_idvalue from the most recent response. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice. -
created_at: optional object { gt, gte, lt, lte }-
gt: optional stringFilter chats created after this time (RFC 3339 format)
-
gte: optional stringFilter chats created at or after this time (RFC 3339 format)
-
lt: optional stringFilter chats created before this time (RFC 3339 format)
-
lte: optional stringFilter chats created at or before this time (RFC 3339 format)
-
-
limit: optional numberMaximum results (default: 100, max: 1000)
-
organization_ids: optional array of stringFilter by organization IDs (accepts
org_...or organization UUID). Enumerate IDs viaGET /v1/compliance/organizations. -
project_ids: optional array of stringFilter by project IDs (accepts
claude_proj_...). Enumerate IDs viaGET /v1/compliance/apps/projects. -
updated_at: optional object { gt, gte, lt, lte }-
gt: optional stringFilter chats updated after this time (RFC 3339 format)
-
gte: optional stringFilter chats updated at or after this time (RFC 3339 format)
-
lt: optional stringFilter chats updated before this time (RFC 3339 format)
-
lte: optional stringFilter chats updated at or before this time (RFC 3339 format)
-
Header Parameters
"x-api-key": optional string
Returns
-
data: array of object { id, created_at, deleted_at, 8 more }List of chat metadata sorted chronologically by created_at, tie break by id
-
id: stringChat ID
-
created_at: stringCreation timestamp
-
deleted_at: stringDeletion timestamp if deleted
-
href: stringURL to view this chat in claude.ai
-
model: stringModel selected for this chat (e.g. 'claude-opus-4-7'). May be null for legacy chats that never had a model recorded.
-
name: stringChat name/title
-
organization_id: stringOrganization ID this chat belongs to
-
organization_uuid: stringOrganization UUID this chat belongs to
-
project_id: stringProject ID this chat belongs to
-
updated_at: stringLast update timestamp
-
user: object { id, email_address }User information for the chat creator
-
id: stringUser identifier
-
email_address: stringUser's email address
-
-
-
first_id: stringFirst chat ID in the current result set. To get the previous page, use this as before_id in your next request
-
has_more: booleanWhether more records exist beyond the current result set
-
last_id: stringLast chat ID in the current result set. To get the next page, use this as after_id in your next request
Example
curl https://api.anthropic.com/v1/compliance/apps/chats \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
Response
{
"data": [
{
"id": "claude_chat_abc123",
"name": "Product Requirements Discussion",
"created_at": "2025-06-07T08:09:10Z",
"updated_at": "2025-06-07T09:10:11Z",
"organization_id": "org_abc123",
"organization_uuid": "abcdef0123-4567-89ab-cdef-0123456789ab",
"project_id": "claude_proj_xyz789",
"model": "claude-opus-4-7",
"user": {
"id": "user_xyz456",
"email_address": "user@example.com"
},
"href": "https://claude.ai/chat/abcdef01-2345-6789-abcd-ef0123456789"
}
],
"has_more": false,
"first_id": "claude_chat_abc123",
"last_id": "claude_chat_abc123"
}