Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

551 B
Raw Blame
import { PieceAuth } from '@activepieces/pieces-framework';
import { WhatsAppClient } from '@kapso/whatsapp-cloud-api';

export const KAPSO_BASE_URL = 'https://api.kapso.ai/meta/whatsapp';

export const kapsoAuth = PieceAuth.SecretText({
  displayName: 'API Key',
  description:
    'Your Kapso API key. You can obtain it from your [Kapso dashboard](https://app.kapso.ai).',
  required: true,
});

export function makeClient(apiKey: string): WhatsAppClient {
  return new WhatsAppClient({
    baseUrl: KAPSO_BASE_URL,
    kapsoApiKey: apiKey,
  });
}