Skip to main content
GET
/
api
/
workspaces
/
{id}
/
code
/
tree
Code Tree
curl --request GET \
  --url http://localhost:8080/api/workspaces/{id}/code/tree \
  --header 'Authorization: Bearer <token>'
[
  {
    "name": "<string>",
    "type": "file",
    "path": "<string>",
    "size": 123
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Query Parameters

path
string
default:""

Relative path within the repo (default: root)

depth
integer
default:1

Directory depth (default: 1)

Required range: 1 <= x <= 10

Response

Successful Response

name
string
required
type
enum<string>
required
Available options:
file,
directory
path
string
required
size
integer | null