Team

The `Team` entity.

Definition

TypeScript
interface Team {
  id: string;
  organizationId: string;
  name: string;
  handle: string;
  createdBy: string | null;
  deletedAt: string | null;
  deletedBy: string | null;
  retentionTier: "short" | "medium" | "long" | "none" | null;
  createdAt: string;
  updatedAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
organizationIdstringrequired — Organization that owns the team. A team can be granted access to any workspace within its parent org via a permission row.
namestringrequired — Human-readable team name.
handlestringrequired — Org-unique team handle.
createdBystring | nullrequired — User who created the team (null if user has been deleted).
deletedAtstring | nullrequired — Set when the team is soft-deleted; null while active.
deletedBystring | nullrequired — User who soft-deleted the team.
retentionTier"short" | "medium" | "long" | "none" | nullrequired — Retention horizon after soft-delete (short ~7d, medium ~30d, long ~90d, none keeps forever). Null when active.
createdAtstringreadonly required — ISO-8601 timestamp of creation.
updatedAtstringreadonly required — ISO-8601 timestamp of the last modification.