/api/orgs/{org_id}/retention/keeps/{kind}/{target}Keep or release an item
A kept request (or every request of a kept session) is not deleted by expiry. Only stored content can be kept. Turning storage off or deleting content still removes it. Any member or key.
Authentication: Bearer API key in the Authorization header
Path parameters
org_idstringrequiredYour organization id (uuid).
GET /api/whoamireturns it.kindenumrequiredrequestorsession.targetstringrequiredThe request id or session id.
Request body
keepbooleanrequired
Responses
200Keep state.
Response
kindenumidstringkeptbooleankept_atstring | nullkept_by_emailstring | nullexpires_atstring | nullWhen its content expires; null while it is kept or has no expiry.
storedbooleanWhether content is stored for it.
401Missing, unknown or revoked API key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404The resource does not exist or belongs to another organization.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
409Nothing is stored for this item (
not_stored), or a contract fixes expiry.Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
Request
curl -X PUT 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/retention/keeps/request/req_01JD8ZK4M2Q7V9X3N5T6B8C0EF' \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"keep": true
}'Response
{
"kind": "request",
"id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF",
"kept": true,
"kept_at": "2026-11-18T14:40:00Z",
"kept_by_email": "ana@example.com",
"expires_at": null,
"stored": true
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/retention/keeps/request/req_01JD8ZK4M2Q7V9X3N5T6B8C0EF