Skip to content
Skip to Content
Full reference

Sharing

GET
/v1/items/{id}/share

404 (share.not_found) when the item is not shared or its link has expired. Cheap; call it when the preview opens, or read shared on the item.

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 link

application/json
  1. response
token*string

The secret in the link (22 characters). Owner only.

url*string

The web page of the link: WEB_URL/s/{token}

expires_at*|

Null means never

Formatdate-time
created_at*string

When this URL was made (a rotation keeps it)

Formatdate-time
view_count*integer

Times the link was opened

Example Request
curl -X GET 'https://example.com/v1/items/string/share'
Example Response
{  "token": "string",  "url": "string",  "expires_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "view_count": 0}

Stop sharing the item

DELETE
/v1/items/{id}/share

The link stops working at once and for good (404 for anyone who opens it). Idempotent.

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 is private

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

Turns the public link on, or changes the expiry of the link that is on without changing its URL. With no body or no expires_at, a new link never expires and an existing one keeps its expiry; null means never. An expired link is replaced by a new URL. 402 when the plan lacks sharing or is at its public_links limit; 422 for an expiry that is not in the future (in_past) or more than 365 days ahead (too_far_ahead).

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
expires_at?|

RFC 3339. In the future and at most 365 days ahead; null means never. Leave it out to keep the current expiry.

Formatdate-time

Response Body

The link

application/json
  1. response
token*string

The secret in the link (22 characters). Owner only.

url*string

The web page of the link: WEB_URL/s/{token}

expires_at*|

Null means never

Formatdate-time
created_at*string

When this URL was made (a rotation keeps it)

Formatdate-time
view_count*integer

Times the link was opened

Example Request
curl -X PUT 'https://example.com/v1/items/string/share' \  -H 'Content-Type: application/json' \  -d '{  "expires_at": "2026-12-31T18:00:00Z"}'
Example Response
{  "token": "string",  "url": "string",  "expires_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "view_count": 0}
POST
/v1/items/{id}/share/rotate

The old URL stops working at once; the expiry is kept. 404 when the item is not shared.

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 link

application/json
  1. response
token*string

The secret in the link (22 characters). Owner only.

url*string

The web page of the link: WEB_URL/s/{token}

expires_at*|

Null means never

Formatdate-time
created_at*string

When this URL was made (a rotation keeps it)

Formatdate-time
view_count*integer

Times the link was opened

Example Request
curl -X POST 'https://example.com/v1/items/string/share/rotate'
Example Response
{  "token": "string",  "url": "string",  "expires_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "view_count": 0}
GET
/public/items/{token}

No sign-in. Read only, and only what is safe to show: no note, tags, AI output, lists, reminders or owner details. File URLs are signed for 10 minutes and only for the item's own file and thumbnail. An unknown, malformed or revoked token, or one whose item or owner's account is deleted, is 404 (share.not_found); an expired link is 410 (share.expired). Rate limited per IP and per link. Sent with Cache-Control: private, no-store, X-Robots-Tag: noindex, nofollow and Referrer-Policy: no-referrer.

Path Parameters

token*string

Response Body

The item

application/json
  1. response
kind*Kind
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
url?string|null
domain?string|null
title?string|null
description?string|null
text?|

The body, for notes, quotes, highlights and to-dos only

author?string|null
publisher?string|null
published_at?|
Formatdate-time
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.

thumbnail_url?|

Signed; expires after 10 minutes

thumbnail_width?integer|null
thumbnail_height?integer|null
blurhash?string|null
file_url?|

The item's own file (the uploaded image, animated or not, or the PDF), signed for 10 minutes. Null for links, notes and quotes.

file_type?|

Content type of file_url

created_at*string
Formatdate-time
expires_at*|

When the link stops working; null means never

Formatdate-time
Example Request
curl -X GET 'https://example.com/public/items/string'
Example Response
{  "kind": "link",  "url": "string",  "domain": "string",  "title": "string",  "description": "string",  "text": "string",  "author": "string",  "publisher": "string",  "published_at": "2019-08-24T14:15:22Z",  "image_url": "string",  "favicon_url": "string",  "thumbnail_url": "string",  "thumbnail_width": 0,  "thumbnail_height": 0,  "blurhash": "string",  "file_url": "string",  "file_type": "string",  "created_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z"}