Get Session Resource
Updated at:
Retrieves the details of a single mounted resource in a session.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
GET /sessions/{session_id}/resources/{resource_id}
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
session_id | Yes | string | Session ID, format sesn_<ULID> |
resource_id | Yes | string | Resource ID, format sesrsc_<ULID> |
Request example
curl -X GET "$AGENTSTUDIO_URL/sessions/sesn_xxx/resources/sesrsc_xxx" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response example
{
"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"
}
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Resource ID, format sesrsc_<ULID> |
type | string | Resource type, always file |
file_id | string | File ID of the internal copy |
mount_path | string | Full mount path with the /mnt/session/uploads/ prefix |
created_at | string | Creation time, ISO 8601 |
updated_at | string | Last update time, ISO 8601 |
request_id | string | Unique request identifier |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid |
| 401 | InvalidApiKey | Invalid API key provided |
Is this page helpful?