Notifications
Subscribe to notifications stream
Subscribe to a Server-Sent Events (SSE) stream for real-time notifications
GET
/
api
/
notifications
/
stream
Subscribe to notifications stream
curl --request GET \
--url https://{baseUrl}/api/v1/api/notifications/streamimport requests
url = "https://{baseUrl}/api/v1/api/notifications/stream"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/notifications/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/notifications/stream"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}Response
200 - application/json
The response is of type object.
⌘I
Subscribe to notifications stream
curl --request GET \
--url https://{baseUrl}/api/v1/api/notifications/streamimport requests
url = "https://{baseUrl}/api/v1/api/notifications/stream"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/notifications/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/notifications/stream"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}