Skip to main content
Glama
delete-lead.ts768 B
import { createAction } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { bookedinAuth } from '../../index'; import { BASE_URL, getBookedinHeaders, leadIdDropdown, extractApiKey } from '../common/props'; export const deleteLead = createAction({ name: 'deleteLead', displayName: 'Delete Lead', description: 'Delete a lead.', auth: bookedinAuth, props: { lead_id: leadIdDropdown, }, async run({ auth, propsValue }) { const apiKey = extractApiKey(auth); const response = await httpClient.sendRequest({ method: HttpMethod.DELETE, url: `${BASE_URL}/leads/${propsValue.lead_id}`, headers: getBookedinHeaders(apiKey), }); return response.body; }, });

Latest Blog Posts

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