Server Events
GET
/api/events
const url = 'https://example.com/api/events';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/events \ --header 'Authorization: Bearer <token>'A Server-Sent Events stream naming what just changed.
Each event carries a topic only, and the client refetches it: jobs → /api/jobs,
media → /api/listing, nodes → /api/nodes, projects →
/api/projects/{id}/render, training → /api/lora-training/jobs.
The stream stays open; the browser’s EventSource reconnects on its own after a drop.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
example