Live tiles (Server-Sent Events)
GET
/v1/live
const url = 'https://stats.example.com/v1/live';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://stats.example.com/v1/live \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”tiles events every second, and a : heartbeat comment every 15 seconds whatever the database does. A reader that has received nothing for 45 seconds can treat the connection as gone.
Media typetext/event-stream
string
Missing or wrong credentials
Media typeapplication/json
object
error
required
string
message
string
rejected
Array<object>
object
index
required
integer
reason
required
string
Example generated
{ "error": "example", "message": "example", "rejected": [ { "index": 1, "reason": "example" } ]}