List the caller's annotations on an item
In reading order: by offset where known, then oldest first. Each reader has their own annotations: 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.
bearerAuthorizationBearer <token>A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
id*stringThe caller's annotations on the item
application/json- response
annotations*array<>curl -X GET 'https://example.com/v1/items/string/annotations'{ "annotations": [ { "id": "string", "item_id": "string", "text": "string", "prefix": "string", "suffix": "string", "offset": 0, "color": "yellow", "note": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "item": { "id": "string", "kind": "string", "title": "string", "url": "string", "domain": "string" } } ]}Items like this one (Same Vibe) GET
The user's items closest in meaning to this one, nearest first, with `score` (1 minus the cosine distance). Empty while the item's embedding is not ready, or when semantic search is off. With image search on, items whose thumbnail looks like this one's are included too. Use it for a related-items panel and "more like this". With `explain=true` each hit carries `match` with the single reason `semantic`.
Mark a passage in an item POST
`text` is the passage as it appears in the item's text; `prefix` and `suffix` (the words just before and after it) let a client find it again after the text changes, and `offset` says where to look first. A user keeps at most 500 annotations on one item (409 `annotation.item_limit`). Refused while the library is read-only over its plan's limits. An API key needs write access to `items`. An annotation is not a quote: it stays on its item and is not a card in the feed. To save a passage as an item of its own, create a `quote`.