Workspace

The `Workspace` entity.

Definition

TypeScript
interface Workspace {
  id: string;
  organizationId: string;
  name: string;
  handle: string;
  ownerId: string;
  defaultServiceUserId: string | null;
  deletedAt: string | null;
  retentionTier: "short" | "medium" | "long" | "none" | null;
  createdAt: string;
  updatedAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
organizationIdstringrequired — Organization the workspace belongs to (immutable after creation).
namestringrequired — Human-readable workspace name.
handlestringrequired — Unique workspace handle used in URLs and the workspace email address.
ownerIdstringrequired — User who owns the workspace.
defaultServiceUserIdstring | nullrequired — Default headless caller identity for runs initiated without a human user (triggers, webhooks, cron, email ingest). Null briefly between workspace creation and the workspace.created handler running. Additional service users beyond the default can be created by workspace admins.
deletedAtstring | nullrequired — ISO-8601 timestamp of soft-delete; null while active. Cleanup worker hard-deletes once deletedAt + retentionTier.days passes.
retentionTier"short" | "medium" | "long" | "none" | nullrequired — Retention tier snapshotted at delete time. short=7d, medium=30d, long=90d, none=never. Null while active.
createdAtstringreadonly required — ISO-8601 timestamp of creation.
updatedAtstringreadonly required — ISO-8601 timestamp of the last update.