---
title: "Stream Notifications"
method: GET
path: "/api/v1/notifications/stream"
tags: ["notifications"]
---

# Stream Notifications

`GET /api/v1/notifications/stream`

## Request

- Base URL: `https://teraads.co` (the document declares no server; this is the origin it was published from)
- URL: `https://teraads.co/api/v1/notifications/stream`
- Auth: none declared

Stream new notifications to the client via Server-Sent Events (SSE).

Because the browser ``EventSource`` API does not support custom headers,
the JWT access token must be passed as the ``token`` query parameter.

The server polls the database every 5 seconds for unread notifications
created after the last check and pushes each one as an SSE ``data:``
frame containing a JSON-encoded notification dict.

The stream stays open until the client disconnects.

## Query parameters

- `token` string, required: JWT access token (SSE cannot use headers)

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/teraads/apis/tera-ads-api.md) · [All operations](https://skmtc.dev/teraads/apis/tera-ads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/teraads/apis/tera-ads-api/revisions/fb2526b5cf3c?raw)
