Skip to main content
Glama
get-lead-stats.ts743 B
import { createAction } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { bookedinAuth } from '../../index'; import { BASE_URL, getBookedinHeaders, extractApiKey } from '../common/props'; export const getLeadStats = createAction({ name: 'getLeadStats', displayName: 'Get Lead Stats', description: 'Get lead statistics (Hot, Warm, Cold, Objectives Met, Total).', auth: bookedinAuth, props: {}, async run({ auth }) { const apiKey = extractApiKey(auth); const response = await httpClient.sendRequest({ method: HttpMethod.GET, url: `${BASE_URL}/leads/stats`, 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