List Session Resources

get/v1/sessions/{session_id}/resources?beta=true

Path parameters

session_idstring required

Path parameter session_id

Query parameters

limitinteger

Maximum number of resources to return per page (max 1000). If omitted, returns all resources.

pagestring

Opaque cursor from a previous response's next_page field.

Headers

x-api-keystring
anthropic-versionstring
anthropic-betastring

Response

Successful response (OK)

next_pagestring nullable

Opaque cursor for the next page. Null when no more results.

Example response

{
  "data": [
    {
      "type": "file",
      "id": "sesrsc_011CZkZBJq5dWxk9fVLNcPht",
      "file_id": "file_011CNha8iCJcU1wXNR6q4V8w",
      "mount_path": "/uploads/receipt.pdf",
      "created_at": "2026-03-15T10:00:00Z",
      "updated_at": "2026-03-15T10:00:00Z"
    },
    {
      "type": "github_repository",
      "id": "sesrsc_011CZkZCKr6eXyl0gWMOdQiu",
      "url": "https://github.com/example-org/example-repo",
      "mount_path": "/workspace/example-repo",
      "checkout": {
        "type": "branch",
        "name": "main"
      },
      "created_at": "2026-03-15T10:00:00Z",
      "updated_at": "2026-03-15T10:00:00Z"
    }
  ],
  "next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo="
}

Changes

Changed in 3 of the 68 revisions of this API.77

  • d2b230555b7f65See the full diff
    • response property data/items/oneOf[BetaManagedAgentsMemoryStoreResource]/instructions list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property data/items/oneOf[BetaManagedAgentsMemoryStoreResource]/mount_path list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property data/items/oneOf[BetaManagedAgentsMemoryStoreResource]/name list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property next_page list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • the ////// response property's maxLength was unset from 4096 for the response status

      response-property-max-length-unset

    • the ////// response's property type changed from object to no type for status

      response-property-type-changed

    • removed from the ////// response property allOf list for the response status

      response-property-all-of-removed

    • added subschema #2 to the ////// response property anyOf list for the response status

      response-property-any-of-added

    • added subschema #2 to the ////// response property anyOf list for the response status

      response-property-any-of-added

    • removed discriminator from ////// response property for the response status

      response-property-discriminator-removed

    • removed from the ////// response property oneOf list for the response status

      response-property-one-of-removed

  • 68118270711911See the full diff
    • added to the / response property oneOf list for the response status

      response-property-one-of-added

    • added memory_store discriminator mapping keys to the / response property for the response status

      response-property-discriminator-mapping-added

    • endpoint added

      endpoint-added