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

620 B
Raw Blame
import { PieceAuth } from '@activepieces/pieces-framework';

const markdownDescription = `
Please follow [Generate Long Live Token](https://developers.kommo.com/docs/long-lived-token) guide for generating token.

Your Kommo account subdomain (e.g., "mycompany" if your URL is mycompany.kommo.com).

`;

export const kommoAuth = PieceAuth.CustomAuth({
  description: markdownDescription,
  required: true,
  props: {
    subdomain: PieceAuth.SecretText({
      displayName: 'Subdomain',
      required: true,
    }),
    apiToken: PieceAuth.SecretText({
      displayName: 'Token',
      required: true,
    }),
  },
});