---
title: "Watch a directory for changes"
method: POST
path: "/browsers/{id}/fs/watch"
tags: ["Browser Filesystem"]
---

# Watch a directory for changes

`POST /browsers/{id}/fs/watch`

## Path parameters

- `id` string, required

## Request body

- StartFsWatchRequest
  - `path` string, required — Directory to watch.
  - `recursive` boolean — Whether to watch recursively.

## Response `201`

Watch started successfully

- object
  - `watch_id` string — Unique identifier for the directory watch

## Other responses

- `400` — Bad Request – invalid input
- `403` — Forbidden – insufficient permissions or plan
- `404` — Resource not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/kernel/apis/kernel-api.md) · [All operations](https://skmtc.net/kernel/apis/kernel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kernel/kernel-api/versions/9e8ce9fcf5e1/schema)
