---
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

---

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