Get notification
const options = {method: 'GET'};
fetch('http://localhost:4005/v1/arc/notifications/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 := "http://localhost:4005/v1/arc/notifications/notifications/inbox/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url http://localhost:4005/v1/arc/notifications/notifications/inbox/{id}import requests
url = "http://localhost:4005/v1/arc/notifications/notifications/inbox/{id}"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"category": "<string>",
"priority": "<string>",
"title": "<string>",
"message": "<string>",
"resourceType": "<string>",
"resourceId": "<string>",
"actionUrl": "<string>",
"clickActionUrl": "<string>",
"primaryActionLabel": "<string>",
"primaryActionUrl": "<string>",
"secondaryActionLabel": "<string>",
"secondaryActionUrl": "<string>",
"read": true,
"readAt": "<string>",
"createdAt": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Inbox
Get notification
Get single notification by ID (Arc platform)
GET
/
v1
/
arc
/
notifications
/
notifications
/
inbox
/
{id}
Get notification
const options = {method: 'GET'};
fetch('http://localhost:4005/v1/arc/notifications/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 := "http://localhost:4005/v1/arc/notifications/notifications/inbox/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url http://localhost:4005/v1/arc/notifications/notifications/inbox/{id}import requests
url = "http://localhost:4005/v1/arc/notifications/notifications/inbox/{id}"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"category": "<string>",
"priority": "<string>",
"title": "<string>",
"message": "<string>",
"resourceType": "<string>",
"resourceId": "<string>",
"actionUrl": "<string>",
"clickActionUrl": "<string>",
"primaryActionLabel": "<string>",
"primaryActionUrl": "<string>",
"secondaryActionLabel": "<string>",
"secondaryActionUrl": "<string>",
"read": true,
"readAt": "<string>",
"createdAt": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Was this page helpful?