Mark as read
const options = {method: 'POST', headers: {cookie: 'session='}};
fetch('https://api.example.com/v1/regions/global/notifications/inbox/{id}/read', 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}/read"
req, _ := http.NewRequest("POST", 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 POST \
--url https://api.example.com/v1/regions/global/notifications/inbox/{id}/read \
--cookie session=import requests
url = "https://api.example.com/v1/regions/global/notifications/inbox/{id}/read"
headers = {"cookie": "session="}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"read": true,
"readAt": "2023-11-07T05:31:56Z"
},
"meta": {}
}Inbox
Mark as read
Mark notification as read
POST
/
v1
/
regions
/
global
/
notifications
/
inbox
/
{id}
/
read
Mark as read
const options = {method: 'POST', headers: {cookie: 'session='}};
fetch('https://api.example.com/v1/regions/global/notifications/inbox/{id}/read', 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}/read"
req, _ := http.NewRequest("POST", 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 POST \
--url https://api.example.com/v1/regions/global/notifications/inbox/{id}/read \
--cookie session=import requests
url = "https://api.example.com/v1/regions/global/notifications/inbox/{id}/read"
headers = {"cookie": "session="}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"read": true,
"readAt": "2023-11-07T05:31:56Z"
},
"meta": {}
}Was this page helpful?