Skip to main content

Get Session Resource

Retrieves the details of a single mounted resource in a session.

Prerequisites

Endpoint and authentication have been configured. For details, see API overview and authentication.

Endpoint

GET /sessions/{session_id}/resources/{resource_id}

Path parameters

session_idstring(必选)Session ID, format sesn_<ULID>resource_idstring(必选)Resource ID, format sesrsc_<ULID>

Request example

curl "$AGENTSTUDIO_URL/sessions/sesn_xxx/resources/sesrsc_xxx" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

idstringResource ID, format sesrsc_<ULID>typestringResource type, always filefile_idstringFile ID of the internal copymount_pathstringFull mount path with the /mnt/session/uploads/ prefixcreated_atstringCreation time, ISO 8601updated_atstringLast update time, ISO 8601request_idstringUnique identifier of this request

Response

{
  "id": "sesrsc_xxx",
  "type": "file",
  "file_id": "file_xxx",
  "mount_path": "/mnt/session/uploads/data.csv",
  "created_at": "2026-05-28T08:23:11Z",
  "updated_at": "2026-05-28T08:23:11Z",
  "request_id": "xxx"
}

Error codes

HTTP statusError codeDescription