Obtener recurso de sesión
GET/v1/sessions/{session_id}/resources/{resource_id}
Obtener recurso de sesión
Parameters
Returns
Obtener recurso de sesión
ResourceRetrieveParams parameters = new()
{
SessionID = "sesn_011CZkZAtmR3yMPDzynEDxu7",
ResourceID = "sesrsc_011CZkZBJq5dWxk9fVLNcPht",
};
var resource = await client.Beta.Sessions.Resources.Retrieve(parameters);
Console.WriteLine(resource);Response 200
{
"id": "sesrsc_011CZkZCKr6eXyl0gWMOdQiu",
"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_011CZkZCKr6eXyl0gWMOdQiu",
"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"
}
}