Zum Inhalt springen
In der Referenz stöbern
Alle Ressourcen

Benachrichtigungen

6 Endpunkte · Die Endpunktbeschreibungen sind auf Englisch.

List the current user's notifications, newest first. Defaults: undismissed + unread only.

GET/notifications
read:notifications

Parameter

NameOrtErforderlich
includeReadqueryOptional
includeDismissedqueryOptional
limitqueryOptional
cursorqueryOptional
Beispielanfrage
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/notifications
Antwort200 · Success

Dismiss a notification (hides from the active feed)

DELETE/notifications/{id}
write:notifications

Parameter

NameOrtErforderlich
idpathErforderlich
Beispielanfrage
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X DELETE https://api.vokse.ai/notifications/{id}
Antwort204 · No content

Mark a single notification read (idempotent)

POST/notifications/{id}/read
write:notifications

Parameter

NameOrtErforderlich
idpathErforderlich
Beispielanfrage
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X POST https://api.vokse.ai/notifications/{id}/read
Antwort200 · Success

Mark every unread notification as read for the current user

POST/notifications/mark-all-read
write:notifications
Beispielanfrage
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X POST https://api.vokse.ai/notifications/mark-all-read
Antwort200 · Success

List the current user's notification preferences. Auto-seeds defaults on first call.

GET/notifications/preferences
read:notifications
Beispielanfrage
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/notifications/preferences
Antwort200 · Success

Upsert (kind, channel, enabled, lockScreenDetails) preferences for the current user. lockScreenDetails is accepted on the push channel only.

PUT/notifications/preferences
write:notifications
Beispielanfrage
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X PUT https://api.vokse.ai/notifications/preferences
Antwort200 · Success