Notifications

Project Notifications

Beta
GET

This endpoint is in beta and is subject to change. It is provided for early access and testing purposes only.
The Project Notifications endpoint returns a list of notifications on all entities saved to a project.

Path parameters

idstringRequired
Unique identifier of the project

Query parameters

limitintegerOptional
Limit total notifications in the response. Defaults to 100.
offsetintegerOptional
Offset which notifications are returned. Defaults to 0.

Response

This endpoint returns an object
offset
integer
limit
integer
next
boolean
data
list of objects
GET
1curl -G https://api.sayari.com/v1/notifications/projects/0oZnoG \
2 -H "Authorization: Bearer <token>" \
3 -d limit=20
200
Retrieved
1{
2 "offset": 0,
3 "limit": 20,
4 "next": false,
5 "data": [
6 {
7 "id": "dlOL1cZzEkIEZcRUcrBZCQ",
8 "resource_id": "0eZQ43",
9 "entity_id": "dlOL1cZzEkIEZcRUcrBZCQ",
10 "notifications": [
11 {
12 "type": "risk",
13 "field": "forced_labor_xinjiang_origin_subtier",
14 "values": [
15 "false"
16 ],
17 "date": "2024-02-06T00:00:00.000Z"
18 }
19 ]
20 },
21 {
22 "id": "wxwqZshCF4trlrmOa2eu9w",
23 "resource_id": "03ePyj",
24 "entity_id": "wxwqZshCF4trlrmOa2eu9w",
25 "notifications": [
26 {
27 "type": "risk",
28 "field": "forced_labor_sheffield_hallam_university_reports_origin_subtier",
29 "values": [
30 "3"
31 ],
32 "date": "2024-02-15T00:00:00.000Z"
33 }
34 ]
35 },
36 {
37 "id": "dX9cfM3FPefIp8VAuBKgIQ",
38 "resource_id": "0XEQaX",
39 "entity_id": "dX9cfM3FPefIp8VAuBKgIQ",
40 "notifications": [
41 {
42 "type": "risk",
43 "field": "forced_labor_sheffield_hallam_university_reports_origin_direct",
44 "values": [
45 "1"
46 ],
47 "date": "2024-02-15T00:00:00.000Z"
48 },
49 {
50 "type": "risk",
51 "field": "forced_labor_sheffield_hallam_university_reports_origin_subtier",
52 "values": [
53 "false"
54 ],
55 "date": "2024-02-15T00:00:00.000Z"
56 },
57 {
58 "type": "risk",
59 "field": "owner_of_regulatory_action_entity",
60 "values": [
61 "1"
62 ],
63 "date": "2024-02-06T00:00:00.000Z"
64 }
65 ]
66 }
67 ]
68}