Response (200)
{
"id": "id",
"artifact_type": "artifact_type",
"claude_chat_id": "claude_chat_id",
"created_at": "2019-12-27T18:11:19.117Z",
"md5": "md5",
"size_bytes": 0,
"title": "title",
"version_id": "version_id"
}Download artifact content
GET /v1/compliance/apps/artifacts/\{artifact_version_id\}/content
Download the content of an artifact version for compliance purposes.
Returns the full text content of the artifact version.
Path parameters
artifact_version_id: stringThe artifact version ID (tagged ID, e.g., claude_artifact_version_abc123)
Headers
"anthropic-version": optional stringThe version of the Claude API you want to use.
Read more about versioning and our version history here.
"x-api-key": optional string
Example
curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID/content \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Compliance API › Apps › Sessions › Local
List local sessions
GET /v1/compliance/apps/sessions/local
List local sessions across the organizations the key may read.
Results are ordered by created_at descending. Pagination is forward-only via next_page; there is no reverse cursor.
Query parameters
created_at: optional objectgte: optional stringOnly return sessions whose first inference call is at or after this time (RFC 3339; a UTC offset is required).
format: date-time
lt: optional stringOnly return sessions whose first inference call is strictly before this time (RFC 3339; a UTC offset is required).
format: date-time
limit: optional numberMaximum results (default: 100, max: 500)
default: 100, maximum: 500, minimum: 1
page: optional stringOpaque pagination token from a previous response's
next_pagefield. Pass this to retrieve the next page of results. 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.updated_at: optional objectgte: optional stringOnly return sessions whose last inference call is at or after this time (RFC 3339; a UTC offset is required). Combines with
created_at.gte/created_at.lt; the ordering and pagination are unchanged. Use it to poll for sessions that have been active since a previous pass — a session that becomes active later can only enter the result, never leave it.format: date-time
Headers
"anthropic-version": optional stringThe version of the Claude API you want to use.
Read more about versioning and our version history here.
"x-api-key": optional string
Returns
data: array of objectPage of local sessions, ordered by
created_atdescending; ties are broken by a fixed server-side order.updated_atnever participates in the ordering; theupdated_at.gtequery parameter filters on it without changing the order or the pagination cursor.type: "compliance_local_session"default: compliance_local_session
id: stringLocal session identifier, prefixed
clls_. Unique within the parent organization. Treat as an opaque string; the format may change without notice.created_at: stringTimestamp of the session's first retained inference call (RFC 3339, UTC). When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected, so this value is the timestamp of the earliest retained call: always strictly after the boundary, never the boundary itself.
format: date-time
organization_uuid: stringUUID of the child organization the session belongs to
product_surface: string or nullThe product the session ran in:
cowork(Cowork in Claude Desktop on the user's machine),claude_code(Claude Code),claude_science(Claude Science), or one ofoffice_agents/excel,office_agents/powerpoint,office_agents/word, andoffice_agents/outlook(Claude for Microsoft 365, by app;office_agentsalone when the app is not identified). New values appear as coverage expands; treat unrecognized values as opaque.nullwhen the surface was not recorded.truncated: booleanTrue when the session has more inference calls than the service can return for one session (100,000). The messages endpoint then returns only the session's earliest calls, up to that many, and ends before the session does;
updated_atis a lower bound on the latest call and can differ between the list and retrieve endpoints. False for every session within that bound.default: false
updated_at: stringTimestamp of the session's last retained inference call (RFC 3339, UTC). Always at or after
created_at. When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected — but because retention removes only the oldest calls, this value (unlikecreated_at) is unaffected until the entire session has aged out. On the list endpoint this value is a lower bound: for a session still active at a page orcreated_at.ltwindow boundary it can momentarily lag the session's true last activity. Retrieving the session, or its messages, always reflects the exact latest retained call.format: date-time
user: objectThe authenticated user at the time of the session. Always set;
user.idis always populated.user.email_addressis null when the user's account has been deleted or the user is no longer a member of an organization the key may read.id: stringUser identifier (tagged ID, prefixed
user_). Always set, so attribution survives after the user's account is deleted or the user leaves the organizations the key may read.email_address: string or nullUser's email address. Null when the user's account has been deleted or the user is no longer a member of an organization the key may read. The messages endpoint does not resolve email addresses; this field is always null there.
workspace_id: string or nullWorkspace identifier (tagged ID, prefixed
wrkspc_). Null for sessions not attributed to a workspace.
next_page: string or nullOpaque pagination cursor (prefixed
page_) for the next page. Null when there is no further page. Treat as an opaque string; the format may change without notice.
Example
curl https://api.anthropic.com/v1/compliance/apps/sessions/local \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"