DevelopersAPI referenceSerendipity
Archive a card's item
POST
Archives the item and records the decision. Repeating the same decision is safe; a different decision for the same card answers 409.
bearerheader
AuthorizationBearer <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.
id*stringThe card's item and its new state
application/json- response
item_id*stringstate*stringValue in
"kept""archived""deleted"curl -X POST 'https://example.com/v1/serendipity/string/archive'Example Response
{ "item_id": "string", "state": "kept"}Keep a card POST
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.
Delete a card's item POST
Deletes the item and records the decision. Repeating the same decision is safe; a different decision for the same card answers 409.