Get notification
const options = {method: 'GET', headers: {cookie: 'session='}};
fetch('https://api.example.com/v1/regions/global/notifications/inbox/{id}', 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://api.example.com/v1/regions/global/notifications/inbox/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.example.com/v1/regions/global/notifications/inbox/{id} \
--cookie session=import requests
url = "https://api.example.com/v1/regions/global/notifications/inbox/{id}"
headers = {"cookie": "session="}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"category": "system",
"priority": "low",
"title": "<string>",
"message": "<string>",
"read": true,
"createdAt": "2023-11-07T05:31:56Z",
"resourceType": "<string>",
"resourceId": "<string>",
"actionUrl": "<string>",
"clickActionUrl": "<string>",
"primaryActionLabel": "<string>",
"primaryActionUrl": "<string>",
"secondaryActionLabel": "<string>",
"secondaryActionUrl": "<string>",
"readAt": "2023-11-07T05:31:56Z"
},
"meta": {}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "The requested resource was not found"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
}
}Inbox
Get notification
Get single notification by ID
GET
/
v1
/
regions
/
global
/
notifications
/
inbox
/
{id}
Get notification
const options = {method: 'GET', headers: {cookie: 'session='}};
fetch('https://api.example.com/v1/regions/global/notifications/inbox/{id}', 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://api.example.com/v1/regions/global/notifications/inbox/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.example.com/v1/regions/global/notifications/inbox/{id} \
--cookie session=import requests
url = "https://api.example.com/v1/regions/global/notifications/inbox/{id}"
headers = {"cookie": "session="}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"category": "system",
"priority": "low",
"title": "<string>",
"message": "<string>",
"read": true,
"createdAt": "2023-11-07T05:31:56Z",
"resourceType": "<string>",
"resourceId": "<string>",
"actionUrl": "<string>",
"clickActionUrl": "<string>",
"primaryActionLabel": "<string>",
"primaryActionUrl": "<string>",
"secondaryActionLabel": "<string>",
"secondaryActionUrl": "<string>",
"readAt": "2023-11-07T05:31:56Z"
},
"meta": {}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "The requested resource was not found"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
}
}Was this page helpful?