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)
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="
}