Claude Platform Docs

Resources

Add Session Resource
$client->beta->sessions->resources->add(string sessionID, string fileID, "file" type, ?string mountPath, ?list<AnthropicBeta> betas, ?string workspaceID): ManagedAgentsFileResource
POST/v1/sessions/{session_id}/resources
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers
List Session Resources
$client->beta->sessions->resources->list(string sessionID, ?int limit, ?string page, ?list<AnthropicBeta> betas, ?string workspaceID): PageCursor<ManagedAgentsSessionResource>
GET/v1/sessions/{session_id}/resources
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers
Get Session Resource
$client->beta->sessions->resources->retrieve(string resourceID, string sessionID, ?list<AnthropicBeta> betas, ?string workspaceID): ResourceGetResponse
GET/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers
Update Session Resource
$client->beta->sessions->resources->update(string resourceID, string sessionID, string authorizationToken, ?list<AnthropicBeta> betas, ?string workspaceID): ResourceUpdateResponse
POST/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers
Delete Session Resource
$client->beta->sessions->resources->delete(string resourceID, string sessionID, ?list<AnthropicBeta> betas, ?string workspaceID): ManagedAgentsDeleteSessionResource
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers
Models
class ManagedAgentsDeleteSessionResource { $type = 'session_resource_deleted'; $id; }
"session_resource_deleted" type
string id
class ManagedAgentsFileResource { $type = 'file'; $id; $createdAt; /* 3 more */ }
"file" type
string id
\Datetime createdAt

A timestamp in RFC 3339 format

string fileID
string mountPath
\Datetime updatedAt

A timestamp in RFC 3339 format

class ManagedAgentsGitHubRepositoryResource { $type = 'github_repository'; $id; $createdAt; /* 4 more */ }
"github_repository" type
string id
\Datetime createdAt

A timestamp in RFC 3339 format

string mountPath
\Datetime updatedAt

A timestamp in RFC 3339 format

string url
?Checkout checkout
class ManagedAgentsMemoryStoreResource { $type = 'memory_store'; $memoryStoreID; $access; /* 4 more */ }
"memory_store" type
string memoryStoreID

The memory store ID (memstore_...). Must belong to the caller's organization and workspace.

?Access access

Access mode for the mounted store. Defaults to read_write. read_only mounts the store as a read-only filesystem.

?string description

Description of the memory store, snapshotted at attach time. Rendered into the agent's system prompt. Empty string when the store has no description.

?string instructions

Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.

?string mountPath

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.

?string name

Display name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource.

One of the following: