UI Inspect
API Reference

Baselines

API endpoints for managing baseline images — the reference point for visual comparisons.

Baselines are the "golden" reference screenshots that new captures are compared against.

baseline.list

List baselines for a specific project.

TypeQuery
AuthProtected

Input:

{
  projectId: string;
}

baseline.listAll

List all baselines across all projects with optional status filter.

TypeQuery
AuthProtected

Input:

{
  status?: "approved" | "pending" | "rejected";
}

baseline.get

Get a specific baseline by project and component name.

TypeQuery
AuthProtected

Input:

{
  projectId: string;
  componentName: string;
}

baseline.set

Create or update a baseline image.

TypeMutation
AuthProtected

Input:

{
  projectId: string;
  componentName: string;
  imageUrl?: string;
  imageHash?: string;
}

baseline.batchApprove

Approve multiple pending baselines at once.

TypeMutation
AuthProtected

Input:

{ ids: string[] }

baseline.batchReject

Reject multiple pending baselines.

TypeMutation
AuthProtected

Input:

{ ids: string[] }

baseline.promoteBranch

Promote all approved baselines from one branch to another (typically feature → main).

TypeMutation
AuthProtected

Input:

{
  projectId: string;
  fromBranch: string;
  toBranch?: string;   // Defaults to "main"
}

Response:

{
  promoted: number;
} // Count of promoted baselines

baseline.delete

Delete a baseline.

TypeMutation
AuthProtected

Input:

{
  id: string;
}

On this page