Notifications Get and read all user notifications.
A list of all publicly available methods for interacting with the API.
GET
Get notifications Notifications Get and read all user notifications. User -/user/notifications
Query method
GEThttps://api.stableproxy.com/v2/user/notifications
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| mark-as-readNot necessarily | nullableex-boolean | false |
| searchNot necessarily | nullablestring | 191 |
| per-pageNot necessarily | nullableinteger | 13 |
| pageNot necessarily | nullableinteger | 17 |
| sort-byNot necessarily | nullablestringapp\_validators\_ex_in_rule | "" |
| sort-orderNot necessarily | nullablestringin:asc, desc | "asc" |
Code examples
JavaScript
async function getUserNotifications() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/user/notifications?' + Object.entries({
"mark-as-read": false,
"search": 191,
"per-page": 13,
"page": 17,
"sort-by": "",
"sort-order": "asc"
}).map(([key, value]) => key + "=" + value).join('&'), {
method: 'GET',
headers: {
'Authorization': 'API-Token [YOUR TOKEN]',
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}