Skip to content
Skip to Content
Full reference

Items

GET
/v1/items

Ordered by created_at (the saved date, which updateItem can backdate), newest first, then by id.

Authorization

bearer
headerAuthorizationBearer <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.

Query Parameters

cursor?string

Send the next_cursor from the previous page to get the next one

limit?integer
Range1 <= value <= 200
Default50
kind?string
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
tag?string
list?string

Only items in this list. It must be one of the caller's lists; any other id matches nothing.

favourite?boolean
archived?boolean
Defaultfalse

Response Body

A page of items. Links come without their readable content; get a single item for that.

application/json
  1. response
items*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://example.com/v1/items'
Example Response
{  "items": [    {      "id": "string",      "kind": "link",      "source": "api",      "url": "string",      "domain": "string",      "title": "string",      "description": "string",      "content": "string",      "content_html": "string",      "note": "string",      "tags": [        "string"      ],      "image_url": "string",      "favicon_url": "string",      "author": "string",      "publisher": "string",      "published_at": "2019-08-24T14:15:22Z",      "lang": "en",      "ai_tags": [        "string"      ],      "ai_caption": "string",      "ocr_text": "string",      "objects": [        "string"      ],      "ai_summary": "string",      "summary_edited": true,      "card": "article",      "details": {        "property1": "string",        "property2": "string"      },      "recipe": {        "description": "string",        "image": {          "url": "http://example.com",          "width": 1,          "height": 1,          "color": "string",          "asset_id": "string",          "source_url": "http://example.com",          "alt": "string"        },        "yield": "string",        "prep_minutes": 1,        "cook_minutes": 1,        "total_minutes": 1,        "ingredients": [          {            "group": "string",            "text": "string"          }        ],        "steps": [          {            "group": "string",            "text": "string"          }        ]      },      "product": {        "name": "string",        "brand": "string",        "description": "string",        "price": {          "amount": 0,          "currency": "string",          "list_amount": 0        },        "availability": "in_stock",        "rating": {          "value": 0,          "count": 1        },        "images": [          "http://example.com"        ],        "image_refs": [          {            "url": "http://example.com",            "width": 1,            "height": 1,            "color": "string",            "asset_id": "string",            "source_url": "http://example.com",            "alt": "string"          }        ],        "sku": "string"      },      "enrich_status": "none",      "enriched_at": "2019-08-24T14:15:22Z",      "palette": [        {          "hex": "#1e50d2",          "lab": [            0,            0,            0          ],          "weight": 0        }      ],      "color_words": [        "string"      ],      "thumbnail_url": "string",      "thumbnail_color": "string",      "animated_url": "string",      "thumbnail_width": 0,      "thumbnail_height": 0,      "thumbnail_status": "none",      "blurhash": "string",      "crawl_status": "none",      "content_quality": "full",      "reading_progress": {        "progress": 0,        "percent": 0,        "offset": 0,        "anchor": "string",        "updated_at": "2019-08-24T14:15:22Z"      },      "word_count": 1,      "reading_minutes": 1,      "dir": "ltr",      "excerpt": "string",      "lead_image": {        "url": "http://example.com",        "width": 1,        "height": 1,        "color": "string",        "asset_id": "string",        "source_url": "http://example.com",        "alt": "string"      },      "crawl_error": "string",      "crawled_at": "2019-08-24T14:15:22Z",      "capture_status": "none",      "capture_error": "string",      "captured_at": "2019-08-24T14:15:22Z",      "is_favourite": true,      "archived_at": "2019-08-24T14:15:22Z",      "completed_at": "2019-08-24T14:15:22Z",      "change_seq": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "deleted_at": "2019-08-24T14:15:22Z",      "shared": true,      "share_expires_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}
POST
/v1/items

Saves a link, note, quote, highlight, to-do, image or PDF.

Send a client-generated ULID as id, so that a retry or an offline-queued save never creates a duplicate. The answer is 201 the first time and 200 when an item with that id already exists for the caller. A link to a page the caller already saved (the same normalised URL; Amazon products by ASIN) is not saved again either: the answer is 200 with that item, brought back. Its saved date becomes now (so it is at the top of the feed) and it leaves the archive. A note sent replaces the old one, tags sent are added to its own, is_favourite is applied when sent, and a title or description is applied only when sent without html (with it, they are the tab's, not the user's). Fields not sent are kept, and the html is not stored. A retry with the id of that existing item changes nothing.

Links are fetched in the background. Pass html (the page as rendered) to skip the fetch. Image and PDF files are uploaded first (POST /v1/uploads) and then saved here with upload_id. A Markdown file (text/markdown, at most 1 MB) uploaded the same way makes a note: the file's text is the note's text, and with no title the first # heading is the title. Images may be JPEG, PNG, WebP, GIF, AVIF, HEIC, HEIF, JPEG XL, BMP, TIFF, Photoshop (PSD) or SVG; every one gets a JPEG thumbnail (SVG and PSD are drawn from their own data, transparent areas on white). SVG is stored as uploaded and always served as a download, never shown inline.

A video (video/mp4, video/quicktime, video/webm, video/x-matroska, video/x-msvideo, for .mp4 .mov .webm .mkv .avi) or audio file (audio/mpeg, audio/mp4, audio/wav, audio/aac, audio/aiff, audio/flac, audio/ogg, for .mp3 .m4a .wav .aac .aiff .flac .ogg) uploaded the same way makes a video or audio item; upload_id is required, and title should be the file name. Video and audio may be up to the server's MAX_MEDIA_UPLOAD_BYTES (500 MB by default); other files MAX_UPLOAD_BYTES. The worker then reads the file with ffprobe and ffmpeg: a video's card is video and an audio file's music, with details.duration (and artist, album and year for audio) from the file's tags, a missing title is filled from its title tag, and the thumbnail is a frame of the video or the audio file's cover art, if it has one. Neither is sent to the AI.

A note whose whole text sits inside one matching pair of quotation marks ("…", “…”, «…», „…“, ‘…’, 「…」) is saved as a quote. Check kind in the response. The text is kept exactly as sent.

A highlight is text saved from somewhere (a selection on a page, with the page as url) without quoting it. A highlight or a note is saved as a quote instead when it is quoted: wrapped in quotation marks as above; one Markdown blockquote, every line that is not blank starting with > (the markers are dropped); or sent with html (the selection's HTML, used only for this and never stored) that is one <blockquote> or <q>. Imports keep the kind they came with, and an explicit quote is always a quote.

Authorization

bearer
headerAuthorizationBearer <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.

Request Body

application/json
  1. body
id?string

Client-generated ULID (recommended)

kind*Kind
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
url?string

Required for links. An image needs this or upload_id.

Formaturi
Lengthlength <= 8192
title?string
Lengthlength <= 1000
description?string
Lengthlength <= 5000
text?string

The body of a note or to-do, or the passage of a quote or highlight. Required for notes, quotes, highlights and to-dos. A quoted note or highlight is saved as a quote (see the description).

note?string

The user's own words about the item

tags?array<>
Itemsitems <= 50
html?string

Links: the page as rendered in the tab (max 5 MB), stored and read instead of fetching it. Notes and highlights: the selection's HTML, only to tell whether it is a quote; never stored.

upload_id?string

An upload from POST /v1/uploads, already PUT. Required for pdf, video and audio items; an image item needs this or url; a note may use a Markdown upload instead of text

is_favourite?boolean

Marks the item a favourite (true) or not (false). Left out, a new item is not one and a link saved again keeps its flag

archive?boolean

For a link: true keeps a screenshot and full-page archive of this page, false keeps none, whatever the user's archive_pages setting says. Left out, the setting decides (off for new users). A plan without archives keeps none either way. Has no effect on a link saved again

source?ItemSource

The client saving the item. Left out, it is api. A link saved again keeps its first source

Value in"api""web""cli""mobile""extension""singlefile""rss""import"

Response Body

This id was already saved (the item comes back unchanged), or this link's page was (the item comes back, brought to the top)

application/json
  1. response
id*string
kind*Kind
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
source*ItemSource

The client that saved an item. Items saved before this field existed are api.

Value in"api""web""cli""mobile""extension""singlefile""rss""import"
url?string|null
domain?string|null
title?string|null
description?string|null
content?|

Readable text. Lists, sync and search include it only for notes, quotes, highlights and to-dos (their body); links get it on single-item reads.

content_html?|

Readability HTML; only on single-item reads. Untrusted: sanitise it before rendering. Only the tags and attributes the web client renders are present, and every src and href is an absolute http(s) URL. Pictures copied into our storage have src set to a resizable image URL (add ?width= to resize). Those URLs expire after one hour, like thumbnail_url: read the item again for fresh ones; the server always signs them on read and never stores them. A picture that was not copied (over the 30-picture, 10 MB or 50 MB-per-article caps, animated, an unsupported format, or a failed download) keeps the page's own address.

note?string|null
tags*array<string>
image_url?string|null
favicon_url?|

An expiring URL of the site's icon, stored in our storage (a PNG of at most 64px, one per domain), so clients never load it from the site. Null until the worker has stored it, or when the site has no readable icon.

author?string|null
publisher?string|null
published_at?|
Formatdate-time
lang?|

BCP 47 tag of the item's text: the page's own (<html lang>, normalised) else detected from the article text. Null when unknown.

ai_tags?array<string>

Tags suggested by the AI, shown apart from the user's own tags

ai_caption?|

What an image or PDF preview shows

ocr_text?|

Text visible in the image; only on single-item reads

objects?array<string>

Things and brands visible in the image

ai_summary?|

The summary: written by the AI on request with POST /v1/items/{id}/summary, or by the user with updateItem's summary (see summary_edited)

summary_edited?boolean

True when the user wrote ai_summary (updateItem summary); POST /v1/items/{id}/summary then replaces it only with overwrite=true

card?|

The type-aware card the AI chose for a link, PDF or image; null when unclassified. Spotify, Apple Music and YouTube Music links are always music, set when the page is crawled, even with AI off. Items enriched before this existed get one on re-tag.

Value in"article""product""recipe""book""film""series""music""video""place""ticket""trip"null
details?|

A few fields for the card (e.g. price, cook_time, author; for films also rating and runtime; for music artist, album, year, duration as m:ss or h:mm:ss, and platform: Spotify, Apple Music or YouTube Music), at most 60 characters each. Plain text taken from the page by the AI, or for music links by the crawler: render it as text, never markup.

recipe?

The structured recipe of an item whose card is recipe, for a clean recipe layout (intro, yield and times, ingredient list, numbered steps) instead of the reader text. Read from the page's schema.org Recipe markup at crawl time, or written by the AI from the reader text when the page has none; recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no ingredients and steps could be found.

product?

The structured product of an item whose card is product, for a product layout (photo gallery, brand, price as a number with its currency, availability, rating, SKU) instead of the card's short details. Read from the page's schema.org Product (JSON-LD or microdata) or Open Graph product tags at crawl time (Amazon from its buy box), or read by the AI from the reader text when the page has none (a price it gives must be written in that text); recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no name with a price or an image could be found. details and the card's other fields keep working as before.

enrich_status?string
Value in"none""pending""done""failed"
enriched_at?|
Formatdate-time
palette?array<>|

Main colours of the thumbnail, largest first

color_words?array<string>

Colour names for search, e.g. blue, teal

thumbnail_url?|

Card preview (JPEG, at most 640 px wide). A resizable image URL (see the API description): add ?width= to get a smaller copy. Expires after one to two hours, so refetch the item rather than caching the URL. For an image item that is a GIF or animated WebP it is still a still; animated_url is the original.

thumbnail_color?|

Dominant colour of the thumbnail as #rrggbb (the first palette colour); null without a palette.

animated_url?|

The original file of an image item that is a GIF or an animated WebP, for showing it moving (thumbnail_url is always a still). Null for every other item. Signed; expires after an hour, like thumbnail_url.

thumbnail_width?integer|null
thumbnail_height?|

Size of the thumbnail. For a link they can arrive before the image (from the size the page states for it), together with blurhash and thumbnail_color once the image is decoded, so a client can hold the card's shape and tint it while the image is stored.

thumbnail_status?string

Whether a preview is on its way. A link is pending from the moment it is saved until it has a thumbnail (done) or every job that could make one (the page's image, a PDF's first page, a screenshot) has ended without (failed; it never stays pending). Show "generating" while it is pending, nothing wrong for done or failed. A re-crawl of a link that has a thumbnail stays done while a new one is made. none for every other item until it gets a thumbnail, then done. Every move is an item.updated event.

Value in"none""pending""done""failed"
blurhash?|

Placeholder to draw while the thumbnail loads

crawl_status*string
Value in"none""pending""done""failed"
content_quality?string

How much of the page the crawl read. none: no usable text. partial: a paywall or truncation marker, a very short extraction beside a long page, or a page built by scripts; show a partial-text note and offer the original link. full: otherwise. Absent for items that are not article pages (cards, videos, files) and for items crawled before this existed; a re-crawl sets it.

Value in"full""partial""none"
reading_progress?

The caller's own place in the item (single reads only; absent when none was saved, and after a re-crawl replaced the text). Same values as GET /v1/items/{id}/progress.

word_count?integer

Length of the article text in words (Chinese, Japanese and Korean count one word per two characters). Absent for items that are not article pages and for items crawled before this existed; a re-crawl sets it. Present on lists and single reads.

Range1 <= value
reading_minutes?integer

round(word_count / 220), at least 1. Present whenever word_count is.

Range1 <= value
dir?string

Writing direction of the article: the page's <html dir>, else the language's, else the script of the text.

Value in"ltr""rtl"
excerpt?string

A clean one- or two-sentence lead taken from the article body (never the page's description or og:description), at most about 320 characters.

lead_image?

The recipe's photo, from schema.org Recipe.image, else the page's Open Graph image. url is the page's own address (not signed, may be hotlink-blocked; thumbnail_url is our copy). width/height come from the page's markup or, failing that, from the fetched file when the crawl stored the banner; absent while unknown, and for recipes saved before this field existed until they are re-crawled.

crawl_error?string

Set when crawl_status is failed: why, as a short code. http_ (the site refused, e.g. http_403, http_404), challenge (a bot check a browser did not get past either), blocked_address (the link points at a private network), timeout, dns (the site's name does not exist), refused (nothing answers at the address), tls (its certificate cannot be trusted), too_large, stand_in (the site kept serving another page), stuck (the crawl was still pending after 30 minutes, so it was given up), unsupported, no_browser or error.

crawled_at?|
Formatdate-time
capture_status?string

Where the screenshot and full-page archive are. none (never asked for), pending (queued; already set in the response that queued it, and for a new link from the moment it is saved when a capture will be made: Chrome is configured, the plan has archives and archive_pages or the save's archive says yes; the crawl then ends the wait with none if it will not capture after all), running (a worker has it), done, or failed. A re-capture goes back to pending while the previous copies stay available. Every move is an item.updated event.

Value in"none""pending""running""done""failed"
capture_error?string

Set when capture_status is failed: why, as a short code. timeout, capture_failed (the page could not be loaded or captured), store_failed, plan (the plan has no archives), storage_limit, unavailable (no browser is configured), crawl_failed (the link's page could not be read, so there was nothing to capture) or stuck (pending or running for over 30 minutes). A failed re-capture leaves the previous screenshot and archive in place.

captured_at?|

When the stored screenshot and archive were last written. Moves on a successful re-capture; null until the first one.

Formatdate-time
is_favourite*boolean
archived_at?|
Formatdate-time
completed_at?|

When a to-do was ticked off; null while it is open

Formatdate-time
change_seq*string

Sync position (int64 as string)

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
deleted_at?|

Set only when replaying a create for an item the caller has since deleted.

Formatdate-time
shared?boolean

True while the item has a public link that has not expired. Always false on someone else's item in a shared list. Turning sharing on or off, or changing the expiry, moves the item forward in sync; reaching the expiry does not, so compare share_expires_at with the time.

share_expires_at?|

When the public link expires; null when it never does or the item is not shared.

Formatdate-time
Example Request
curl -X POST 'https://example.com/v1/items' \  -H 'Content-Type: application/json' \  -d '{  "kind": "link"}'
Example Response
{  "id": "string",  "kind": "link",  "source": "api",  "url": "string",  "domain": "string",  "title": "string",  "description": "string",  "content": "string",  "content_html": "string",  "note": "string",  "tags": [    "string"  ],  "image_url": "string",  "favicon_url": "string",  "author": "string",  "publisher": "string",  "published_at": "2019-08-24T14:15:22Z",  "lang": "en",  "ai_tags": [    "string"  ],  "ai_caption": "string",  "ocr_text": "string",  "objects": [    "string"  ],  "ai_summary": "string",  "summary_edited": true,  "card": "article",  "details": {    "property1": "string",    "property2": "string"  },  "recipe": {    "description": "string",    "image": {      "url": "http://example.com",      "width": 1,      "height": 1,      "color": "string",      "asset_id": "string",      "source_url": "http://example.com",      "alt": "string"    },    "yield": "string",    "prep_minutes": 1,    "cook_minutes": 1,    "total_minutes": 1,    "ingredients": [      {        "group": "string",        "text": "string"      }    ],    "steps": [      {        "group": "string",        "text": "string"      }    ]  },  "product": {    "name": "string",    "brand": "string",    "description": "string",    "price": {      "amount": 0,      "currency": "string",      "list_amount": 0    },    "availability": "in_stock",    "rating": {      "value": 0,      "count": 1    },    "images": [      "http://example.com"    ],    "image_refs": [      {        "url": "http://example.com",        "width": 1,        "height": 1,        "color": "string",        "asset_id": "string",        "source_url": "http://example.com",        "alt": "string"      }    ],    "sku": "string"  },  "enrich_status": "none",  "enriched_at": "2019-08-24T14:15:22Z",  "palette": [    {      "hex": "#1e50d2",      "lab": [        0,        0,        0      ],      "weight": 0    }  ],  "color_words": [    "string"  ],  "thumbnail_url": "string",  "thumbnail_color": "string",  "animated_url": "string",  "thumbnail_width": 0,  "thumbnail_height": 0,  "thumbnail_status": "none",  "blurhash": "string",  "crawl_status": "none",  "content_quality": "full",  "reading_progress": {    "progress": 0,    "percent": 0,    "offset": 0,    "anchor": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "word_count": 1,  "reading_minutes": 1,  "dir": "ltr",  "excerpt": "string",  "lead_image": {    "url": "http://example.com",    "width": 1,    "height": 1,    "color": "string",    "asset_id": "string",    "source_url": "http://example.com",    "alt": "string"  },  "crawl_error": "string",  "crawled_at": "2019-08-24T14:15:22Z",  "capture_status": "none",  "capture_error": "string",  "captured_at": "2019-08-24T14:15:22Z",  "is_favourite": true,  "archived_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "change_seq": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "shared": true,  "share_expires_at": "2019-08-24T14:15:22Z"}
GET
/v1/items/lookup

Lets the browser extension show an "already saved" badge. The match uses the normalised URL, so the same page saved from a newsletter and from a search result counts once.

Authorization

bearer
headerAuthorizationBearer <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.

Query Parameters

url*string
Formaturi

Response Body

Saved items with the same normalised URL, or an empty list

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://example.com/v1/items/lookup?url=http%3A%2F%2Fexample.com'
Example Response
{  "items": [    {      "id": "string",      "kind": "link",      "source": "api",      "url": "string",      "domain": "string",      "title": "string",      "description": "string",      "content": "string",      "content_html": "string",      "note": "string",      "tags": [        "string"      ],      "image_url": "string",      "favicon_url": "string",      "author": "string",      "publisher": "string",      "published_at": "2019-08-24T14:15:22Z",      "lang": "en",      "ai_tags": [        "string"      ],      "ai_caption": "string",      "ocr_text": "string",      "objects": [        "string"      ],      "ai_summary": "string",      "summary_edited": true,      "card": "article",      "details": {        "property1": "string",        "property2": "string"      },      "recipe": {        "description": "string",        "image": {          "url": "http://example.com",          "width": 1,          "height": 1,          "color": "string",          "asset_id": "string",          "source_url": "http://example.com",          "alt": "string"        },        "yield": "string",        "prep_minutes": 1,        "cook_minutes": 1,        "total_minutes": 1,        "ingredients": [          {            "group": "string",            "text": "string"          }        ],        "steps": [          {            "group": "string",            "text": "string"          }        ]      },      "product": {        "name": "string",        "brand": "string",        "description": "string",        "price": {          "amount": 0,          "currency": "string",          "list_amount": 0        },        "availability": "in_stock",        "rating": {          "value": 0,          "count": 1        },        "images": [          "http://example.com"        ],        "image_refs": [          {            "url": "http://example.com",            "width": 1,            "height": 1,            "color": "string",            "asset_id": "string",            "source_url": "http://example.com",            "alt": "string"          }        ],        "sku": "string"      },      "enrich_status": "none",      "enriched_at": "2019-08-24T14:15:22Z",      "palette": [        {          "hex": "#1e50d2",          "lab": [            0,            0,            0          ],          "weight": 0        }      ],      "color_words": [        "string"      ],      "thumbnail_url": "string",      "thumbnail_color": "string",      "animated_url": "string",      "thumbnail_width": 0,      "thumbnail_height": 0,      "thumbnail_status": "none",      "blurhash": "string",      "crawl_status": "none",      "content_quality": "full",      "reading_progress": {        "progress": 0,        "percent": 0,        "offset": 0,        "anchor": "string",        "updated_at": "2019-08-24T14:15:22Z"      },      "word_count": 1,      "reading_minutes": 1,      "dir": "ltr",      "excerpt": "string",      "lead_image": {        "url": "http://example.com",        "width": 1,        "height": 1,        "color": "string",        "asset_id": "string",        "source_url": "http://example.com",        "alt": "string"      },      "crawl_error": "string",      "crawled_at": "2019-08-24T14:15:22Z",      "capture_status": "none",      "capture_error": "string",      "captured_at": "2019-08-24T14:15:22Z",      "is_favourite": true,      "archived_at": "2019-08-24T14:15:22Z",      "completed_at": "2019-08-24T14:15:22Z",      "change_seq": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "deleted_at": "2019-08-24T14:15:22Z",      "shared": true,      "share_expires_at": "2019-08-24T14:15:22Z"    }  ]}

Delete many items

POST
/v1/items/delete

Deletes up to 200 of the user's items in one request and one transaction, each as DELETE /v1/items/{id} would: a tombstone for sync, an item.deleted webhook, and its files removed. Ids that are not the user's live items (unknown, someone else's, already deleted) are skipped, so repeating the request is harmless. Allowed while the library is read-only over its plan's limits. An API key needs write access to items.

Authorization

bearer
headerAuthorizationBearer <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.

Request Body

application/json
  1. body
ids*array<>
Items1 <= items <= 200

Response Body

The ids that were deleted

application/json
  1. response
deleted*array<string>

The deleted ids, in id order. Skipped ids are left out.

Example Request
curl -X POST 'https://example.com/v1/items/delete' \  -H 'Content-Type: application/json' \  -d '{  "ids": [    "stringstringstringstringst"  ]}'
Example Response
{  "deleted": [    "string"  ]}
GET
/v1/items/{id}

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

id*string

Response Body

The item, including its readable content

application/json
  1. response
id*string
kind*Kind
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
source*ItemSource

The client that saved an item. Items saved before this field existed are api.

Value in"api""web""cli""mobile""extension""singlefile""rss""import"
url?string|null
domain?string|null
title?string|null
description?string|null
content?|

Readable text. Lists, sync and search include it only for notes, quotes, highlights and to-dos (their body); links get it on single-item reads.

content_html?|

Readability HTML; only on single-item reads. Untrusted: sanitise it before rendering. Only the tags and attributes the web client renders are present, and every src and href is an absolute http(s) URL. Pictures copied into our storage have src set to a resizable image URL (add ?width= to resize). Those URLs expire after one hour, like thumbnail_url: read the item again for fresh ones; the server always signs them on read and never stores them. A picture that was not copied (over the 30-picture, 10 MB or 50 MB-per-article caps, animated, an unsupported format, or a failed download) keeps the page's own address.

note?string|null
tags*array<string>
image_url?string|null
favicon_url?|

An expiring URL of the site's icon, stored in our storage (a PNG of at most 64px, one per domain), so clients never load it from the site. Null until the worker has stored it, or when the site has no readable icon.

author?string|null
publisher?string|null
published_at?|
Formatdate-time
lang?|

BCP 47 tag of the item's text: the page's own (<html lang>, normalised) else detected from the article text. Null when unknown.

ai_tags?array<string>

Tags suggested by the AI, shown apart from the user's own tags

ai_caption?|

What an image or PDF preview shows

ocr_text?|

Text visible in the image; only on single-item reads

objects?array<string>

Things and brands visible in the image

ai_summary?|

The summary: written by the AI on request with POST /v1/items/{id}/summary, or by the user with updateItem's summary (see summary_edited)

summary_edited?boolean

True when the user wrote ai_summary (updateItem summary); POST /v1/items/{id}/summary then replaces it only with overwrite=true

card?|

The type-aware card the AI chose for a link, PDF or image; null when unclassified. Spotify, Apple Music and YouTube Music links are always music, set when the page is crawled, even with AI off. Items enriched before this existed get one on re-tag.

Value in"article""product""recipe""book""film""series""music""video""place""ticket""trip"null
details?|

A few fields for the card (e.g. price, cook_time, author; for films also rating and runtime; for music artist, album, year, duration as m:ss or h:mm:ss, and platform: Spotify, Apple Music or YouTube Music), at most 60 characters each. Plain text taken from the page by the AI, or for music links by the crawler: render it as text, never markup.

recipe?

The structured recipe of an item whose card is recipe, for a clean recipe layout (intro, yield and times, ingredient list, numbered steps) instead of the reader text. Read from the page's schema.org Recipe markup at crawl time, or written by the AI from the reader text when the page has none; recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no ingredients and steps could be found.

product?

The structured product of an item whose card is product, for a product layout (photo gallery, brand, price as a number with its currency, availability, rating, SKU) instead of the card's short details. Read from the page's schema.org Product (JSON-LD or microdata) or Open Graph product tags at crawl time (Amazon from its buy box), or read by the AI from the reader text when the page has none (a price it gives must be written in that text); recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no name with a price or an image could be found. details and the card's other fields keep working as before.

enrich_status?string
Value in"none""pending""done""failed"
enriched_at?|
Formatdate-time
palette?array<>|

Main colours of the thumbnail, largest first

color_words?array<string>

Colour names for search, e.g. blue, teal

thumbnail_url?|

Card preview (JPEG, at most 640 px wide). A resizable image URL (see the API description): add ?width= to get a smaller copy. Expires after one to two hours, so refetch the item rather than caching the URL. For an image item that is a GIF or animated WebP it is still a still; animated_url is the original.

thumbnail_color?|

Dominant colour of the thumbnail as #rrggbb (the first palette colour); null without a palette.

animated_url?|

The original file of an image item that is a GIF or an animated WebP, for showing it moving (thumbnail_url is always a still). Null for every other item. Signed; expires after an hour, like thumbnail_url.

thumbnail_width?integer|null
thumbnail_height?|

Size of the thumbnail. For a link they can arrive before the image (from the size the page states for it), together with blurhash and thumbnail_color once the image is decoded, so a client can hold the card's shape and tint it while the image is stored.

thumbnail_status?string

Whether a preview is on its way. A link is pending from the moment it is saved until it has a thumbnail (done) or every job that could make one (the page's image, a PDF's first page, a screenshot) has ended without (failed; it never stays pending). Show "generating" while it is pending, nothing wrong for done or failed. A re-crawl of a link that has a thumbnail stays done while a new one is made. none for every other item until it gets a thumbnail, then done. Every move is an item.updated event.

Value in"none""pending""done""failed"
blurhash?|

Placeholder to draw while the thumbnail loads

crawl_status*string
Value in"none""pending""done""failed"
content_quality?string

How much of the page the crawl read. none: no usable text. partial: a paywall or truncation marker, a very short extraction beside a long page, or a page built by scripts; show a partial-text note and offer the original link. full: otherwise. Absent for items that are not article pages (cards, videos, files) and for items crawled before this existed; a re-crawl sets it.

Value in"full""partial""none"
reading_progress?

The caller's own place in the item (single reads only; absent when none was saved, and after a re-crawl replaced the text). Same values as GET /v1/items/{id}/progress.

word_count?integer

Length of the article text in words (Chinese, Japanese and Korean count one word per two characters). Absent for items that are not article pages and for items crawled before this existed; a re-crawl sets it. Present on lists and single reads.

Range1 <= value
reading_minutes?integer

round(word_count / 220), at least 1. Present whenever word_count is.

Range1 <= value
dir?string

Writing direction of the article: the page's <html dir>, else the language's, else the script of the text.

Value in"ltr""rtl"
excerpt?string

A clean one- or two-sentence lead taken from the article body (never the page's description or og:description), at most about 320 characters.

lead_image?

The recipe's photo, from schema.org Recipe.image, else the page's Open Graph image. url is the page's own address (not signed, may be hotlink-blocked; thumbnail_url is our copy). width/height come from the page's markup or, failing that, from the fetched file when the crawl stored the banner; absent while unknown, and for recipes saved before this field existed until they are re-crawled.

crawl_error?string

Set when crawl_status is failed: why, as a short code. http_ (the site refused, e.g. http_403, http_404), challenge (a bot check a browser did not get past either), blocked_address (the link points at a private network), timeout, dns (the site's name does not exist), refused (nothing answers at the address), tls (its certificate cannot be trusted), too_large, stand_in (the site kept serving another page), stuck (the crawl was still pending after 30 minutes, so it was given up), unsupported, no_browser or error.

crawled_at?|
Formatdate-time
capture_status?string

Where the screenshot and full-page archive are. none (never asked for), pending (queued; already set in the response that queued it, and for a new link from the moment it is saved when a capture will be made: Chrome is configured, the plan has archives and archive_pages or the save's archive says yes; the crawl then ends the wait with none if it will not capture after all), running (a worker has it), done, or failed. A re-capture goes back to pending while the previous copies stay available. Every move is an item.updated event.

Value in"none""pending""running""done""failed"
capture_error?string

Set when capture_status is failed: why, as a short code. timeout, capture_failed (the page could not be loaded or captured), store_failed, plan (the plan has no archives), storage_limit, unavailable (no browser is configured), crawl_failed (the link's page could not be read, so there was nothing to capture) or stuck (pending or running for over 30 minutes). A failed re-capture leaves the previous screenshot and archive in place.

captured_at?|

When the stored screenshot and archive were last written. Moves on a successful re-capture; null until the first one.

Formatdate-time
is_favourite*boolean
archived_at?|
Formatdate-time
completed_at?|

When a to-do was ticked off; null while it is open

Formatdate-time
change_seq*string

Sync position (int64 as string)

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
deleted_at?|

Set only when replaying a create for an item the caller has since deleted.

Formatdate-time
shared?boolean

True while the item has a public link that has not expired. Always false on someone else's item in a shared list. Turning sharing on or off, or changing the expiry, moves the item forward in sync; reaching the expiry does not, so compare share_expires_at with the time.

share_expires_at?|

When the public link expires; null when it never does or the item is not shared.

Formatdate-time
Example Request
curl -X GET 'https://example.com/v1/items/string'
Example Response
{  "id": "string",  "kind": "link",  "source": "api",  "url": "string",  "domain": "string",  "title": "string",  "description": "string",  "content": "string",  "content_html": "string",  "note": "string",  "tags": [    "string"  ],  "image_url": "string",  "favicon_url": "string",  "author": "string",  "publisher": "string",  "published_at": "2019-08-24T14:15:22Z",  "lang": "en",  "ai_tags": [    "string"  ],  "ai_caption": "string",  "ocr_text": "string",  "objects": [    "string"  ],  "ai_summary": "string",  "summary_edited": true,  "card": "article",  "details": {    "property1": "string",    "property2": "string"  },  "recipe": {    "description": "string",    "image": {      "url": "http://example.com",      "width": 1,      "height": 1,      "color": "string",      "asset_id": "string",      "source_url": "http://example.com",      "alt": "string"    },    "yield": "string",    "prep_minutes": 1,    "cook_minutes": 1,    "total_minutes": 1,    "ingredients": [      {        "group": "string",        "text": "string"      }    ],    "steps": [      {        "group": "string",        "text": "string"      }    ]  },  "product": {    "name": "string",    "brand": "string",    "description": "string",    "price": {      "amount": 0,      "currency": "string",      "list_amount": 0    },    "availability": "in_stock",    "rating": {      "value": 0,      "count": 1    },    "images": [      "http://example.com"    ],    "image_refs": [      {        "url": "http://example.com",        "width": 1,        "height": 1,        "color": "string",        "asset_id": "string",        "source_url": "http://example.com",        "alt": "string"      }    ],    "sku": "string"  },  "enrich_status": "none",  "enriched_at": "2019-08-24T14:15:22Z",  "palette": [    {      "hex": "#1e50d2",      "lab": [        0,        0,        0      ],      "weight": 0    }  ],  "color_words": [    "string"  ],  "thumbnail_url": "string",  "thumbnail_color": "string",  "animated_url": "string",  "thumbnail_width": 0,  "thumbnail_height": 0,  "thumbnail_status": "none",  "blurhash": "string",  "crawl_status": "none",  "content_quality": "full",  "reading_progress": {    "progress": 0,    "percent": 0,    "offset": 0,    "anchor": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "word_count": 1,  "reading_minutes": 1,  "dir": "ltr",  "excerpt": "string",  "lead_image": {    "url": "http://example.com",    "width": 1,    "height": 1,    "color": "string",    "asset_id": "string",    "source_url": "http://example.com",    "alt": "string"  },  "crawl_error": "string",  "crawled_at": "2019-08-24T14:15:22Z",  "capture_status": "none",  "capture_error": "string",  "captured_at": "2019-08-24T14:15:22Z",  "is_favourite": true,  "archived_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "change_seq": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "shared": true,  "share_expires_at": "2019-08-24T14:15:22Z"}
PATCH
/v1/items/{id}

Only the fields sent change; a field left out stays as it is. For url, summary, author, publisher and published_at, null or "" clears the value. Clearing summary also stops the automatic page summary from writing another for that item; POST /v1/items/{id}/summary or a summary you write lifts that. A value the user sets for title, description, author, publisher or published_at is kept by later crawls; clearing it lets a crawl fill it again. Every edit bumps change_seq and updated_at, and fires the item.updated webhook and realtime event. Errors are 422 with errors per field: an invalid or duplicate url, a future created_at, a bad date, or a value over its length limit.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

id*string

Request Body

application/json
  1. body
title?string
description?string
note?string
text?string

New body text. Only notes, quotes, highlights and to-dos have a body; for other kinds it is ignored.

tags?array<string>
Itemsitems <= 50
dismiss_ai_tags?array<string>

AI tags to remove; they are never suggested again for this item. Adding a tag to tags also removes it from ai_tags.

Itemsitems <= 50
is_favourite?boolean
archived?boolean
completed?boolean

To-dos: tick the task off (true) or back on (false)

url?|

Links only: move the link to another http(s) page. It is normalised like createItem's (domain follows), and the page is crawled again (crawl_status goes back to pending); title, description, author, publisher and published date the user set are kept, the rest is read from the new page. 422 if it is not a full http or https URL, if another of the user's items has the same page, or if it clears a link's URL. Ignored for notes, quotes, to-dos, images and PDFs. Sending the link's own page again changes nothing.

Lengthlength <= 8192
summary?|

The summary, stored as ai_summary. A summary written here is the user's (summary_edited becomes true): POST /v1/items/{id}/summary will not replace it unless sent overwrite=true. null or "" clears it.

Lengthlength <= 5000
author?|

Who wrote the page. A value set here is kept by later crawls; null or "" clears it and lets a crawl fill it again.

Lengthlength <= 300
publisher?|

The site or publication. A value set here is kept by later crawls; null or "" clears it and lets a crawl fill it again.

Lengthlength <= 300
published_at?|

When the page was published (RFC 3339). A value set here is kept by later crawls; null or "" clears it.

Formatdate-time
created_at?string

When the item was saved (RFC 3339), to backdate it: the feed (listItems) is ordered by it. 422 if it is in the future or empty; it cannot be cleared.

Formatdate-time

Response Body

The updated item

application/json
  1. response
id*string
kind*Kind
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
source*ItemSource

The client that saved an item. Items saved before this field existed are api.

Value in"api""web""cli""mobile""extension""singlefile""rss""import"
url?string|null
domain?string|null
title?string|null
description?string|null
content?|

Readable text. Lists, sync and search include it only for notes, quotes, highlights and to-dos (their body); links get it on single-item reads.

content_html?|

Readability HTML; only on single-item reads. Untrusted: sanitise it before rendering. Only the tags and attributes the web client renders are present, and every src and href is an absolute http(s) URL. Pictures copied into our storage have src set to a resizable image URL (add ?width= to resize). Those URLs expire after one hour, like thumbnail_url: read the item again for fresh ones; the server always signs them on read and never stores them. A picture that was not copied (over the 30-picture, 10 MB or 50 MB-per-article caps, animated, an unsupported format, or a failed download) keeps the page's own address.

note?string|null
tags*array<string>
image_url?string|null
favicon_url?|

An expiring URL of the site's icon, stored in our storage (a PNG of at most 64px, one per domain), so clients never load it from the site. Null until the worker has stored it, or when the site has no readable icon.

author?string|null
publisher?string|null
published_at?|
Formatdate-time
lang?|

BCP 47 tag of the item's text: the page's own (<html lang>, normalised) else detected from the article text. Null when unknown.

ai_tags?array<string>

Tags suggested by the AI, shown apart from the user's own tags

ai_caption?|

What an image or PDF preview shows

ocr_text?|

Text visible in the image; only on single-item reads

objects?array<string>

Things and brands visible in the image

ai_summary?|

The summary: written by the AI on request with POST /v1/items/{id}/summary, or by the user with updateItem's summary (see summary_edited)

summary_edited?boolean

True when the user wrote ai_summary (updateItem summary); POST /v1/items/{id}/summary then replaces it only with overwrite=true

card?|

The type-aware card the AI chose for a link, PDF or image; null when unclassified. Spotify, Apple Music and YouTube Music links are always music, set when the page is crawled, even with AI off. Items enriched before this existed get one on re-tag.

Value in"article""product""recipe""book""film""series""music""video""place""ticket""trip"null
details?|

A few fields for the card (e.g. price, cook_time, author; for films also rating and runtime; for music artist, album, year, duration as m:ss or h:mm:ss, and platform: Spotify, Apple Music or YouTube Music), at most 60 characters each. Plain text taken from the page by the AI, or for music links by the crawler: render it as text, never markup.

recipe?

The structured recipe of an item whose card is recipe, for a clean recipe layout (intro, yield and times, ingredient list, numbered steps) instead of the reader text. Read from the page's schema.org Recipe markup at crawl time, or written by the AI from the reader text when the page has none; recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no ingredients and steps could be found.

product?

The structured product of an item whose card is product, for a product layout (photo gallery, brand, price as a number with its currency, availability, rating, SKU) instead of the card's short details. Read from the page's schema.org Product (JSON-LD or microdata) or Open Graph product tags at crawl time (Amazon from its buy box), or read by the AI from the reader text when the page has none (a price it gives must be written in that text); recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no name with a price or an image could be found. details and the card's other fields keep working as before.

enrich_status?string
Value in"none""pending""done""failed"
enriched_at?|
Formatdate-time
palette?array<>|

Main colours of the thumbnail, largest first

color_words?array<string>

Colour names for search, e.g. blue, teal

thumbnail_url?|

Card preview (JPEG, at most 640 px wide). A resizable image URL (see the API description): add ?width= to get a smaller copy. Expires after one to two hours, so refetch the item rather than caching the URL. For an image item that is a GIF or animated WebP it is still a still; animated_url is the original.

thumbnail_color?|

Dominant colour of the thumbnail as #rrggbb (the first palette colour); null without a palette.

animated_url?|

The original file of an image item that is a GIF or an animated WebP, for showing it moving (thumbnail_url is always a still). Null for every other item. Signed; expires after an hour, like thumbnail_url.

thumbnail_width?integer|null
thumbnail_height?|

Size of the thumbnail. For a link they can arrive before the image (from the size the page states for it), together with blurhash and thumbnail_color once the image is decoded, so a client can hold the card's shape and tint it while the image is stored.

thumbnail_status?string

Whether a preview is on its way. A link is pending from the moment it is saved until it has a thumbnail (done) or every job that could make one (the page's image, a PDF's first page, a screenshot) has ended without (failed; it never stays pending). Show "generating" while it is pending, nothing wrong for done or failed. A re-crawl of a link that has a thumbnail stays done while a new one is made. none for every other item until it gets a thumbnail, then done. Every move is an item.updated event.

Value in"none""pending""done""failed"
blurhash?|

Placeholder to draw while the thumbnail loads

crawl_status*string
Value in"none""pending""done""failed"
content_quality?string

How much of the page the crawl read. none: no usable text. partial: a paywall or truncation marker, a very short extraction beside a long page, or a page built by scripts; show a partial-text note and offer the original link. full: otherwise. Absent for items that are not article pages (cards, videos, files) and for items crawled before this existed; a re-crawl sets it.

Value in"full""partial""none"
reading_progress?

The caller's own place in the item (single reads only; absent when none was saved, and after a re-crawl replaced the text). Same values as GET /v1/items/{id}/progress.

word_count?integer

Length of the article text in words (Chinese, Japanese and Korean count one word per two characters). Absent for items that are not article pages and for items crawled before this existed; a re-crawl sets it. Present on lists and single reads.

Range1 <= value
reading_minutes?integer

round(word_count / 220), at least 1. Present whenever word_count is.

Range1 <= value
dir?string

Writing direction of the article: the page's <html dir>, else the language's, else the script of the text.

Value in"ltr""rtl"
excerpt?string

A clean one- or two-sentence lead taken from the article body (never the page's description or og:description), at most about 320 characters.

lead_image?

The recipe's photo, from schema.org Recipe.image, else the page's Open Graph image. url is the page's own address (not signed, may be hotlink-blocked; thumbnail_url is our copy). width/height come from the page's markup or, failing that, from the fetched file when the crawl stored the banner; absent while unknown, and for recipes saved before this field existed until they are re-crawled.

crawl_error?string

Set when crawl_status is failed: why, as a short code. http_ (the site refused, e.g. http_403, http_404), challenge (a bot check a browser did not get past either), blocked_address (the link points at a private network), timeout, dns (the site's name does not exist), refused (nothing answers at the address), tls (its certificate cannot be trusted), too_large, stand_in (the site kept serving another page), stuck (the crawl was still pending after 30 minutes, so it was given up), unsupported, no_browser or error.

crawled_at?|
Formatdate-time
capture_status?string

Where the screenshot and full-page archive are. none (never asked for), pending (queued; already set in the response that queued it, and for a new link from the moment it is saved when a capture will be made: Chrome is configured, the plan has archives and archive_pages or the save's archive says yes; the crawl then ends the wait with none if it will not capture after all), running (a worker has it), done, or failed. A re-capture goes back to pending while the previous copies stay available. Every move is an item.updated event.

Value in"none""pending""running""done""failed"
capture_error?string

Set when capture_status is failed: why, as a short code. timeout, capture_failed (the page could not be loaded or captured), store_failed, plan (the plan has no archives), storage_limit, unavailable (no browser is configured), crawl_failed (the link's page could not be read, so there was nothing to capture) or stuck (pending or running for over 30 minutes). A failed re-capture leaves the previous screenshot and archive in place.

captured_at?|

When the stored screenshot and archive were last written. Moves on a successful re-capture; null until the first one.

Formatdate-time
is_favourite*boolean
archived_at?|
Formatdate-time
completed_at?|

When a to-do was ticked off; null while it is open

Formatdate-time
change_seq*string

Sync position (int64 as string)

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
deleted_at?|

Set only when replaying a create for an item the caller has since deleted.

Formatdate-time
shared?boolean

True while the item has a public link that has not expired. Always false on someone else's item in a shared list. Turning sharing on or off, or changing the expiry, moves the item forward in sync; reaching the expiry does not, so compare share_expires_at with the time.

share_expires_at?|

When the public link expires; null when it never does or the item is not shared.

Formatdate-time
Example Request
curl -X PATCH 'https://example.com/v1/items/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "kind": "link",  "source": "api",  "url": "string",  "domain": "string",  "title": "string",  "description": "string",  "content": "string",  "content_html": "string",  "note": "string",  "tags": [    "string"  ],  "image_url": "string",  "favicon_url": "string",  "author": "string",  "publisher": "string",  "published_at": "2019-08-24T14:15:22Z",  "lang": "en",  "ai_tags": [    "string"  ],  "ai_caption": "string",  "ocr_text": "string",  "objects": [    "string"  ],  "ai_summary": "string",  "summary_edited": true,  "card": "article",  "details": {    "property1": "string",    "property2": "string"  },  "recipe": {    "description": "string",    "image": {      "url": "http://example.com",      "width": 1,      "height": 1,      "color": "string",      "asset_id": "string",      "source_url": "http://example.com",      "alt": "string"    },    "yield": "string",    "prep_minutes": 1,    "cook_minutes": 1,    "total_minutes": 1,    "ingredients": [      {        "group": "string",        "text": "string"      }    ],    "steps": [      {        "group": "string",        "text": "string"      }    ]  },  "product": {    "name": "string",    "brand": "string",    "description": "string",    "price": {      "amount": 0,      "currency": "string",      "list_amount": 0    },    "availability": "in_stock",    "rating": {      "value": 0,      "count": 1    },    "images": [      "http://example.com"    ],    "image_refs": [      {        "url": "http://example.com",        "width": 1,        "height": 1,        "color": "string",        "asset_id": "string",        "source_url": "http://example.com",        "alt": "string"      }    ],    "sku": "string"  },  "enrich_status": "none",  "enriched_at": "2019-08-24T14:15:22Z",  "palette": [    {      "hex": "#1e50d2",      "lab": [        0,        0,        0      ],      "weight": 0    }  ],  "color_words": [    "string"  ],  "thumbnail_url": "string",  "thumbnail_color": "string",  "animated_url": "string",  "thumbnail_width": 0,  "thumbnail_height": 0,  "thumbnail_status": "none",  "blurhash": "string",  "crawl_status": "none",  "content_quality": "full",  "reading_progress": {    "progress": 0,    "percent": 0,    "offset": 0,    "anchor": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "word_count": 1,  "reading_minutes": 1,  "dir": "ltr",  "excerpt": "string",  "lead_image": {    "url": "http://example.com",    "width": 1,    "height": 1,    "color": "string",    "asset_id": "string",    "source_url": "http://example.com",    "alt": "string"  },  "crawl_error": "string",  "crawled_at": "2019-08-24T14:15:22Z",  "capture_status": "none",  "capture_error": "string",  "captured_at": "2019-08-24T14:15:22Z",  "is_favourite": true,  "archived_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "change_seq": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "shared": true,  "share_expires_at": "2019-08-24T14:15:22Z"}

Delete an item

DELETE
/v1/items/{id}

Clients that sync learn about the deletion from GET /v1/sync. The item's stored files are removed in the background.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

id*string

Response Body

Deleted

Example Request
curl -X DELETE 'https://example.com/v1/items/string'
Example Response
Empty
POST
/v1/items/{id}/recrawl

Queues a new crawl of the page. Links only (422 for any other kind). Nothing happens while a crawl is already waiting.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

id*string

Response Body

The item, with its crawl marked as pending

application/json
  1. response
id*string
kind*Kind
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
source*ItemSource

The client that saved an item. Items saved before this field existed are api.

Value in"api""web""cli""mobile""extension""singlefile""rss""import"
url?string|null
domain?string|null
title?string|null
description?string|null
content?|

Readable text. Lists, sync and search include it only for notes, quotes, highlights and to-dos (their body); links get it on single-item reads.

content_html?|

Readability HTML; only on single-item reads. Untrusted: sanitise it before rendering. Only the tags and attributes the web client renders are present, and every src and href is an absolute http(s) URL. Pictures copied into our storage have src set to a resizable image URL (add ?width= to resize). Those URLs expire after one hour, like thumbnail_url: read the item again for fresh ones; the server always signs them on read and never stores them. A picture that was not copied (over the 30-picture, 10 MB or 50 MB-per-article caps, animated, an unsupported format, or a failed download) keeps the page's own address.

note?string|null
tags*array<string>
image_url?string|null
favicon_url?|

An expiring URL of the site's icon, stored in our storage (a PNG of at most 64px, one per domain), so clients never load it from the site. Null until the worker has stored it, or when the site has no readable icon.

author?string|null
publisher?string|null
published_at?|
Formatdate-time
lang?|

BCP 47 tag of the item's text: the page's own (<html lang>, normalised) else detected from the article text. Null when unknown.

ai_tags?array<string>

Tags suggested by the AI, shown apart from the user's own tags

ai_caption?|

What an image or PDF preview shows

ocr_text?|

Text visible in the image; only on single-item reads

objects?array<string>

Things and brands visible in the image

ai_summary?|

The summary: written by the AI on request with POST /v1/items/{id}/summary, or by the user with updateItem's summary (see summary_edited)

summary_edited?boolean

True when the user wrote ai_summary (updateItem summary); POST /v1/items/{id}/summary then replaces it only with overwrite=true

card?|

The type-aware card the AI chose for a link, PDF or image; null when unclassified. Spotify, Apple Music and YouTube Music links are always music, set when the page is crawled, even with AI off. Items enriched before this existed get one on re-tag.

Value in"article""product""recipe""book""film""series""music""video""place""ticket""trip"null
details?|

A few fields for the card (e.g. price, cook_time, author; for films also rating and runtime; for music artist, album, year, duration as m:ss or h:mm:ss, and platform: Spotify, Apple Music or YouTube Music), at most 60 characters each. Plain text taken from the page by the AI, or for music links by the crawler: render it as text, never markup.

recipe?

The structured recipe of an item whose card is recipe, for a clean recipe layout (intro, yield and times, ingredient list, numbered steps) instead of the reader text. Read from the page's schema.org Recipe markup at crawl time, or written by the AI from the reader text when the page has none; recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no ingredients and steps could be found.

product?

The structured product of an item whose card is product, for a product layout (photo gallery, brand, price as a number with its currency, availability, rating, SKU) instead of the card's short details. Read from the page's schema.org Product (JSON-LD or microdata) or Open Graph product tags at crawl time (Amazon from its buy box), or read by the AI from the reader text when the page has none (a price it gives must be written in that text); recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no name with a price or an image could be found. details and the card's other fields keep working as before.

enrich_status?string
Value in"none""pending""done""failed"
enriched_at?|
Formatdate-time
palette?array<>|

Main colours of the thumbnail, largest first

color_words?array<string>

Colour names for search, e.g. blue, teal

thumbnail_url?|

Card preview (JPEG, at most 640 px wide). A resizable image URL (see the API description): add ?width= to get a smaller copy. Expires after one to two hours, so refetch the item rather than caching the URL. For an image item that is a GIF or animated WebP it is still a still; animated_url is the original.

thumbnail_color?|

Dominant colour of the thumbnail as #rrggbb (the first palette colour); null without a palette.

animated_url?|

The original file of an image item that is a GIF or an animated WebP, for showing it moving (thumbnail_url is always a still). Null for every other item. Signed; expires after an hour, like thumbnail_url.

thumbnail_width?integer|null
thumbnail_height?|

Size of the thumbnail. For a link they can arrive before the image (from the size the page states for it), together with blurhash and thumbnail_color once the image is decoded, so a client can hold the card's shape and tint it while the image is stored.

thumbnail_status?string

Whether a preview is on its way. A link is pending from the moment it is saved until it has a thumbnail (done) or every job that could make one (the page's image, a PDF's first page, a screenshot) has ended without (failed; it never stays pending). Show "generating" while it is pending, nothing wrong for done or failed. A re-crawl of a link that has a thumbnail stays done while a new one is made. none for every other item until it gets a thumbnail, then done. Every move is an item.updated event.

Value in"none""pending""done""failed"
blurhash?|

Placeholder to draw while the thumbnail loads

crawl_status*string
Value in"none""pending""done""failed"
content_quality?string

How much of the page the crawl read. none: no usable text. partial: a paywall or truncation marker, a very short extraction beside a long page, or a page built by scripts; show a partial-text note and offer the original link. full: otherwise. Absent for items that are not article pages (cards, videos, files) and for items crawled before this existed; a re-crawl sets it.

Value in"full""partial""none"
reading_progress?

The caller's own place in the item (single reads only; absent when none was saved, and after a re-crawl replaced the text). Same values as GET /v1/items/{id}/progress.

word_count?integer

Length of the article text in words (Chinese, Japanese and Korean count one word per two characters). Absent for items that are not article pages and for items crawled before this existed; a re-crawl sets it. Present on lists and single reads.

Range1 <= value
reading_minutes?integer

round(word_count / 220), at least 1. Present whenever word_count is.

Range1 <= value
dir?string

Writing direction of the article: the page's <html dir>, else the language's, else the script of the text.

Value in"ltr""rtl"
excerpt?string

A clean one- or two-sentence lead taken from the article body (never the page's description or og:description), at most about 320 characters.

lead_image?

The recipe's photo, from schema.org Recipe.image, else the page's Open Graph image. url is the page's own address (not signed, may be hotlink-blocked; thumbnail_url is our copy). width/height come from the page's markup or, failing that, from the fetched file when the crawl stored the banner; absent while unknown, and for recipes saved before this field existed until they are re-crawled.

crawl_error?string

Set when crawl_status is failed: why, as a short code. http_ (the site refused, e.g. http_403, http_404), challenge (a bot check a browser did not get past either), blocked_address (the link points at a private network), timeout, dns (the site's name does not exist), refused (nothing answers at the address), tls (its certificate cannot be trusted), too_large, stand_in (the site kept serving another page), stuck (the crawl was still pending after 30 minutes, so it was given up), unsupported, no_browser or error.

crawled_at?|
Formatdate-time
capture_status?string

Where the screenshot and full-page archive are. none (never asked for), pending (queued; already set in the response that queued it, and for a new link from the moment it is saved when a capture will be made: Chrome is configured, the plan has archives and archive_pages or the save's archive says yes; the crawl then ends the wait with none if it will not capture after all), running (a worker has it), done, or failed. A re-capture goes back to pending while the previous copies stay available. Every move is an item.updated event.

Value in"none""pending""running""done""failed"
capture_error?string

Set when capture_status is failed: why, as a short code. timeout, capture_failed (the page could not be loaded or captured), store_failed, plan (the plan has no archives), storage_limit, unavailable (no browser is configured), crawl_failed (the link's page could not be read, so there was nothing to capture) or stuck (pending or running for over 30 minutes). A failed re-capture leaves the previous screenshot and archive in place.

captured_at?|

When the stored screenshot and archive were last written. Moves on a successful re-capture; null until the first one.

Formatdate-time
is_favourite*boolean
archived_at?|
Formatdate-time
completed_at?|

When a to-do was ticked off; null while it is open

Formatdate-time
change_seq*string

Sync position (int64 as string)

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
deleted_at?|

Set only when replaying a create for an item the caller has since deleted.

Formatdate-time
shared?boolean

True while the item has a public link that has not expired. Always false on someone else's item in a shared list. Turning sharing on or off, or changing the expiry, moves the item forward in sync; reaching the expiry does not, so compare share_expires_at with the time.

share_expires_at?|

When the public link expires; null when it never does or the item is not shared.

Formatdate-time
Example Request
curl -X POST 'https://example.com/v1/items/string/recrawl'
Example Response
{  "id": "string",  "kind": "link",  "source": "api",  "url": "string",  "domain": "string",  "title": "string",  "description": "string",  "content": "string",  "content_html": "string",  "note": "string",  "tags": [    "string"  ],  "image_url": "string",  "favicon_url": "string",  "author": "string",  "publisher": "string",  "published_at": "2019-08-24T14:15:22Z",  "lang": "en",  "ai_tags": [    "string"  ],  "ai_caption": "string",  "ocr_text": "string",  "objects": [    "string"  ],  "ai_summary": "string",  "summary_edited": true,  "card": "article",  "details": {    "property1": "string",    "property2": "string"  },  "recipe": {    "description": "string",    "image": {      "url": "http://example.com",      "width": 1,      "height": 1,      "color": "string",      "asset_id": "string",      "source_url": "http://example.com",      "alt": "string"    },    "yield": "string",    "prep_minutes": 1,    "cook_minutes": 1,    "total_minutes": 1,    "ingredients": [      {        "group": "string",        "text": "string"      }    ],    "steps": [      {        "group": "string",        "text": "string"      }    ]  },  "product": {    "name": "string",    "brand": "string",    "description": "string",    "price": {      "amount": 0,      "currency": "string",      "list_amount": 0    },    "availability": "in_stock",    "rating": {      "value": 0,      "count": 1    },    "images": [      "http://example.com"    ],    "image_refs": [      {        "url": "http://example.com",        "width": 1,        "height": 1,        "color": "string",        "asset_id": "string",        "source_url": "http://example.com",        "alt": "string"      }    ],    "sku": "string"  },  "enrich_status": "none",  "enriched_at": "2019-08-24T14:15:22Z",  "palette": [    {      "hex": "#1e50d2",      "lab": [        0,        0,        0      ],      "weight": 0    }  ],  "color_words": [    "string"  ],  "thumbnail_url": "string",  "thumbnail_color": "string",  "animated_url": "string",  "thumbnail_width": 0,  "thumbnail_height": 0,  "thumbnail_status": "none",  "blurhash": "string",  "crawl_status": "none",  "content_quality": "full",  "reading_progress": {    "progress": 0,    "percent": 0,    "offset": 0,    "anchor": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "word_count": 1,  "reading_minutes": 1,  "dir": "ltr",  "excerpt": "string",  "lead_image": {    "url": "http://example.com",    "width": 1,    "height": 1,    "color": "string",    "asset_id": "string",    "source_url": "http://example.com",    "alt": "string"  },  "crawl_error": "string",  "crawled_at": "2019-08-24T14:15:22Z",  "capture_status": "none",  "capture_error": "string",  "captured_at": "2019-08-24T14:15:22Z",  "is_favourite": true,  "archived_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "change_seq": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "shared": true,  "share_expires_at": "2019-08-24T14:15:22Z"}
POST
/v1/items/{id}/archive

Queues a screenshot and full-page archive of the page, whatever the user's archive_pages setting says. Returns at once with capture_status pending already set; it becomes running when a worker has it and done or failed (with capture_error) when it ends, and every move is an item.updated event. A link that already has a screenshot and archive is captured again: the old copies stay until the new ones are all stored, then they are replaced together (one screenshot and one archive remain, captured_at moves); a failed re-capture leaves the old copies in place. A capture already pending or running is left alone: the item comes back unchanged with 202 and no second job is queued. A capture that has not finished within 30 minutes is failed (capture_error stuck). Links only (422 item.not_archivable for any other kind); 402 when the plan has no archives; 409 item.crawl_in_progress while the link's first crawl is still pending (try again when crawl_status moves on). The files appear on GET /v1/items/{id}/assets.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

id*string

Response Body

The item; the capture is queued

application/json
  1. response
id*string
kind*Kind
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
source*ItemSource

The client that saved an item. Items saved before this field existed are api.

Value in"api""web""cli""mobile""extension""singlefile""rss""import"
url?string|null
domain?string|null
title?string|null
description?string|null
content?|

Readable text. Lists, sync and search include it only for notes, quotes, highlights and to-dos (their body); links get it on single-item reads.

content_html?|

Readability HTML; only on single-item reads. Untrusted: sanitise it before rendering. Only the tags and attributes the web client renders are present, and every src and href is an absolute http(s) URL. Pictures copied into our storage have src set to a resizable image URL (add ?width= to resize). Those URLs expire after one hour, like thumbnail_url: read the item again for fresh ones; the server always signs them on read and never stores them. A picture that was not copied (over the 30-picture, 10 MB or 50 MB-per-article caps, animated, an unsupported format, or a failed download) keeps the page's own address.

note?string|null
tags*array<string>
image_url?string|null
favicon_url?|

An expiring URL of the site's icon, stored in our storage (a PNG of at most 64px, one per domain), so clients never load it from the site. Null until the worker has stored it, or when the site has no readable icon.

author?string|null
publisher?string|null
published_at?|
Formatdate-time
lang?|

BCP 47 tag of the item's text: the page's own (<html lang>, normalised) else detected from the article text. Null when unknown.

ai_tags?array<string>

Tags suggested by the AI, shown apart from the user's own tags

ai_caption?|

What an image or PDF preview shows

ocr_text?|

Text visible in the image; only on single-item reads

objects?array<string>

Things and brands visible in the image

ai_summary?|

The summary: written by the AI on request with POST /v1/items/{id}/summary, or by the user with updateItem's summary (see summary_edited)

summary_edited?boolean

True when the user wrote ai_summary (updateItem summary); POST /v1/items/{id}/summary then replaces it only with overwrite=true

card?|

The type-aware card the AI chose for a link, PDF or image; null when unclassified. Spotify, Apple Music and YouTube Music links are always music, set when the page is crawled, even with AI off. Items enriched before this existed get one on re-tag.

Value in"article""product""recipe""book""film""series""music""video""place""ticket""trip"null
details?|

A few fields for the card (e.g. price, cook_time, author; for films also rating and runtime; for music artist, album, year, duration as m:ss or h:mm:ss, and platform: Spotify, Apple Music or YouTube Music), at most 60 characters each. Plain text taken from the page by the AI, or for music links by the crawler: render it as text, never markup.

recipe?

The structured recipe of an item whose card is recipe, for a clean recipe layout (intro, yield and times, ingredient list, numbered steps) instead of the reader text. Read from the page's schema.org Recipe markup at crawl time, or written by the AI from the reader text when the page has none; recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no ingredients and steps could be found.

product?

The structured product of an item whose card is product, for a product layout (photo gallery, brand, price as a number with its currency, availability, rating, SKU) instead of the card's short details. Read from the page's schema.org Product (JSON-LD or microdata) or Open Graph product tags at crawl time (Amazon from its buy box), or read by the AI from the reader text when the page has none (a price it gives must be written in that text); recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no name with a price or an image could be found. details and the card's other fields keep working as before.

enrich_status?string
Value in"none""pending""done""failed"
enriched_at?|
Formatdate-time
palette?array<>|

Main colours of the thumbnail, largest first

color_words?array<string>

Colour names for search, e.g. blue, teal

thumbnail_url?|

Card preview (JPEG, at most 640 px wide). A resizable image URL (see the API description): add ?width= to get a smaller copy. Expires after one to two hours, so refetch the item rather than caching the URL. For an image item that is a GIF or animated WebP it is still a still; animated_url is the original.

thumbnail_color?|

Dominant colour of the thumbnail as #rrggbb (the first palette colour); null without a palette.

animated_url?|

The original file of an image item that is a GIF or an animated WebP, for showing it moving (thumbnail_url is always a still). Null for every other item. Signed; expires after an hour, like thumbnail_url.

thumbnail_width?integer|null
thumbnail_height?|

Size of the thumbnail. For a link they can arrive before the image (from the size the page states for it), together with blurhash and thumbnail_color once the image is decoded, so a client can hold the card's shape and tint it while the image is stored.

thumbnail_status?string

Whether a preview is on its way. A link is pending from the moment it is saved until it has a thumbnail (done) or every job that could make one (the page's image, a PDF's first page, a screenshot) has ended without (failed; it never stays pending). Show "generating" while it is pending, nothing wrong for done or failed. A re-crawl of a link that has a thumbnail stays done while a new one is made. none for every other item until it gets a thumbnail, then done. Every move is an item.updated event.

Value in"none""pending""done""failed"
blurhash?|

Placeholder to draw while the thumbnail loads

crawl_status*string
Value in"none""pending""done""failed"
content_quality?string

How much of the page the crawl read. none: no usable text. partial: a paywall or truncation marker, a very short extraction beside a long page, or a page built by scripts; show a partial-text note and offer the original link. full: otherwise. Absent for items that are not article pages (cards, videos, files) and for items crawled before this existed; a re-crawl sets it.

Value in"full""partial""none"
reading_progress?

The caller's own place in the item (single reads only; absent when none was saved, and after a re-crawl replaced the text). Same values as GET /v1/items/{id}/progress.

word_count?integer

Length of the article text in words (Chinese, Japanese and Korean count one word per two characters). Absent for items that are not article pages and for items crawled before this existed; a re-crawl sets it. Present on lists and single reads.

Range1 <= value
reading_minutes?integer

round(word_count / 220), at least 1. Present whenever word_count is.

Range1 <= value
dir?string

Writing direction of the article: the page's <html dir>, else the language's, else the script of the text.

Value in"ltr""rtl"
excerpt?string

A clean one- or two-sentence lead taken from the article body (never the page's description or og:description), at most about 320 characters.

lead_image?

The recipe's photo, from schema.org Recipe.image, else the page's Open Graph image. url is the page's own address (not signed, may be hotlink-blocked; thumbnail_url is our copy). width/height come from the page's markup or, failing that, from the fetched file when the crawl stored the banner; absent while unknown, and for recipes saved before this field existed until they are re-crawled.

crawl_error?string

Set when crawl_status is failed: why, as a short code. http_ (the site refused, e.g. http_403, http_404), challenge (a bot check a browser did not get past either), blocked_address (the link points at a private network), timeout, dns (the site's name does not exist), refused (nothing answers at the address), tls (its certificate cannot be trusted), too_large, stand_in (the site kept serving another page), stuck (the crawl was still pending after 30 minutes, so it was given up), unsupported, no_browser or error.

crawled_at?|
Formatdate-time
capture_status?string

Where the screenshot and full-page archive are. none (never asked for), pending (queued; already set in the response that queued it, and for a new link from the moment it is saved when a capture will be made: Chrome is configured, the plan has archives and archive_pages or the save's archive says yes; the crawl then ends the wait with none if it will not capture after all), running (a worker has it), done, or failed. A re-capture goes back to pending while the previous copies stay available. Every move is an item.updated event.

Value in"none""pending""running""done""failed"
capture_error?string

Set when capture_status is failed: why, as a short code. timeout, capture_failed (the page could not be loaded or captured), store_failed, plan (the plan has no archives), storage_limit, unavailable (no browser is configured), crawl_failed (the link's page could not be read, so there was nothing to capture) or stuck (pending or running for over 30 minutes). A failed re-capture leaves the previous screenshot and archive in place.

captured_at?|

When the stored screenshot and archive were last written. Moves on a successful re-capture; null until the first one.

Formatdate-time
is_favourite*boolean
archived_at?|
Formatdate-time
completed_at?|

When a to-do was ticked off; null while it is open

Formatdate-time
change_seq*string

Sync position (int64 as string)

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
deleted_at?|

Set only when replaying a create for an item the caller has since deleted.

Formatdate-time
shared?boolean

True while the item has a public link that has not expired. Always false on someone else's item in a shared list. Turning sharing on or off, or changing the expiry, moves the item forward in sync; reaching the expiry does not, so compare share_expires_at with the time.

share_expires_at?|

When the public link expires; null when it never does or the item is not shared.

Formatdate-time
Example Request
curl -X POST 'https://example.com/v1/items/string/archive'
Example Response
{  "id": "string",  "kind": "link",  "source": "api",  "url": "string",  "domain": "string",  "title": "string",  "description": "string",  "content": "string",  "content_html": "string",  "note": "string",  "tags": [    "string"  ],  "image_url": "string",  "favicon_url": "string",  "author": "string",  "publisher": "string",  "published_at": "2019-08-24T14:15:22Z",  "lang": "en",  "ai_tags": [    "string"  ],  "ai_caption": "string",  "ocr_text": "string",  "objects": [    "string"  ],  "ai_summary": "string",  "summary_edited": true,  "card": "article",  "details": {    "property1": "string",    "property2": "string"  },  "recipe": {    "description": "string",    "image": {      "url": "http://example.com",      "width": 1,      "height": 1,      "color": "string",      "asset_id": "string",      "source_url": "http://example.com",      "alt": "string"    },    "yield": "string",    "prep_minutes": 1,    "cook_minutes": 1,    "total_minutes": 1,    "ingredients": [      {        "group": "string",        "text": "string"      }    ],    "steps": [      {        "group": "string",        "text": "string"      }    ]  },  "product": {    "name": "string",    "brand": "string",    "description": "string",    "price": {      "amount": 0,      "currency": "string",      "list_amount": 0    },    "availability": "in_stock",    "rating": {      "value": 0,      "count": 1    },    "images": [      "http://example.com"    ],    "image_refs": [      {        "url": "http://example.com",        "width": 1,        "height": 1,        "color": "string",        "asset_id": "string",        "source_url": "http://example.com",        "alt": "string"      }    ],    "sku": "string"  },  "enrich_status": "none",  "enriched_at": "2019-08-24T14:15:22Z",  "palette": [    {      "hex": "#1e50d2",      "lab": [        0,        0,        0      ],      "weight": 0    }  ],  "color_words": [    "string"  ],  "thumbnail_url": "string",  "thumbnail_color": "string",  "animated_url": "string",  "thumbnail_width": 0,  "thumbnail_height": 0,  "thumbnail_status": "none",  "blurhash": "string",  "crawl_status": "none",  "content_quality": "full",  "reading_progress": {    "progress": 0,    "percent": 0,    "offset": 0,    "anchor": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "word_count": 1,  "reading_minutes": 1,  "dir": "ltr",  "excerpt": "string",  "lead_image": {    "url": "http://example.com",    "width": 1,    "height": 1,    "color": "string",    "asset_id": "string",    "source_url": "http://example.com",    "alt": "string"  },  "crawl_error": "string",  "crawled_at": "2019-08-24T14:15:22Z",  "capture_status": "none",  "capture_error": "string",  "captured_at": "2019-08-24T14:15:22Z",  "is_favourite": true,  "archived_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "change_seq": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "shared": true,  "share_expires_at": "2019-08-24T14:15:22Z"}
POST
/v1/items/{id}/capture

For a note, quote or highlight that has a url. In one step the item becomes a link (kind link, card cleared so the AI classifies the page afresh), its page is crawled (crawl_status pending) and a screenshot and full-page archive are queued. The text body is moved into note (below any existing note, after a blank line), never dropped; the title, description, author, tags, lists, reminders and the rest stay. A link is simply archived, as archiveItem does (including its 409 item.crawl_in_progress while the crawl is pending, and the no-op for a capture already in flight); capture_status is pending in the response. 422 item.not_convertible for any other kind, or an item with no full http(s) url; 422 when the user already has another item with the same page; 402 when the plan has no archives (checked first, so the item is left as it was). Returns at once; item.updated and asset.attached follow as the crawl and capture finish, and a failure leaves a link with a failed crawl.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

id*string

Response Body

The item, already a link with its crawl pending

application/json
  1. response
id*string
kind*Kind
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
source*ItemSource

The client that saved an item. Items saved before this field existed are api.

Value in"api""web""cli""mobile""extension""singlefile""rss""import"
url?string|null
domain?string|null
title?string|null
description?string|null
content?|

Readable text. Lists, sync and search include it only for notes, quotes, highlights and to-dos (their body); links get it on single-item reads.

content_html?|

Readability HTML; only on single-item reads. Untrusted: sanitise it before rendering. Only the tags and attributes the web client renders are present, and every src and href is an absolute http(s) URL. Pictures copied into our storage have src set to a resizable image URL (add ?width= to resize). Those URLs expire after one hour, like thumbnail_url: read the item again for fresh ones; the server always signs them on read and never stores them. A picture that was not copied (over the 30-picture, 10 MB or 50 MB-per-article caps, animated, an unsupported format, or a failed download) keeps the page's own address.

note?string|null
tags*array<string>
image_url?string|null
favicon_url?|

An expiring URL of the site's icon, stored in our storage (a PNG of at most 64px, one per domain), so clients never load it from the site. Null until the worker has stored it, or when the site has no readable icon.

author?string|null
publisher?string|null
published_at?|
Formatdate-time
lang?|

BCP 47 tag of the item's text: the page's own (<html lang>, normalised) else detected from the article text. Null when unknown.

ai_tags?array<string>

Tags suggested by the AI, shown apart from the user's own tags

ai_caption?|

What an image or PDF preview shows

ocr_text?|

Text visible in the image; only on single-item reads

objects?array<string>

Things and brands visible in the image

ai_summary?|

The summary: written by the AI on request with POST /v1/items/{id}/summary, or by the user with updateItem's summary (see summary_edited)

summary_edited?boolean

True when the user wrote ai_summary (updateItem summary); POST /v1/items/{id}/summary then replaces it only with overwrite=true

card?|

The type-aware card the AI chose for a link, PDF or image; null when unclassified. Spotify, Apple Music and YouTube Music links are always music, set when the page is crawled, even with AI off. Items enriched before this existed get one on re-tag.

Value in"article""product""recipe""book""film""series""music""video""place""ticket""trip"null
details?|

A few fields for the card (e.g. price, cook_time, author; for films also rating and runtime; for music artist, album, year, duration as m:ss or h:mm:ss, and platform: Spotify, Apple Music or YouTube Music), at most 60 characters each. Plain text taken from the page by the AI, or for music links by the crawler: render it as text, never markup.

recipe?

The structured recipe of an item whose card is recipe, for a clean recipe layout (intro, yield and times, ingredient list, numbered steps) instead of the reader text. Read from the page's schema.org Recipe markup at crawl time, or written by the AI from the reader text when the page has none; recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no ingredients and steps could be found.

product?

The structured product of an item whose card is product, for a product layout (photo gallery, brand, price as a number with its currency, availability, rating, SKU) instead of the card's short details. Read from the page's schema.org Product (JSON-LD or microdata) or Open Graph product tags at crawl time (Amazon from its buy box), or read by the AI from the reader text when the page has none (a price it gives must be written in that text); recomputed when the item is crawled or re-tagged again. Absent (not null) for other items and when no name with a price or an image could be found. details and the card's other fields keep working as before.

enrich_status?string
Value in"none""pending""done""failed"
enriched_at?|
Formatdate-time
palette?array<>|

Main colours of the thumbnail, largest first

color_words?array<string>

Colour names for search, e.g. blue, teal

thumbnail_url?|

Card preview (JPEG, at most 640 px wide). A resizable image URL (see the API description): add ?width= to get a smaller copy. Expires after one to two hours, so refetch the item rather than caching the URL. For an image item that is a GIF or animated WebP it is still a still; animated_url is the original.

thumbnail_color?|

Dominant colour of the thumbnail as #rrggbb (the first palette colour); null without a palette.

animated_url?|

The original file of an image item that is a GIF or an animated WebP, for showing it moving (thumbnail_url is always a still). Null for every other item. Signed; expires after an hour, like thumbnail_url.

thumbnail_width?integer|null
thumbnail_height?|

Size of the thumbnail. For a link they can arrive before the image (from the size the page states for it), together with blurhash and thumbnail_color once the image is decoded, so a client can hold the card's shape and tint it while the image is stored.

thumbnail_status?string

Whether a preview is on its way. A link is pending from the moment it is saved until it has a thumbnail (done) or every job that could make one (the page's image, a PDF's first page, a screenshot) has ended without (failed; it never stays pending). Show "generating" while it is pending, nothing wrong for done or failed. A re-crawl of a link that has a thumbnail stays done while a new one is made. none for every other item until it gets a thumbnail, then done. Every move is an item.updated event.

Value in"none""pending""done""failed"
blurhash?|

Placeholder to draw while the thumbnail loads

crawl_status*string
Value in"none""pending""done""failed"
content_quality?string

How much of the page the crawl read. none: no usable text. partial: a paywall or truncation marker, a very short extraction beside a long page, or a page built by scripts; show a partial-text note and offer the original link. full: otherwise. Absent for items that are not article pages (cards, videos, files) and for items crawled before this existed; a re-crawl sets it.

Value in"full""partial""none"
reading_progress?

The caller's own place in the item (single reads only; absent when none was saved, and after a re-crawl replaced the text). Same values as GET /v1/items/{id}/progress.

word_count?integer

Length of the article text in words (Chinese, Japanese and Korean count one word per two characters). Absent for items that are not article pages and for items crawled before this existed; a re-crawl sets it. Present on lists and single reads.

Range1 <= value
reading_minutes?integer

round(word_count / 220), at least 1. Present whenever word_count is.

Range1 <= value
dir?string

Writing direction of the article: the page's <html dir>, else the language's, else the script of the text.

Value in"ltr""rtl"
excerpt?string

A clean one- or two-sentence lead taken from the article body (never the page's description or og:description), at most about 320 characters.

lead_image?

The recipe's photo, from schema.org Recipe.image, else the page's Open Graph image. url is the page's own address (not signed, may be hotlink-blocked; thumbnail_url is our copy). width/height come from the page's markup or, failing that, from the fetched file when the crawl stored the banner; absent while unknown, and for recipes saved before this field existed until they are re-crawled.

crawl_error?string

Set when crawl_status is failed: why, as a short code. http_ (the site refused, e.g. http_403, http_404), challenge (a bot check a browser did not get past either), blocked_address (the link points at a private network), timeout, dns (the site's name does not exist), refused (nothing answers at the address), tls (its certificate cannot be trusted), too_large, stand_in (the site kept serving another page), stuck (the crawl was still pending after 30 minutes, so it was given up), unsupported, no_browser or error.

crawled_at?|
Formatdate-time
capture_status?string

Where the screenshot and full-page archive are. none (never asked for), pending (queued; already set in the response that queued it, and for a new link from the moment it is saved when a capture will be made: Chrome is configured, the plan has archives and archive_pages or the save's archive says yes; the crawl then ends the wait with none if it will not capture after all), running (a worker has it), done, or failed. A re-capture goes back to pending while the previous copies stay available. Every move is an item.updated event.

Value in"none""pending""running""done""failed"
capture_error?string

Set when capture_status is failed: why, as a short code. timeout, capture_failed (the page could not be loaded or captured), store_failed, plan (the plan has no archives), storage_limit, unavailable (no browser is configured), crawl_failed (the link's page could not be read, so there was nothing to capture) or stuck (pending or running for over 30 minutes). A failed re-capture leaves the previous screenshot and archive in place.

captured_at?|

When the stored screenshot and archive were last written. Moves on a successful re-capture; null until the first one.

Formatdate-time
is_favourite*boolean
archived_at?|
Formatdate-time
completed_at?|

When a to-do was ticked off; null while it is open

Formatdate-time
change_seq*string

Sync position (int64 as string)

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
deleted_at?|

Set only when replaying a create for an item the caller has since deleted.

Formatdate-time
shared?boolean

True while the item has a public link that has not expired. Always false on someone else's item in a shared list. Turning sharing on or off, or changing the expiry, moves the item forward in sync; reaching the expiry does not, so compare share_expires_at with the time.

share_expires_at?|

When the public link expires; null when it never does or the item is not shared.

Formatdate-time
Example Request
curl -X POST 'https://example.com/v1/items/string/capture'
Example Response
{  "id": "string",  "kind": "link",  "source": "api",  "url": "string",  "domain": "string",  "title": "string",  "description": "string",  "content": "string",  "content_html": "string",  "note": "string",  "tags": [    "string"  ],  "image_url": "string",  "favicon_url": "string",  "author": "string",  "publisher": "string",  "published_at": "2019-08-24T14:15:22Z",  "lang": "en",  "ai_tags": [    "string"  ],  "ai_caption": "string",  "ocr_text": "string",  "objects": [    "string"  ],  "ai_summary": "string",  "summary_edited": true,  "card": "article",  "details": {    "property1": "string",    "property2": "string"  },  "recipe": {    "description": "string",    "image": {      "url": "http://example.com",      "width": 1,      "height": 1,      "color": "string",      "asset_id": "string",      "source_url": "http://example.com",      "alt": "string"    },    "yield": "string",    "prep_minutes": 1,    "cook_minutes": 1,    "total_minutes": 1,    "ingredients": [      {        "group": "string",        "text": "string"      }    ],    "steps": [      {        "group": "string",        "text": "string"      }    ]  },  "product": {    "name": "string",    "brand": "string",    "description": "string",    "price": {      "amount": 0,      "currency": "string",      "list_amount": 0    },    "availability": "in_stock",    "rating": {      "value": 0,      "count": 1    },    "images": [      "http://example.com"    ],    "image_refs": [      {        "url": "http://example.com",        "width": 1,        "height": 1,        "color": "string",        "asset_id": "string",        "source_url": "http://example.com",        "alt": "string"      }    ],    "sku": "string"  },  "enrich_status": "none",  "enriched_at": "2019-08-24T14:15:22Z",  "palette": [    {      "hex": "#1e50d2",      "lab": [        0,        0,        0      ],      "weight": 0    }  ],  "color_words": [    "string"  ],  "thumbnail_url": "string",  "thumbnail_color": "string",  "animated_url": "string",  "thumbnail_width": 0,  "thumbnail_height": 0,  "thumbnail_status": "none",  "blurhash": "string",  "crawl_status": "none",  "content_quality": "full",  "reading_progress": {    "progress": 0,    "percent": 0,    "offset": 0,    "anchor": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "word_count": 1,  "reading_minutes": 1,  "dir": "ltr",  "excerpt": "string",  "lead_image": {    "url": "http://example.com",    "width": 1,    "height": 1,    "color": "string",    "asset_id": "string",    "source_url": "http://example.com",    "alt": "string"  },  "crawl_error": "string",  "crawled_at": "2019-08-24T14:15:22Z",  "capture_status": "none",  "capture_error": "string",  "captured_at": "2019-08-24T14:15:22Z",  "is_favourite": true,  "archived_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "change_seq": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "shared": true,  "share_expires_at": "2019-08-24T14:15:22Z"}
GET
/v1/items/{id}/progress

Each reader has their own place: the item's owner, and the owner or accepted members of a list the item is in. Anyone else gets 404, as for a deleted item. An API key needs read access to items.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

id*string

Response Body

The saved place, or offset 0 with nulls when none was saved

application/json
  1. response
item_id*string
offset*integer

Character offset into the item's text. 0 when nothing was saved.

Range0 <= value
anchor*|

A short passage at the offset, to find the place again if the text changes.

Lengthlength <= 500
percent*|
Range0 <= value <= 100
progress*|

How far through the item the reader is, as a fraction. The same measure as percent, kept at full precision; null when the client that saved the place sent neither.

Range0 <= value <= 1
updated_at*|

When it was saved; null when it never was.

Formatdate-time
Example Request
curl -X GET 'https://example.com/v1/items/string/progress'
Example Response
{  "item_id": "string",  "offset": 0,  "anchor": "string",  "percent": 0,  "progress": 0,  "updated_at": "2019-08-24T14:15:22Z"}
PUT
/v1/items/{id}/progress

Replaces the caller's place in the item (the last save wins; anchor, percent and progress left out are cleared). Send offset, progress or both. progress (0 to 1) and percent (0 to 100) are one measure: the one you leave out is derived from the other. With progress and no offset, the offset is that fraction of the item's text, so a client that reads offsets lands in the same place. Clients should debounce saves (a few seconds after scrolling stops). A re-crawl that replaces the item's text clears every reader's place. Allowed while the library is read-only over its plan's limits. An API key needs write access to items.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

id*string

Request Body

application/json
  1. body
offset*integer
Range0 <= value
progress?number

Fraction of the item read.

Range0 <= value <= 1
anchor?string

Blank is saved as null.

Lengthlength <= 500
percent?integer
Range0 <= value <= 100

Response Body

Saved

application/json
  1. response
item_id*string
offset*integer

Character offset into the item's text. 0 when nothing was saved.

Range0 <= value
anchor*|

A short passage at the offset, to find the place again if the text changes.

Lengthlength <= 500
percent*|
Range0 <= value <= 100
progress*|

How far through the item the reader is, as a fraction. The same measure as percent, kept at full precision; null when the client that saved the place sent neither.

Range0 <= value <= 1
updated_at*|

When it was saved; null when it never was.

Formatdate-time
Example Request
curl -X PUT 'https://example.com/v1/items/string/progress' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "item_id": "string",  "offset": 0,  "anchor": "string",  "percent": 0,  "progress": 0,  "updated_at": "2019-08-24T14:15:22Z"}