Skip to main content
Glama

mcp-google-sheets

unsubscribe-contact.ts813 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { sendfoxAuth } from '../../index'; import { callsendfoxApi } from '../../common'; import { HttpMethod } from '@activepieces/pieces-common'; export const unsubscribe = createAction({ name: 'unsubscribe', auth: sendfoxAuth, displayName: 'Unsubscribe Contact', description: 'Unsubscribe a contact', props: { email: Property.ShortText({ displayName: 'Email', required: true, }), }, async run(context) { const authentication = context.auth; const accessToken = authentication; const email = context.propsValue.email; const response = ( await callsendfoxApi(HttpMethod.PATCH, 'unsubscribe', accessToken, { email: email, }) ).body; return [response]; }, });

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