---
title: "Get Workspace File"
method: GET
path: "/sessions/{session_id}/workspace/file"
---

# Get Workspace File

`GET /sessions/{session_id}/workspace/file`

## Request

- Base URL: `https://api.traversal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.traversal.com/sessions/{session_id}/workspace/file`
- Auth: none declared

## Path parameters

- `session_id` string, required

## Query parameters

- `path` string, required

## Response `200`

Successful Response

- SessionWorkspaceFileResponse
  - `path` string, required
  - `content` string, required

## Other responses

- `422`: Validation Error

## Changes

> 66 revisions in range; 9 not diffed.

- **2026-09-23** `3da9c3d0385f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/traversal/apis/traversal-api/changes/sessions/:session_id/workspace/file/get.md)

---

[API](https://skmtc.dev/traversal/apis/traversal-api.md) - [All operations](https://skmtc.dev/traversal/apis/traversal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/traversal/apis/traversal-api/revisions/31e1a8b7cf89?raw)
