Skip to content
Skip to Content
DevelopersAPI referenceSerendipity

Keep a card

POST
/v1/serendipity/{id}/keep

Hides the item from the stack for 30 days, then 90, 180 and a year each further time it is kept. Repeating it changes nothing. A card that was already archived or deleted answers 409.

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

id*string

Response Body

The card's item and its new state

application/json
  1. response
item_id*string
state*string
Value in"kept""archived""deleted"
Example Request
curl -X POST 'https://example.com/v1/serendipity/string/keep'
Example Response
{  "item_id": "string",  "state": "kept"}