---
title: "Stream inbound messages (Server-Sent Events)"
method: GET
path: "/v1/inboxes/{inbox_id}/stream"
tags: ["Messages"]
---

# Stream inbound messages (Server-Sent Events)

`GET /v1/inboxes/{inbox_id}/stream`

## Request

- Base URL: `https://api.deadsimple.email`
- URL: `https://api.deadsimple.email/v1/inboxes/{inbox_id}/stream`
- Auth: none required

A `text/event-stream` of new inbound messages for sandboxed agents that can't host a webhook. Authenticate via the `api_key` query parameter (EventSource cannot set headers). Each connection long-polls up to ~20s then closes; standard EventSource clients auto-reconnect and send `Last-Event-ID` to resume without missing messages. WebSockets remain the option for a single persistent connection.

## Path parameters

- `inbox_id` string, required

## Query parameters

- `api_key` string, required
- `since` string

## Response `200`

An event stream of message.received events

---

[API](https://skmtc.dev/deadsimple/apis/dead-simple-email-api.md) · [All operations](https://skmtc.dev/deadsimple/apis/dead-simple-email-api/llms.txt) · [OpenAPI document](https://skmtc.dev/deadsimple/apis/dead-simple-email-api/revisions/c697881be131?raw)
