Dapatkan Resource Sesi
GET/v1/sessions/{session_id}/resources/{resource_id}
Dapatkan Resource Sesi
Parameters
Returns
Dapatkan Resource Sesi
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
resource = client.beta.sessions.resources.retrieve(
resource_id="sesrsc_011CZkZBJq5dWxk9fVLNcPht",
session_id="sesn_011CZkZAtmR3yMPDzynEDxu7",
)
print(resource)Response 200
{
"id": "sesrsc_011CZkZCKr6eXym1gWMPdQiu",
"created_at": "2026-03-15T10:00:00Z",
"mount_path": "/workspace/example-repo",
"type": "github_repository",
"updated_at": "2026-03-15T10:00:00Z",
"url": "https://github.com/example-org/example-repo",
"checkout": {
"name": "main",
"type": "branch"
}
}Returns Examples
Response 200
{
"id": "sesrsc_011CZkZCKr6eXym1gWMPdQiu",
"created_at": "2026-03-15T10:00:00Z",
"mount_path": "/workspace/example-repo",
"type": "github_repository",
"updated_at": "2026-03-15T10:00:00Z",
"url": "https://github.com/example-org/example-repo",
"checkout": {
"name": "main",
"type": "branch"
}
}