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.
| Type | Query |
| Auth | Protected |
Input:
{
projectId: string;
}baseline.listAll
List all baselines across all projects with optional status filter.
| Type | Query |
| Auth | Protected |
Input:
{
status?: "approved" | "pending" | "rejected";
}baseline.get
Get a specific baseline by project and component name.
| Type | Query |
| Auth | Protected |
Input:
{
projectId: string;
componentName: string;
}baseline.set
Create or update a baseline image.
| Type | Mutation |
| Auth | Protected |
Input:
{
projectId: string;
componentName: string;
imageUrl?: string;
imageHash?: string;
}baseline.batchApprove
Approve multiple pending baselines at once.
| Type | Mutation |
| Auth | Protected |
Input:
{ ids: string[] }baseline.batchReject
Reject multiple pending baselines.
| Type | Mutation |
| Auth | Protected |
Input:
{ ids: string[] }baseline.promoteBranch
Promote all approved baselines from one branch to another (typically feature → main).
| Type | Mutation |
| Auth | Protected |
Input:
{
projectId: string;
fromBranch: string;
toBranch?: string; // Defaults to "main"
}Response:
{
promoted: number;
} // Count of promoted baselinesbaseline.delete
Delete a baseline.
| Type | Mutation |
| Auth | Protected |
Input:
{
id: string;
}