interface SavedUrl {
url: string;
title: string
savedAt: number;
}All API routes are prefixed by the configured Backend URL
This route gets called when a new backend url gets sets, so that the validity/existance of the server can be confirmed.
When auth is implemented, the API Key can be provided via X-API-Key header or via Bearer Token Auth.
Body is ignored. Any non-2xx response is treated as a configuration error and is shown as error to the user.
Called on every given interval on initial sync.
{
count: number,
items: SavedUrl[]
}Called every time a page is saved. Use this to index the page on the backend (e.g. fetch content, generate embeddings, persist to a DB).
{
url: string; // full URL — "https://example.com/article"
title: string; // page <title> — "My Article | Example"
savedAt: number; // Unix ms — 1711234567890
}Body should be ignored by the extension.
Called every time a saved page is removed. :url is the full URL, url-encoded.
DELETE /urls/https%3A%2F%2Fexample.com%2Farticle
Body is ignored.