Sleevy

Record a saved item as opened

Record that the person opened this Saved Item, which also marks it read. Use this rather than `POST /read` when the person actually followed the link, so the Open is recorded as well as the read state.

POST/v1/saved-items/{id}/open

Record that the person opened this Saved Item, which also marks it read. Use this rather than POST /read when the person actually followed the link, so the Open is recorded as well as the read state.

AuthorizationBearer <token>

Personal API Key or App Session bearer token.

In: header

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

A unique value identifying this write. The first response for a given key is recorded for 24 hours and replayed for every later request that repeats it, so a retry after a timeout cannot create a duplicate. Replayed responses carry Idempotent-Replay: true. A key whose original request is still running gets 409. Use a UUID or a ULID, and reuse a key only when retrying the same request.

Lengthlength <= 255

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/saved-items/string/open" \  -H "Idempotency-Key: 8f14e45f-ea4e-4a1f-9c2b-6f0a1d3c5e77"
{  "id": "string",  "originalUrl": "string",  "normalizedUrl": "string",  "host": "string",  "title": "string",  "description": "string",  "siteName": "string",  "faviconUrl": "string",  "faviconLightUrl": "string",  "faviconDarkUrl": "string",  "imageUrl": "string",  "canonicalUrl": "string",  "authorName": "string",  "authorHandle": "string",  "authorAvatarUrl": "string",  "previewSummary": "string",  "type": "article",  "tags": [    "ai"  ],  "enrichmentStatus": "pending",  "sourceName": "string",  "captureChannel": "chrome-extension",  "folder": {    "id": "string",    "name": "string",    "emoji": "string",    "color": "string",    "isPublished": true  },  "isRead": true,  "hasReadableContent": true,  "lastSavedAt": "string",  "createdAt": "string",  "updatedAt": "string"}
{  "_tag": "Unauthorized",  "message": "string"}
{  "_tag": "SavedItemNotFoundError",  "message": "string",  "savedItemId": "string"}
{  "_tag": "RateLimitExceeded",  "message": "string"}