Skip to content
中文

List Session Resources

Call Create session first and replace the example session ID with its returned ID.

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

Request parameters

  • session_idstringrequired

    path: Session id (sesn_...), as returned by sessions.create or sessions.list. The same id is also accepted as the session_id query parameter on resource and thread calls, where it must equal the path value.

  • limitintegeroptional
    default 100

    query: Number of resources per page, from 1 to 100; defaults to 100.

  • pagestringoptional

    query: Opaque pagination cursor: pass the next_page value of the previous response unchanged. Omit it for the first page. A cursor from a different query or a malformed one returns 400.

Returns

200

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 Anthropic error format (type / message / request_id) — see error codes

Request

curl
# Call Create session first and replace the example session ID with its returned ID.
curl https://api.deepraxis.com/agent/v1/sessions/sesn_123/resources \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
Python
# Call Create session first and replace the example session ID with its returned ID.
import requests

opts = dict(
    base_url="https://api.deepraxis.com/agent",
    api_key="$PRAXIS_API_KEY",
)

# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.get(
    f"{opts['base_url']}/v1/sessions/sesn_123/resources",
    headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())
TypeScript
// Call Create session first and replace the example session ID with its returned ID.
const opts = {
  baseURL: "https://api.deepraxis.com/agent",
  apiKey: "$PRAXIS_API_KEY",
};

// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/sessions/sesn_123/resources`, {
  headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());

Response 200

{
  "data": [
    {
      "id": "sesrsc_2ba1961e-e890-496b-a5e5-b20328a33faf",
      "type": "file",
      "file_id": "file_dp_01M4N8FJR662VM6T0R6CJHKCEH",
      "mount_path": "/mnt/session/uploads/file_dp_01M4N8FJR662VM6T0R6CJHKCEH",
      "created_at": "2026-10-11T10:35:06.513Z",
      "updated_at": "2026-10-11T10:35:06.513Z"
    }
  ],
  "next_page": null
}

Response

HTTP 200

Successful response

application/json

Name Type Description
data array<object> Items of this page, in the order requested by the call.
data[].id string Resource id, the resource_id of sessions.resources calls.
data[].created_at string A timestamp in RFC 3339 format
data[].mount_path string | null | string Path inside the machine where the file is mounted; defaults to /mnt/session/uploads/<file_id>, and custom paths are rooted there. / 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 Always github_repository. A GitHub repository resource; not supported on this platform. / Always file. A file resource: an uploaded file mounted into the session's machine. / Always memory_store. A memory store resource; not supported on this platform.
data[].updated_at string A timestamp in RFC 3339 format
data[].url string Repository URL.
data[].checkout null | object Branch or commit to check out.
data[].file_id string Id of the uploaded file; it must exist and belong to your tenant.
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 Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.