---
title: "Fuzzy contact search → the single closest contact (cross-entity)"
method: GET
path: "/api/v1/ackdb/contacts/search"
tags: ["ackDB"]
---

# Fuzzy contact search → the single closest contact (cross-entity)

`GET /api/v1/ackdb/contacts/search`

## Request

- Base URL: `http://localhost:3009`
- URL: `http://localhost:3009/api/v1/ackdb/contacts/search`
- Auth: HTTP bearer

The contact analog of `/entities/search`. Pick a field and send a value — per-field params (all ANDed): `q` (across all fields), `name`, `email`, `phone`, `title`, `department`, `linkedin`; at least one required. Ranked case-insensitive substring (exact > prefix > contains) selects the single closest active contact across all companies by default. Set `includeFormer=true` to include ended affiliations too; active wins an equal-score tie and disabled contacts never qualify. Returns the contact hydrated with its identity links, traits, and a compact company ref (`entity: { entityId, name, domain }`), plus a sibling `matchedOn` block. No match → 404.

## Query parameters

- `q` string
- `name` string
- `email` string
- `phone` string
- `title` string
- `department` string
- `linkedin` string
- `includeFormer` boolean

## Response `200`

The closest contact (incl. `personId`) + its identityLinks, traits, a compact company `entity` ref, and a `person` block naming the human plus their OTHER affiliations (`otherAffiliationCount`, `otherAffiliations[]` — including ended stints: a job change is the signal), alongside a sibling `matchedOn` { field, value, tier }.

- object
  - `data` unknown, required

## Other responses

- `400`: includeFormer was supplied with a value other than "true" or "false".
- `404`: No contact matches the given fields.
- `422`: No field param provided (need ≥1 of q/name/email/phone/title/department/linkedin).

---

[API](https://skmtc.dev/floqer/apis/floqer-public-api.md) - [All operations](https://skmtc.dev/floqer/apis/floqer-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/floqer/apis/floqer-public-api/revisions/fce50dc07b20?raw)
