Source Intelligence
Sweep 28 Aug 2026 · 00:00Z Build v2.1.250 478 read Stable v2.1.236 Latest v2.1.250 Next v2.1.250 Feeds RSS JSON llms.txt

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

One change

Messages

api/compliance/apps/sessions/local/messages

first seen The page's own history The capture it came from

Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

api/compliance/apps/sessions/local/messages Changed · +82 / -59 lines

### Path parameters ### Query parameters ### Headers #### Response (200) ## Domain types ### Path Parameters ### Query Parameters ### Header Parameters #### Response ## Domain Types

from line 1
----
-title: Messages
-url: https://platform.claude.com/docs/en/api/compliance/apps/sessions/local/messages
----
-
 # Messages
 
 ## Retrieve local session messages
 
-**get** `/v1/compliance/apps/sessions/local/{local_session_id}/messages`
+**GET** `/v1/compliance/apps/sessions/local/{local_session_id}/messages`
 
 Read one local session's transcript, oldest-first by default.
 
from line 14
 honored for 24 hours: a cursor older than that is rejected with an
 explicit 400; restart the walk to read under the current boundary.
 
-### Path Parameters
+### Path parameters
 
 - `local_session_id: string`
 
-### Query Parameters
+### Query parameters
 
 - `limit: optional number`
 
   Maximum results (default: 100, max: 1000)
 
+  default: 100, maximum: 1000, minimum: 1
+
 - `order: optional "asc" or "desc"`
 
   Sort direction. `asc` (oldest-first, default) or `desc`.
 
+  default: asc
+
   - `"asc"`
 
   - `"desc"`
from line 44
 
   Truncate each text item inside a tool result to at most this many bytes (cut on a code-point boundary). Pass `-1` to request the server maximum (approximately 1 MiB); larger values are clamped to it. `0` is not a valid value.
 
+  default: 10000, maximum: 2147483647, minimum: -1
+
 - `tool_use_input_max_bytes: optional number`
 
   Truncate each tool-use input to at most this many bytes (cut on a code-point boundary so the result is valid UTF-8). Pass `-1` to request the server maximum (approximately 1 MiB); larger values are clamped to it. `0` is not a valid value.
 
-### Header Parameters
+  default: 10000, maximum: 2147483647, minimum: -1
 
+### Headers
+
 - `"x-api-key": optional string`
 
 ### Returns
 
-- `data: array of object { id, content, created_at, 4 more }`
+- `data: array of object`
 
   Transcript turns for this page, in call order: oldest call first by default, newest call first with `order=desc`. The messages of one call carry the call's timestamp and follow each other in transcript order; a page boundary can fall between them.
 
from line 66
 
     Message identifier, prefixed `clsm_`. Stable for as long as the message's turn is retained: identifiers of retained turns do not change as older turns age out of the organization's retention period. The `retention_elapsed` placeholder's identifier is distinct from every retained turn's and changes only when further turns age out.
 
-  - `content: array of object { text, truncated, type }  or object { id, input, name, 2 more }  or object { content, is_error, name, 3 more }`
+  - `content: array of object or object or object`
 
     Content blocks within the message, discriminated on `type` (`text` / `tool_use` / `tool_result`: the same discriminator values as the claude.ai chat-messages endpoint; the tool variants omit `integration_name` and `mcp_server_url`, and `text` carries `truncated`). Extended-thinking content is never included. The request's `system` field is never included; a presence-only marker message is emitted when it was set. The request's `tools[]` definitions are never included as transcript messages. Project-level instructions (such as CLAUDE.md files) appear in the message stream as a user-role context block and are included. Empty when `provenance.type` is `content_unavailable`.
 
-    - `Text object { text, truncated, type }`
+    - `Text object`
 
       Text content block.
 
from line 82
 
         True when `text` was shortened by the server's fixed per-string bound (approximately 1 MiB), or when ancillary content the block carried (such as citations) was omitted, or when this block stands in for a non-text block whose content is not shown, or when it is an explanatory marker the server inserted (its text enclosed in square brackets, e.g. prefacing client-asserted history). There is no request parameter that raises the per-string bound.
 
+        default: false
+
       - `type: "text"`
 
-        - `"text"`
+        default: text
 
-    - `ToolUse object { id, input, name, 2 more }`
+    - `ToolUse object`
 
       Tool invocation requested by the assistant.
 
from line 108
 
         True when `input` was shortened. Pass `tool_use_input_max_bytes=-1` to request the server maximum.
 
+        default: false
+
       - `type: "tool_use"`
 
-        - `"tool_use"`
+        default: tool_use
 
