CRM Webhook Sources Hook (webhooks/useWebhookSources.ts)

DeskcommCRM · hooks/webhooks/useWebhookSources.ts · typescript · MIT
integration, crm, fw:react, tag:knn-classified

React hooks for managing webhook sources, pipelines, and stages in a CRM application. Use when configuring inbound webhook endpoints and integrations.

// Source: https://github.com/melgarafael/DeskcommCRM | License: MIT | Copyright 2026 Rafael Melgaço
// Provided via justclaw.it.com; keep this notice with the code.
"use client";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { apiClient } from "@/lib/api/client";
import { showApiError } from "@/components/feedback/ApiErrorToast";
import type { Pipeline, Stage } from "@/lib/kanban/types";
import type { WebhookFormField } from "@/lib/webhooks/formulario";

export interface WebhookSourceRow {
  id: string;
  organization_id: string;
  name: string;
  path_token: string;
  is_active: boolean;
  authorize_ai_on_capture: boolean;
  /** Opção do #2316: atualizar o card quando o envio repete o external_id. */
  update_existing_lead_on_capture: boolean;
  ki

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key