Get one of the caller's annotations
404 for someone else's annotation, or one on an item the caller can no longer read.
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.
annotationID*stringThe annotation, with its item
application/json- response
id*stringitem_id*stringtext*stringThe marked passage.
prefix*stringThe words just before the passage, to find it again; may be empty.
suffix*stringThe words just after the passage; may be empty.
offset*|Where the passage was in the item's text when it was marked.
0 <= valuecolor*AnnotationColor"yellow""yellow""green""blue""pink"note*string|nullcreated_at*stringdate-timeupdated_at*stringdate-timeitem?The item it is in. In lists across items and single reads; left out in an item's own list.
curl -X GET 'https://example.com/v1/annotations/string'{ "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" }}List the caller's annotations across items GET
Newest first, each with the item it is in, on items the caller can still read. An API key needs read access to `items`.
Change an annotation's colour or note PATCH
Fields left out stay as they are; a blank `note` clears it. The passage cannot change: marking another passage is a new annotation. Refused while the library is read-only over its plan's limits.