Skip to main content
Glama

mcp-google-sheets

send-message.ts940 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod, } from '@activepieces/pieces-common'; import { whatsableAuth } from '../..'; export const sendMessage = createAction({ name: 'sendMessage', displayName: 'Send Message', description: '', auth: whatsableAuth, props: { to: Property.ShortText({ displayName: 'To', description: 'The recipient of the message', required: true, }), text: Property.LongText({ displayName: 'Message', description: 'The message to send', required: true, }), }, async run(ctx) { const { to, text } = ctx.propsValue; return await httpClient.sendRequest({ method: HttpMethod.POST, url: 'https://dashboard.whatsable.app/api/whatsapp/messages/send', headers: { 'Authorization': ctx.auth, }, body: { to, text, }, }); }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server