---
title: "Search and filter contacts"
method: GET
path: "/contacts/search"
tags: ["contacts"]
---

# Search and filter contacts

`GET /contacts/search`

Search saved people: name, profile URL, optional Fit / not-a-fit, outreach status, tags, score, and list membership. Supports pagination and sorting.

## Query parameters

- `linkedinUrl` string — Filter by LinkedIn URL (exact match)
- `name` string — Filter by name (partial match)
- `lifecycleStage` 'contact' | 'lead' | 'qualified' | 'rejected'
- `sortBy` string — Sort order. One of: updatedAt_desc / updatedAt_asc (most recent activity — default), hotScore_desc / hotScore_asc, lastRepliedAt_desc / lastRepliedAt_asc, lastContactedAt_desc / lastContactedAt_asc, createdAt_desc / createdAt_asc, name_asc / name_desc, profileUpdatedAt_desc / profileUpdatedAt_asc.
- `minHotScore` integer
- `outreachStatus` 'none' | 'connection_sent' | 'connected' | 'dm_sent' | 'followed_up' | 'replied' | 'in_conversation' | 'meeting_booked' | 'not_interested'
- `tag` string — Filter by tag
- `doNotContact` 'true' | 'false'
- `hasProfileData` 'true' | 'false'
- `campaignId` string
- `engaged` 'true' | 'false' — Default true: return only people with outreach started, a reply, or membership in a real (non chat-draft) list. Pass false for every saved row including collected residue. Ignored when campaignId is set, since that is already an explicit list.
- `omitData` 'true' | 'false' — Return identity and verdict only: no profile blob, no campaign membership, no timestamps. Much smaller, and a different row shape rather than the same one with holes.
- `limit` integer
- `offset` integer

## Response `200`

Matching contacts. The row shape depends on `omitData`.

- object
  - `success` true, required
  - `contacts` union, required
    - object[]
      - `id` string, required
      - `linkedinUrl` string, required
      - `profileUrn` string, nullable, required — LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
      - `publicIdentifier` string, nullable, required — LinkedIn vanity slug (e.g. joshuaau)
      - `name` string, required
      - `lifecycleStage` string, required
      - `hotScore` integer, required
      - `qualificationNotes` string, nullable, required
      - `leadBrief` string, nullable, required
      - `notes` string, nullable, required
      - `stageChangedAt` string, nullable, required
      - `profileData` unknown
      - `profileUpdatedAt` string, nullable, required
      - `conversationData` unknown
      - `conversationUpdatedAt` string, nullable, required
      - `outreachStatus` string — Absent when the contact has no outreach status, which is the common case.
      - `lastContactedAt` string, nullable
      - `lastRepliedAt` string, nullable
      - `doNotContact` boolean — Present only when true.
      - `lastActivityAt` string, nullable — Most recent of replied, contacted, created, or a stage change.
      - `avatarUrl` string, nullable — Durable avatar URL, R2-backed where available.
      - `humanStatus` string — One sentence describing where this contact stands, for a human or a model to read.
      - `campaigns` object[] — Every campaign this contact belongs to. Lifecycle is per-campaign, so this is where membership lives.
        - `campaignId` string, required
        - `campaignName` string
        - `campaignStatus` string
        - `campaignChatThreadId` string, nullable
        - `origin` string, nullable
        - `source` string, nullable
        - `sourceAngle` string, nullable
        - `addedAt` string
      - `tags` string[], required
      - `createdAt` string, required
      - `updatedAt` string, required
    - object[]
      - `id` string, required
      - `linkedinUrl` string, required
      - `name` string, nullable, required
      - `lifecycleStage` string, required — Optional Fit label, or ungraded when the row has none.
      - `hotScore` integer, required
      - `outreachStatus` string, nullable, required
      - `doNotContact` boolean, nullable, required
  - `pagination` object, required
    - `limit` integer, required
    - `offset` integer, required
    - `total` integer, required
  - `creditsUsed` integer, required — Credits consumed by this call. 0 for free endpoints, cached results, duplicates, and for every query that does not touch LinkedIn.
  - `retryAfter` integer, required — Seconds to wait before another call of the same type. 0 means no wait is needed.
  - `_meta` object — Credit balance carried on every response so a caller never has to ask for it separately. Absent when the caller has no connected account.
    - `credits` object, required
      - `current` number, required — Credits spent this period.
      - `limit` number, nullable, required — Period allowance, or null when unlimited.
      - `remaining` number, nullable, required — Allowance left, or null when unlimited.
      - `percentage` number, required — Share of the allowance spent, 0 to 100.
      - `isUnlimited` boolean, required
      - `accountPlan` string, required — The credential's plan.

## Other responses

- `400` — The server cannot or will not process the request due to something that is perceived to be a client error.
- `401` — Although HTTP specifies "unauthorized", this response means "unauthenticated". Authenticate to continue. NOTE: 401 is also returned with code "linkedin_not_connected" when the caller IS authenticated but has no connected LinkedIn account — connect LinkedIn (not re-authenticate) to continue.
- `403` — The client does not have access rights to the content.
- `404` — The server cannot find the requested resource.
- `409` — The request conflicts with the current state of the server.
- `410` — The requested content has been permanently deleted from the server.
- `422` — The request was well-formed but was unable to be followed due to semantic errors.
- `429` — Rate limit exceeded. Read error.retryAfter for the wait time in seconds.
- `500` — The server encountered a situation it does not know how to handle.
- `502` — LinkedIn returned a server error or the proxy connection failed. Retry after a few seconds.
- `503` — Proxy capacity temporarily exceeded. Retry after a few seconds.

---

[API](https://skmtc.net/berea/apis/bereach-api.md) · [All operations](https://skmtc.net/berea/apis/bereach-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/berea/bereach-api/revisions/a1e86af2406d/schema)
