Strand AI applies a time-to-live (TTL) policy to uploaded slides and the marker predictions derived from them. The policy is configurable per organization and overridable per sample.Documentation Index
Fetch the complete documentation index at: https://docs.strandai.com/llms.txt
Use this file to discover all available pages before exploring further.
Org-default retention
Every org has a default retention window (in days) set by an admin. When you upload a slide, itsexpires_at is computed once as created_at + default_retention_days and stored on the sample. The setting is off by
default — samples live indefinitely until an admin sets a policy.
Changing the org policy retroactively recomputes
expires_at on samples
that are still on the org default. It does not touch samples you have
explicitly pinned.The archive → delete lifecycle
A nightly job sweeps the platform and does two things:- Auto-archive samples whose
expires_at < now(). Archived samples are hidden from the active list but still queryable from the Archived tab on/samples. - Hard-delete archived samples whose
archived_atis older than 7 days. This deletes the underlying GCS blobs, marker predictions, and run rows — financial records (credit transactions, usage logs) are preserved with the sample reference nulled.
Per-sample overrides
You can override the org default on any sample you can edit (sample creator, org owner/admin, or Strand admin). Two modes:- Pin to a specific date —
expires_atis set to your chosen date and taggedsource = 'override'. - Pin indefinitely —
expires_atis cleared but the sample is taggedsource = 'override'so future org-policy changes don’t touch it.
useOrgDefault: true) — it recomputes expires_at from the current policy and tags the
sample source = 'org_default' again.
Restoring an archived sample
From/samples?view=archived, click Restore on any archived sample
within the 7-day grace window. Restoring:
- Clears
archived_at. - Bumps
expires_atto at least 30 days from now so the reaper doesn’t immediately re-archive it. - Writes a
sample_restorerow to the retention history.
Permissions
| Action | Allowed for |
|---|---|
| Change org default retention | Strand admins (via /admin) |
| Override / pin a single sample | Sample creator · org owner/admin · Strand admin |
| Bulk override (≤ 500) | Sample creator · org owner/admin · Strand admin |
| Restore from archive | Sample creator · org owner/admin · Strand admin |
API examples
Email notifications
Two retention-related emails are sent (both opt-out under Account → Email preferences):- Weekly digest — Mondays at 13:00 UTC. One email per org owner/admin listing samples that expire in the next 7 days.
- Policy-change notice — sent whenever an admin shortens the org retention policy in a way that creates near-term expiries (< 30 days). Goes to every org member so they can pin samples they need to keep.