Skip to content
Skip to Content
DevelopersAPI referenceSerendipity

Archive a card's item

POST
/v1/serendipity/{id}/archive

Archives the item and records the decision. Repeating the same decision is safe; a different decision for the same card 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/archive'
Example Response
{  "item_id": "string",  "state": "kept"}