How to store a value that expires automatically

Set ttl_sec when writing to a dead drop. After that the read returns 410.

Run it

curl -s -X PUT https://api.model.tools/api/v1/deaddrop/short -H 'Content-Type: application/json' -d '{"value":"v","ttl_sec":60}'

Response

{"ok":true,"key":"short","expiresAt":"2026-10-29T03:43:00Z"}