Skip to main content
Glama

mcp-google-sheets

delete-contact.ts1.13 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { getBaseUrl } from '../../index'; import { InstasentAuthType } from '../common/types'; export const deleteContact = createAction({ name: 'delete_contact', displayName: 'Delete Contact', description: 'Delete a single contact by User ID', props: { userId: Property.ShortText({ displayName: 'User ID', description: 'Unique identifier of the contact to delete', required: true }) }, async run(context) { const { userId } = context.propsValue; const auth = context.auth as InstasentAuthType; const baseUrl = getBaseUrl({ projectId: auth.projectId, datasourceId: auth.datasourceId }); const response = await httpClient.sendRequest({ method: HttpMethod.DELETE, url: `${baseUrl}/stream/contacts/${userId}`, headers: { 'Authorization': `Bearer ${auth.apiKey}` } }); 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