Deploy

The `Deploy` entity.

Definition

TypeScript
interface Deploy {
  id: string;
  workspaceId: string;
  entityId: string;
  sequenceNumber: number;
  buildId: string | null;
  status: "pending" | "failed" | "running" | "completed" | "cancelled";
  trigger: "manual" | "auto" | "rollback";
  sourceEventId: string | null;
  productionUrl: string | null;
  previewUrl: string | null;
  error: string | null;
  metadata: Record<string, unknown> | null;
  createdBy: string | null;
  startedAt: string | null;
  completedAt: string | null;
  createdAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
workspaceIdstringrequired — Workspace that owns this deploy.
entityIdstringrequired — Prefixed ID of the entity being deployed (app, function, element version, etc.).
sequenceNumbernumberrequired — Monotonically-increasing deploy number for the target entity.
buildIdstring | nullrequired — Build whose artifacts this deploy is shipping, if any.
status"pending" | "failed" | "running" | "completed" | "cancelled"required — Deploy lifecycle (queued, running, succeeded, failed, cancelled).
trigger"manual" | "auto" | "rollback"required — What initiated the deploy (user action, automatic build completion, etc.).
sourceEventIdstring | nullrequired — ID of the event that triggered the deploy, when applicable.
productionUrlstring | nullrequired — Canonical production URL for this deploy, if it went live.
previewUrlstring | nullrequired — Immutable per-deploy preview URL, if one was generated.
errorstring | nullrequired — Error message when the deploy failed, otherwise null.
metadataRecord<string, unknown> | nullrequired — Free-form deploy metadata.
createdBystring | nullrequired — User who started the deploy; null for system-triggered deploys.
startedAtstring | nullrequired — ISO-8601 timestamp when the deploy began executing.
completedAtstring | nullrequired — ISO-8601 timestamp when the deploy finished.
createdAtstringreadonly required — ISO-8601 timestamp of creation.