Notifications
A page of notifications (50 by default, at most 200) and the count of all unread ones. Notifications are kept 90 days, at most 500 per user. An invitation that was answered or withdrawn, or whose list was deleted, is left out.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
unread?booleanOnly notifications not read yet
falsecursor?stringnext_cursor from the previous page
26 <= length <= 26limit?integer1 <= value <= 20050A page of the inbox
application/json- response
notifications*array<>next_cursor*|Pass as cursor for the next page; null on the last
unread_count*integerAll unread notifications
0 <= valuecurl -X GET 'https://example.com/v1/notifications'{ "notifications": [ { "id": "string", "kind": "reminder", "item_id": "string", "data": { "property1": "string", "property2": "string" }, "read_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "item": null } ], "next_cursor": "string", "unread_count": 0}bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
The count
application/json- response
unread_count*integer0 <= valuecurl -X GET 'https://example.com/v1/notifications/unread-count'{ "unread_count": 0}With up_to, only notifications up to and including that id are marked, so one that arrived after the
client loaded its list stays unread.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
application/json- body
up_to?stringThe newest notification id the user has seen
26 <= length <= 26Done
application/json- response
marked*integerHow many were marked read
0 <= valueunread_count*integer0 <= valuecurl -X POST 'https://example.com/v1/notifications/read-all' \ -H 'Content-Type: application/json' \ -d '{}'{ "marked": 0, "unread_count": 0}bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
id*stringThe notification
application/json- response
id*stringkind*stringreminder: a reminder went off (item_id, data.reminder_id). export.ready / export.failed: a data
export finished or gave up (data.export_id). import.done / import.failed: a bookmarks import ended,
including one stopped at the plan's item limit (data.import_id). list.invited: someone invited the
user to a list (data.list_id, data.invitation_id; answer it under /v1/invitations). New kinds may be
added: show unknown ones generically.
"reminder""export.ready""export.failed""import.done""import.failed""list.invited"item_id*|The item it is about
data*The other ids the kind needs. Never titles, URLs or notes.
read_at*|date-timecreated_at*stringdate-timeitem*|The item, added when read; null when there is none or it was deleted
curl -X GET 'https://example.com/v1/notifications/string'{ "id": "string", "kind": "reminder", "item_id": "string", "data": { "property1": "string", "property2": "string" }, "read_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "item": null}Marking a read notification read again keeps its first read_at.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
id*stringapplication/json- body
read*booleanThe notification
application/json- response
id*stringkind*stringreminder: a reminder went off (item_id, data.reminder_id). export.ready / export.failed: a data
export finished or gave up (data.export_id). import.done / import.failed: a bookmarks import ended,
including one stopped at the plan's item limit (data.import_id). list.invited: someone invited the
user to a list (data.list_id, data.invitation_id; answer it under /v1/invitations). New kinds may be
added: show unknown ones generically.
"reminder""export.ready""export.failed""import.done""import.failed""list.invited"item_id*|The item it is about
data*The other ids the kind needs. Never titles, URLs or notes.
read_at*|date-timecreated_at*stringdate-timeitem*|The item, added when read; null when there is none or it was deleted
curl -X PATCH 'https://example.com/v1/notifications/string' \ -H 'Content-Type: application/json' \ -d '{ "read": true}'{ "id": "string", "kind": "reminder", "item_id": "string", "data": { "property1": "string", "property2": "string" }, "read_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "item": null}bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
id*stringDeleted
curl -X DELETE 'https://example.com/v1/notifications/string'Reminders
A push at a time the user picks, to come back to one of their items; and list auto-reminders. Needs a signed-in session. See docs/REMINDERS.md.
Rules
Rules, as in Karakeep. When an event happens to an item (it is added, a tag is added or removed, it joins or leaves a list, it is favourited or archived), a rule whose condition holds does its actions. A key needs the `rules` resource.