-    - `ToolResult object { content, is_error, name, 3 more }`
+    - `ToolResult object`
 
       Result returned by a tool invocation.
 
-      - `content: array of object { text, type }`
+      - `content: array of object`
 
         Text content returned by the tool. Non-text item types are omitted and signalled via `truncated` with an in-band item-count marker.
 
from line 128
 
         - `type: "text"`
 
-          - `"text"`
+          default: text
 
       - `is_error: boolean`
 
from line 146
 
         True when one or more text items in `content` were shortened or non-text items were omitted. Pass `tool_result_max_bytes=-1` to request the server maximum.
 
+        default: false
+
       - `type: "tool_result"`
 
-        - `"tool_result"`
+        default: tool_result
 
   - `created_at: string`
 
     When the message was recorded (RFC 3339, UTC)
 
+    format: date-time
+
   - `model: string or null`
 
     The model that served this assistant turn, as reported in the `model` field of the underlying Messages API response. Null on user messages and on any assistant message whose `provenance` is set: client-asserted history and synthetic markers were not produced by a model during this session, and for unavailable content the serving model is not known.
 
-  - `provenance: object { reason, type }  or object { type }  or object { type }  or null`
+  - `provenance: object or object or object or null`
 
     Where this turn's content came from, discriminated on `type`. Null (the common case) means verified content: on an assistant message, content Claude produced during this session; on a user message, content the user sent. `content_unavailable`: the turn's content cannot be returned and `content` is empty; `reason` says why. `client_asserted`: assistant content the client supplied as conversation history; `content` shows what the model received but its authorship is not verified; never on user-role messages. `synthetic_marker`: a transcript marker the endpoint generated rather than content either party sent during the session. Both `client_asserted` and `synthetic_marker` can result from normal request or client processing, not only client modification. Callers should tolerate unrecognized `type` values.
 
-    - `ContentUnavailable object { reason, type }`
+    - `ContentUnavailable object`
 
       The turn's content cannot be returned; `content` is empty.
 
from line 176
 
       - `type: "content_unavailable"`
 
-        - `"content_unavailable"`
+        default: content_unavailable
 
-    - `ClientAsserted object { type }`
+    - `ClientAsserted object`
 
       Assistant content the client supplied as conversation history
       rather than produced by Claude during this session. `content` shows
from line 188
 
       - `type: "client_asserted"`
 
-        - `"client_asserted"`
+        default: client_asserted
 
-    - `SyntheticMarker object { type }`
+    - `SyntheticMarker object`
 
       A transcript marker generated by the endpoint rather than sent by
       either party during the session. Marker messages indicate that the
from line 204
 
       - `type: "synthetic_marker"`
 
-        - `"synthetic_marker"`
+        default: synthetic_marker
 
   - `role: "assistant" or "user"`
 
from line 216
 
   - `type: "compliance_local_session_message"`
 
-    - `"compliance_local_session_message"`
+    default: compliance_local_session_message
 
 - `next_page: string or null`
 
   Opaque 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.
 
-- `session: object { id, created_at, organization_uuid, 5 more }`
+- `session: object`
 
   The local session the messages belong to. `user.email_address` is always null on this endpoint; the messages endpoint does not resolve email addresses.
 
from line 234
 
     Timestamp 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: string`
 
     UUID of the child organization the session belongs to
from line 246
 
   - `type: "compliance_local_session"`
 
-    - `"compliance_local_session"`
+    default: compliance_local_session
 
   - `updated_at: string`
 
     Timestamp 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 (unlike `created_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 or `created_at.lt` window boundary it can momentarily lag the session's true last activity. Retrieving the session, or its messages, always reflects the exact latest retained call.
 
-  - `user: object { id, email_address }`
+    format: date-time
 
+  - `user: object`
+
     The authenticated user at the time of the session. Always set; `user.id` is always populated. `user.email_address` is 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: string`
from line 272
 
 ### Example
 
-```http
+```bash
 curl https://api.anthropic.com/v1/compliance/apps/sessions/local/$LOCAL_SESSION_ID/messages \
     -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
 ```
 
-#### Response
+#### Response (200)
 
 ```json
 {
from line 318
 }
 ```
 
-## Domain Types
+## Domain types
 
 ### Message List Response
 
-- `MessageListResponse object { id, content, created_at, 4 more }`
+- `MessageListResponse object`
 
   A single user or assistant turn in a local session transcript.
 
from line 330
 
     Message identifier, prefixed `clsm_`. Stable for as long as the message's turn is retained: identifiers of retained turns do not change as older turns age out of the organization's retention period. The `retention_elapsed` placeholder's identifier is distinct from every retained turn's and changes only when further turns age out.
 
