Files
kandev/apps/web/lib/api/domains/automations-export-api.ts
T
2026-08-21 22:03:35 +01:00

9 lines
353 B
TypeScript

import { fetchBlob } from "../client";
const BASE = (workspaceId: string) => `/api/v1/workspaces/${workspaceId}/automations/export`;
/** Fetches the workspace's automations as a zip archive (one file per automation). */
export async function exportAutomationsZip(workspaceId: string): Promise<Blob> {
return fetchBlob(`${BASE(workspaceId)}/zip`);
}