---
title: "List the session's resources, oldest first [read]"
method: GET
path: "/sessions/{id}/resources"
tags: ["sessions"]
---

# List the session's resources, oldest first \[read\]

`GET /sessions/{id}/resources`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/sessions/{id}/resources`
- Auth: HTTP bearer

`limit` (1–1000) pages the list with an opaque `page` cursor; omitted lists every resource in one answer.

## Path parameters

- `id` string, required

## Query parameters

- `limit` integer
- `page` string

## Response `200`

OK

- SessionResourceList
  - `data` SessionResource[], required: Oldest first
    - union: A file, GitHub repository, or memory-store snapshot mounted read-only into the session. A read_write memory-store grant also permits updates through the session-scoped Agent API. Workspace paths are under /workspace; memory paths are under /mnt/memory. A file resource's `file_id` is the per-session copy (listed under GET /files?scope_id=). Repository tokens and memory contents are never echoed here.
      - object
        - `type` 'file', required
        - `id` string, required: sesrsc_…
        - `file_id` string, required: The per-session copy (file_…), read-only at mount_path
        - `mount_path` string, required: Absolute, under /workspace
        - `created_at` string, date-time, required
        - `updated_at` string, date-time, required
      - object
        - `type` 'github_repository', required
        - `id` string, required: sesrsc_…
        - `url` string, required: https://github.com/{owner}/{repo}
        - `mount_path` string, required: Absolute, under /workspace; the clone's root
        - `checkout` object: {type:"branch", name} or {type:"commit", sha}; absent = the default branch
          - `type` 'branch' | 'commit'
          - `name` string
          - `sha` string
        - `created_at` string, date-time, required
        - `updated_at` string, date-time, required
      - object
        - `type` 'memory_store', required
        - `id` string, required: smsr_…
        - `memory_store_id` string, required: memstore_…
        - `mount_path` string, required: Absolute, under /mnt/memory
        - `access` 'read_only' | 'read_write', required
        - `instructions` string: Optional per-session guidance
        - `created_at` string, date-time, required
        - `updated_at` string, date-time, required
  - `next_page` string, nullable, required: Pass back as ?page= for the next page; null when `limit` was omitted or the list ended

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - added the optional property `error/request_id` to the response with the `default` status

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/sessions/:id/resources/get.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/8280a065ef6a?raw)
