Skip to main content

Organizations

An organization is one of your end customers: the thing an event's organization_id names. You send your own id for it, and Santati resolves it to a row owned by your team, which gives retention, data residency and legal hold somewhere to live instead of a free-text string on every event.

Because an organization is the anchor for retention, it is permanent: events point at it, so it cannot be deleted once created.

Resolving an organization from an event​

The organization_id on an envelope is required on the direct API path. The first time an event names an id your team has not seen, Santati creates the organization, names it after the id, and gives it the retention your plan includes.

That auto-creation is a per-team setting, on by default. Turn it off in the app (Audit Log → Organizations, as a team admin) and ingest stops minting customers: an id with no matching organization is rejected instead, with 400 and:

{
"error": {
"code": "unknown_organization",
"message": "Unknown organization 'org_acme'.",
"field": "organization_id"
}
}

A team that turns it off reconciles ingest against its own customer list, so a typo in organization_id is a rejection rather than a phantom customer. An id is matched exactly, after trimming whitespace and clipping to 255 characters.

Relayed events are the one exception: that path always resolves or creates the organization, because rejecting a relayed event would cost the whole trail.

Reading organizations​

GET /api/v0/organizations/ (Organizations list) lists your team's organizations, newest first, with the same cursor pagination as every other list endpoint (limit defaults to 100, capped at 1000; no count). Any team key may read it; there is no way to create or edit an organization over the API.

FieldMeaning
idSantati's id for the organization, used in the app's URLs.
external_idYour id for the customer: the value you put in organization_id. Unique per team.
nameA display name; it defaults to the external id when the organization was auto-created.
retention_monthsHow long this customer's events are kept; 0 means forever.
regionThe region this customer is pinned to; empty means the deployment default.
legal_holdWhether retention is currently suspended for this customer.
created_atWhen the organization first appeared.
curl -sS "https://api.santati.io/api/v0/organizations/?limit=100" \
-H "Authorization: Api-Key $SANTATI_API_KEY"
{
"next": null,
"previous": null,
"results": [
{
"id": "0192f6b0-0e5c-7f81-9a37-4b6d2e8c1f05",
"external_id": "org_acme",
"name": "Acme Corporation",
"retention_months": 84,
"region": "us-east",
"legal_hold": false,
"created_at": "2026-08-14T09:12:44.518290Z"
}
]
}

Retention​

Each organization carries its own retention_months window, measured from the producer's timestamp on each event, and expired events are deleted by a purge job. The window is a policy you can only extend:

  • A new organization defaults to 12 months, capped by your plan's ceiling; one created automatically at ingest starts the same way. On a paid plan the events you keep are what you pay for, so a longer window is yours to choose.
  • 0 means keep forever, and it outranks any finite window.
  • Shortening a window is refused, whatever the direction — including switching "forever" back to a number of months.
  • The ceiling comes from your plan: 1 month on Free, 12 on Starter, 36 (3 years) on Growth and 84 (7 years) on Enterprise.

Extending a window also moves the expiry of events already stored for that organization, so tomorrow's purge does not delete them on the old, shorter policy.

A legal hold suspends retention. It can cover one organization, or a matched set of events defined by trail, event type, actor id or a time range. A held event is never purged, whatever its expiry date says, until every hold that covers it has been released.

Holds are never deleted — releasing one records who released it and when — so the hold history is available to an auditor. The organization's legal_hold flag tracks its organization-scope holds; a matched-event-set hold is recorded against the events it covers instead.

Regions​

Santati currently hosts one region, us-east, and a trail created without a region uses it. A region name that is not available is refused rather than silently replaced. For another region or dedicated infrastructure, contact sales about Enterprise.

An organization's region records which region its customer is pinned to, and the app can provision that customer's trail inside it. Trail list returns each trail's region and its region-specific ingest_url.

Managing organizations in the app​

Audit Log → Organizations shows every organization with its retention, region and legal-hold state, and is where team admins:

  • add a customer by hand, with its own name, retention and region;
  • extend a retention window or set a legal hold, and release it again;
  • provision a customer's trail in its region;
  • turn automatic creation on or off.