-  - `content: array of object { text, truncated, type }  or object { id, input, name, 2 more }  or object { content, is_error, name, 3 more }`
+  - `content: array of object or object or object`
 
     Content blocks within the message, discriminated on `type` (`text` / `tool_use` / `tool_result`: the same discriminator values as the claude.ai chat-messages endpoint; the tool variants omit `integration_name` and `mcp_server_url`, and `text` carries `truncated`). Extended-thinking content is never included. The request's `system` field is never included; a presence-only marker message is emitted when it was set. The request's `tools[]` definitions are never included as transcript messages. Project-level instructions (such as CLAUDE.md files) appear in the message stream as a user-role context block and are included. Empty when `provenance.type` is `content_unavailable`.
 
-    - `Text object { text, truncated, type }`
+    - `Text object`
 
       Text content block.
 
from line 346
 
         True when `text` was shortened by the server's fixed per-string bound (approximately 1 MiB), or when ancillary content the block carried (such as citations) was omitted, or when this block stands in for a non-text block whose content is not shown, or when it is an explanatory marker the server inserted (its text enclosed in square brackets, e.g. prefacing client-asserted history). There is no request parameter that raises the per-string bound.
 
+        default: false
+
       - `type: "text"`
 
-        - `"text"`
+        default: text
 
-    - `ToolUse object { id, input, name, 2 more }`
+    - `ToolUse object`
 
       Tool invocation requested by the assistant.
 
from line 372
 
         True when `input` was shortened. Pass `tool_use_input_max_bytes=-1` to request the server maximum.
 
+        default: false
+
       - `type: "tool_use"`
 
-        - `"tool_use"`
+        default: tool_use
 
-    - `ToolResult object { content, is_error, name, 3 more }`
+    - `ToolResult object`
 
       Result returned by a tool invocation.
 
-      - `content: array of object { text, type }`
+      - `content: array of object`
 
         Text content returned by the tool. Non-text item types are omitted and signalled via `truncated` with an in-band item-count marker.
 
from line 392
 
         - `type: "text"`
 
-          - `"text"`
+          default: text
 
       - `is_error: boolean`
 
from line 410
 
         True when one or more text items in `content` were shortened or non-text items were omitted. Pass `tool_result_max_bytes=-1` to request the server maximum.
 
+        default: false
+
       - `type: "tool_result"`
 
-        - `"tool_result"`
+        default: tool_result
 
   - `created_at: string`
 
     When the message was recorded (RFC 3339, UTC)
 
+    format: date-time
+
   - `model: string or null`
 
     The model that served this assistant turn, as reported in the `model` field of the underlying Messages API response. Null on user messages and on any assistant message whose `provenance` is set: client-asserted history and synthetic markers were not produced by a model during this session, and for unavailable content the serving model is not known.
 
-  - `provenance: object { reason, type }  or object { type }  or object { type }  or null`
+  - `provenance: object or object or object or null`
 
     Where this turn's content came from, discriminated on `type`. Null (the common case) means verified content: on an assistant message, content Claude produced during this session; on a user message, content the user sent. `content_unavailable`: the turn's content cannot be returned and `content` is empty; `reason` says why. `client_asserted`: assistant content the client supplied as conversation history; `content` shows what the model received but its authorship is not verified; never on user-role messages. `synthetic_marker`: a transcript marker the endpoint generated rather than content either party sent during the session. Both `client_asserted` and `synthetic_marker` can result from normal request or client processing, not only client modification. Callers should tolerate unrecognized `type` values.
 
-    - `ContentUnavailable object { reason, type }`
+    - `ContentUnavailable object`
 
       The turn's content cannot be returned; `content` is empty.
 
from line 440
 
       - `type: "content_unavailable"`
 
-        - `"content_unavailable"`
+        default: content_unavailable
 
-    - `ClientAsserted object { type }`
+    - `ClientAsserted object`
 
       Assistant content the client supplied as conversation history
       rather than produced by Claude during this session. `content` shows
from line 452
 
       - `type: "client_asserted"`
 
-        - `"client_asserted"`
+        default: client_asserted
 
-    - `SyntheticMarker object { type }`
+    - `SyntheticMarker object`
 
       A transcript marker generated by the endpoint rather than sent by
       either party during the session. Marker messages indicate that the
from line 468
 
       - `type: "synthetic_marker"`
 
-        - `"synthetic_marker"`
+        default: synthetic_marker
 
   - `role: "assistant" or "user"`
 
from line 480
 
   - `type: "compliance_local_session_message"`
 
-    - `"compliance_local_session_message"`
+    default: compliance_local_session_message