Skip to main content
Glama
find-contact-by-name.ts1.04 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { echowinAuth } from '../common/auth'; import { makeRequest } from '../common/client'; import { HttpMethod } from '@activepieces/pieces-common'; export const findContactByName = createAction({ auth: echowinAuth, name: 'findContactByName', displayName: 'Find Contact ', description: 'Get a paginated list of contacts and search by name, email, or phone number', props: { search: Property.ShortText({ displayName: 'Search', description: 'Search contacts by name, email, or phone number', required: false, }), }, async run(context) { const { search } = context.propsValue; const queryParams = new URLSearchParams(); if (search) { queryParams.append('search', search); } const queryString = queryParams.toString(); const response = await makeRequest( context.auth.secret_text, HttpMethod.GET, `/contacts?${queryString}` ); 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