Skip to content
中文

List Session Resources

GET/anthropic/v1/sessions/{session_id}/resources◐ Partial

Request parameters

  • session_idstringrequired

    path: Session ID (path or query parameter).

  • limitintegeroptional
    default 100

    query: Maximum number of items per page.

  • pagestringoptional

    query: Pagination cursor taken from the previous response's next_page.

Returns

501

Supports persistence, retrieval and removal of file resource references, up to 500 per session. Files must be live and owned by the current tenant. Paths default to /mnt/session/uploads/<file_id>; custom paths are rooted there and parent traversal is rejected. File content is immutable through this API. Sandbox synchronization is not implemented in this batch.

Errors follow the Claude Managed Agents format — see error codes

Request

curl
curl https://api.deepraxis.com/anthropic/v1/sessions/sample_id_123/resources \
  -H "x-api-key: $PRAXIS_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: managed-agents-2026-04-01"
Python
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.deepraxis.com/anthropic",
    api_key="$PRAXIS_API_KEY",
)

# 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
result = client.beta.sessions.resources.list("sample_id_123")
print(result)
TypeScript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://api.deepraxis.com/anthropic",
  apiKey: "$PRAXIS_API_KEY",
});

// 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
const result = await client.beta.sessions.resources.list("sample_id_123");
console.log(result);

Response 501

{
  "type": "error",
  "error": {
    "type": "not_implemented_error",
    "message": "Not implemented: this Managed Agents operation is not implemented on this platform yet (GET /v1/sessions/{session_id}/resources); see the docs for the supported subset."
  },
  "request_id": "045d0d91-550e-41a9-901a-330e5e104a3e"
}

Response

HTTP 200

Successful response

application/json

Name Type Description
data array<object>
data[].id string
data[].created_at string A timestamp in RFC 3339 format
data[].mount_path string | null | string Filesystem path where the store is mounted in the session container, e.g. /mnt/memory/user-preferences. Derived from the store's name. Output-only.
data[].type string
data[].updated_at string A timestamp in RFC 3339 format
data[].url string
data[].checkout null | object
data[].file_id string
data[].memory_store_id string The memory store ID (memstore_...). Must belong to the caller's organization and workspace.
data[].access null | string Access mode for an attached memory store.
data[].description string Description of the memory store, snapshotted at attach time. Rendered into the agent's system prompt. Empty string when the store has no description.
data[].instructions null | string Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.
data[].name null | string Display name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource.
next_page string | null