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

953 B
Raw Blame
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
import { smsmodeAuth } from './lib/common/auth';
import { sendMessage } from './lib/actions/send-message';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { PieceCategory } from '@activepieces/pieces-framework';

export const smsmode = createPiece({
  displayName: 'smsmode',
  auth: smsmodeAuth,
  minimumSupportedRelease: '0.36.1',
  logoUrl: 'https://cdn.activepieces.com/pieces/smsmode.png',
  authors: ['sanket-a11y'],
  categories: [PieceCategory.COMMUNICATION],
  description:
    'smsmode is an SMS messaging platform that allows you to send and receive SMS messages easily.',
  actions: [
    sendMessage,
    createCustomApiCallAction({
      auth: smsmodeAuth,
      baseUrl: () => 'https://rest.smsmode.com/sms/v1',
      authMapping: async (auth) => ({
        'X-Api-Key': auth.secret_text,
      }),
    }),
  ],
  triggers: [],
});