Skip to main content
Glama

mcp-google-sheets

send-campaign.ts720 B
import { createAction } from '@activepieces/pieces-framework'; import { campaignDropdown, makeSenderRequest, senderAuth, } from '../common/common'; import { HttpMethod } from '@activepieces/pieces-common'; export const sendCampaignAction = createAction({ auth: senderAuth, name: 'send_campaign', displayName: 'Send Campaign', description: 'Trigger sending of a drafted campaign to its recipient list', props: { campaignId: campaignDropdown, }, async run(context) { const campaignId = context.propsValue.campaignId; const response = await makeSenderRequest( context.auth, `/campaigns/${campaignId}/send`, HttpMethod.POST, ); return response.body; }, });

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