Skip to content
Skip to Content
DevelopersAPI referenceAnnotations

Get one of the caller's annotations

GET
/v1/annotations/{annotationID}

404 for someone else's annotation, or one on an item the caller can no longer read.

Authorization

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

Path Parameters

annotationID*string

Response Body

The annotation, with its item

application/json
  1. response
id*string
item_id*string
text*string

The marked passage.

prefix*string

The words just before the passage, to find it again; may be empty.

suffix*string

The words just after the passage; may be empty.

offset*|

Where the passage was in the item's text when it was marked.

Range0 <= value
color*AnnotationColor
Default"yellow"
Value in"yellow""green""blue""pink"
note*string|null
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
item?

The item it is in. In lists across items and single reads; left out in an item's own list.

Example Request
curl -X GET 'https://example.com/v1/annotations/string'
Example Response
{  "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"  }}