Skip to content

The open-source app everyone uses to manage agents at work

402 B
Raw Blame
import type { PrimaryAgentPreference, UpdatePrimaryAgent } from "@paperclipai/shared";
import { api } from "./client";

export const primaryAgentApi = {
  get: (companyId: string) => api.get<PrimaryAgentPreference>(`/companies/${companyId}/primary-agent/me`),
  set: (companyId: string, body: UpdatePrimaryAgent) => api.put<PrimaryAgentPreference>(`/companies/${companyId}/primary-agent/me`, body),
};