Contact Filter API Paths (lib/api-paths.ts)

ChatbotX · apps/builder/src/features/contact-filter/lib/api-paths.ts · typescript · MIT
crm, integration, lang:typescript, tag:routing

A centralized registry of API route paths for contact filtering and activity lookups. Use this to maintain consistent endpoint definitions across the workspace and authorization layers.

// Source: https://github.com/ChatbotXIO/ChatbotX | License: MIT | Copyright 2024-present AhaChat LLC
// Provided via justclaw.it.com; keep this notice with the code.
/** Contact filter API route paths, shared by the route definition and the workspace authorization gate that keys off it. */
export const FILTER_VALUE_LABELS_POST_PATH =
  "/workspaces/{workspaceId}/contact-filter/value-labels"

/** Workspace-token twin of the value-label lookup (pure read, POST for the id lists). */
export const FILTER_VALUE_LABELS_TOKEN_PATH = "/v1/contacts/filter-value-labels"

/** Searchable values for the keyword / WhatsApp Flow / email topic filters. */
export const ACTIVITY_VALUE_OPTIONS_PATH =
  "/workspaces/{workspaceId}/contact-filter/activity-value-options"

/** Whether the activity-backed filters 

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

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

Get a free API key