/api/orgs/{org_id}/retention/keeps/{kind}/{target}Check whether an item is kept
Whether a request or session is kept, and when its content expires.
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.
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).
Request
curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/retention/keeps/request/req_01JD8ZK4M2Q7V9X3N5T6B8C0EF' \
-H "Authorization: Bearer <YOUR_API_KEY>"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