Mark alerts read
Naturally idempotent: marking an already-read alert changes nothing and still counts as updated.
Requires a key with the write scope.
Body parameters
idsstring[]requiredAlert ids from the inbox. 1 to 200 per call.
Response
Ids belonging to another account are ignored rather than rejected.
curl -X POST https://api.rivo.markets/v1/alerts/read \
-H "Authorization: Bearer rivo_live_..." \
-H "Content-Type: application/json" \
-d '{
"ids": [
"c4d1...9e07"
]
}'import requests
r = requests.post(
"https://api.rivo.markets/v1/alerts/read",
headers={"Authorization": "Bearer rivo_live_..."},
json={
"ids": ["c4d1...9e07"],
},
)
print(r.json()["data"])const res = await fetch("https://api.rivo.markets/v1/alerts/read", {
method: "POST",
headers: {
Authorization: "Bearer rivo_live_...",
"Content-Type": "application/json",
},
body: JSON.stringify({
ids: ["c4d1...9e07"],
}),
});
const { data } = await res.json();response
{
"success": true,
"data": { "updated": 1 }
}