Sfoglia il riferimento
Tutte le risorse
Notifiche
6 endpoint · Le descrizioni degli endpoint sono in inglese.
List the current user's notifications, newest first. Defaults: undismissed + unread only.
GET
/notificationsread:notifications
Parametri
| Nome | Posizione | Obbligatorio |
|---|---|---|
| includeRead | query | Facoltativo |
| includeDismissed | query | Facoltativo |
| limit | query | Facoltativo |
| cursor | query | Facoltativo |
Richiesta di esempio
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/notificationsRisposta200 · Success
Dismiss a notification (hides from the active feed)
DELETE
/notifications/{id}write:notifications
Parametri
| Nome | Posizione | Obbligatorio |
|---|---|---|
| id | path | Obbligatorio |
Richiesta di esempio
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X DELETE https://api.vokse.ai/notifications/{id}Risposta204 · No content
Mark a single notification read (idempotent)
POST
/notifications/{id}/readwrite:notifications
Parametri
| Nome | Posizione | Obbligatorio |
|---|---|---|
| id | path | Obbligatorio |
Richiesta di esempio
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/notifications/{id}/readRisposta200 · Success
Mark every unread notification as read for the current user
POST
/notifications/mark-all-readwrite:notifications
Richiesta di esempio
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/notifications/mark-all-readRisposta200 · Success
List the current user's notification preferences. Auto-seeds defaults on first call.
GET
/notifications/preferencesread:notifications
Richiesta di esempio
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/notifications/preferencesRisposta200 · Success
Upsert (kind, channel, enabled, lockScreenDetails) preferences for the current user. lockScreenDetails is accepted on the push channel only.
PUT
/notifications/preferenceswrite:notifications
Richiesta di esempio
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X PUT https://api.vokse.ai/notifications/preferencesRisposta200 · Success