/api/orgs/{org_id}/retentionGet retention settings
How long stored prompts and responses are kept: the default expiry, overrides, key caps, keep counts and the plan's limits. Any member or key.
Authentication: Bearer API key in the Authorization header
Path parameters
org_idstringrequiredYour organization id (uuid).
GET /api/whoamireturns it.
Responses
200Settings.
Response
storage_onbooleanWhether the organization stores prompts and responses.
default_daysinteger | nullDays until stored content expires; null keeps it while storage is on.
min_daysintegerplan_max_daysinteger | nullThe plan's longest expiry; null for no maximum.
planstringpaid_retentionobjectpaid_retention
activebooleanupgrade_max_daysinteger | nullupgrade_hrefstring
fixed_retention_daysinteger | nullSet when a written contract fixes expiry; the other settings are then read-only.
overridesarray<object>overrides
idstringscopeenumtargetstringtarget_labelstringdaysintegercreated_atstring
key_capsintegerKeys with their own expiry cap.
keepsobjectkeeps
requestsintegersessionsinteger
archiveobjectThe archive of content for Experiential's own use. Not offered yet.
archive
offeredbooleanopted_inbooleanexcluded_becausearray<string>default_onboolean
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' \
-H "Authorization: Bearer <YOUR_API_KEY>"Response
{
"storage_on": true,
"default_days": 30,
"min_days": 1,
"plan_max_days": 90,
"plan": "pro",
"paid_retention": {
"active": true,
"upgrade_max_days": 365,
"upgrade_href": "/credits?upgrade=pro"
},
"fixed_retention_days": null,
"overrides": [
{
"id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
"scope": "project",
"target": "evals",
"target_label": "evals",
"days": 7,
"created_at": "2026-11-18T14:32:07Z"
}
],
"key_caps": 1,
"keeps": {
"requests": 3,
"sessions": 1
},
"archive": {
"offered": false,
"opted_in": false,
"excluded_because": [],
"default_on": false
}
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/retention