---
title: "Ingest Fs Events"
method: POST
path: "/internal/fs-events"
tags: ["modal-filewatcher"]
---

# Ingest Fs Events

`POST /internal/fs-events`

Ingest filesystem events from the proxy and emit to Socket.IO.

## Request body

- FileSystemEventsRequest — Batch of filesystem events from the proxy to FastAPI.
  - `sandbox_id` string, required
  - `sandbox_alias` string, nullable
  - `workspace_id` string, required
  - `api_version` string
  - `stale` boolean
  - `events` RawFileEvent[], required
    - `path` string, required
    - `old_path` string, nullable
    - `event_type` 'CREATED' | 'MODIFIED' | 'DELETED' | 'MOVED', required
    - `entity_type` 'FILE' | 'FOLDER'
    - `timestamp_ns` integer, required

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `abf76937a751` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/internal/fs-events/post.md)

---

[API](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api.md) · [All operations](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/revisions/d7f2f3b8e82d?raw)
