---
title: "Stream sandbox function invocation events"
method: GET
path: "/api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events"
tags: ["Private Events"]
---

# Stream sandbox function invocation events

`GET /api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events`

Stream real-time events for a sandbox function invocation using Server-Sent Events (SSE). This endpoint is redirected to /api/sse/ for SSE traffic routing.

## Path parameters

- `wId` string, required
- `functionId` string, required
- `invocationId` string, required

## Response `200`

SSE event stream. Each event is sent as `data: {json}\n\n`.
Events are discriminated by the `type` field.

## Other responses

- `401` — Unauthorized

## Changes

- **2026-07-27** `8eab454aa5cf` — 11 info
  - removed the `bad_input` enum value from the `oneOf[#/components/schemas/PrivateSandboxFunctionInvocationErrorEvent]/error/code` response property for the response status `200`
  - removed the `bad_return` enum value from the `oneOf[#/components/schemas/PrivateSandboxFunctionInvocationErrorEvent]/error/code` response property for the response status `200`
  - removed the `function_not_found` enum value from the `oneOf[#/components/schemas/PrivateSandboxFunctionInvocationErrorEvent]/error/code` response property for the response status `200`
  - removed the `http_error` enum value from the `oneOf[#/components/schemas/PrivateSandboxFunctionInvocationErrorEvent]/error/code` response property for the response status `200`
  - …7 more
- …earlier changes not shown

[Full history](https://skmtc.dev/dust-tt/apis/dust-api-documentation/changes/api/w/:wId/sandbox-functions/:functionId/invocations/:invocationId/events/get.md)

---

[API](https://skmtc.dev/dust-tt/apis/dust-api-documentation.md) · [All operations](https://skmtc.dev/dust-tt/apis/dust-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dust-tt/dust-api-documentation/revisions/12e6082715a0/schema)
