notifications
Stream Notifications
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.
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
Query parameters
tokenstring required
JWT access token (SSE cannot use headers)
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.