Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/intercom

src/search-contacts.ts

11 lines · 442 B · TypeScript
import { parseSearchContacts, searchContacts } from './contacts.ts'

/**
 * Search Intercom contacts. POST `/contacts/search` is a read.
 * @example
 * import searchContacts from 'kody:@kody/intercom/search-contacts'
 * const { items } = await searchContacts({ email: 'pat@example.com' })
 */
export default async function searchContactsEntrypoint(params: Record<string, unknown> = {}) {
	return searchContacts(parseSearchContacts(params))
}