> ## Documentation Index
> Fetch the complete documentation index at: https://developer.lemlist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Contacts

> Searches your team's contacts with the filters of the Contacts page, and returns them sorted and paginated.

This is the v2 of [Get Many Contacts](https://developer.lemlist.com/api-reference/endpoints/contacts/get-many-contacts.md). It
addresses the same index as the Contacts page in the app, so anything you can filter on
there, you can filter on here.

Two tiers of filtering:

* **Flat query parameters** for the common cases — `listId=clt_...`, `notInAnyCampaign=true`.
* **`advancedFilters`**, a JSON tree, for everything else, including your team's custom
  fields. [List the available fields](https://developer.lemlist.com/api-reference/endpoints/contacts/get-contact-filters.md)
  to discover them.

## Filtering

The flat parameters are the v1 ones: `search`, `email`, `listId`, `notInAnyCampaign`, the
`company*` filters, `withPrimaryCompany`, `fieldRejectionReason` and `crmSyncStatus`.
`crmIds` looks contacts up by their record id in the connected CRM, and it cannot be
combined with the other filters.

### Advanced filters

`advancedFilters` takes a filter tree encoded as JSON. A node is either a **group**
(`connector` `and` / `or`, plus `children`) or a **condition** (`property`, `operator`,
`value`). The tree is bounded: **depth 5, 50 conditions**.

```json theme={"theme":"dracula"}
{
  "type": "group",
  "id": "root",
  "connector": "and",
  "children": [
    {
      "type": "condition",
      "id": "c1",
      "property": "jobTitle",
      "operator": "contains",
      "value": "engineer"
    },
    {
      "type": "group",
      "id": "g1",
      "connector": "or",
      "children": [
        {
          "type": "condition",
          "id": "c2",
          "property": "company.domain",
          "operator": "ends_with",
          "value": "acme.com"
        },
        {
          "type": "condition",
          "id": "c3",
          "property": "cf_contact_tier",
          "operator": "is",
          "value": "A"
        }
      ]
    }
  ]
}
```

Every `property` must be a field returned by
[List Contact Filters](https://developer.lemlist.com/api-reference/endpoints/contacts/get-contact-filters.md), and every
`operator` must be one that field's type allows. An unknown field or a wrong operator is a
`400 INVALID_FILTER` — never a silently ignored condition.

### CRM sync state

`crmSyncStatus` follows the same values as v1: `synced`, `not_synced`, `error`,
`searching`, `not_found`, or one error reason in its lowercase form
(`invalid_email`, `contact_blocked_by_company`, ...). It requires a CRM to be connected —
otherwise the request answers `400 NO_CRM_CONNECTED`.

## Sorting and pagination

`sortBy` accepts `createdAt` (default), `fullName`, `lastContactedDate` and
`company.name`; `sortOrder` is `asc` or `desc` (default `desc`). Ties are broken by the
contact id, so a page is stable across calls.

Pagination is offset-based: `limit` (default 100, max 500) and `offset` (default 0).
`limit + offset` must not exceed **10 000** — past that the request answers
`400 PAGE_WINDOW_TOO_LARGE` rather than silently serving another page.

## Coming from v1

* **No `idsOrEmails`.** v2 searches the index; it is not a lookup by id. Fetch a known
  contact with [Get Contact](https://developer.lemlist.com/api-reference/endpoints/contacts/get-contact.md).
* **`crmIds` is not a lookup either.** It narrows the search, so the response keeps the
  paginated envelope and an id that matches nothing is simply left out.
* **The response is `{ data, total, limit, offset }`**, as v1's list, with the same row
  keys. Dates are ISO-8601 instants.
* **No deep pages.** v1 still serves pages past 10 000 rows, which some integrations rely
  on; v2 refuses them, so narrow with a filter instead of walking deeper.

## Examples

```bash Contacts of one list, newest first theme={"theme":"dracula"}
curl --request GET \
  --url 'https://api.lemlist.com/api/v2/contacts?listId=clt_abc123def456ghi78&limit=50' \
  --header 'Authorization: Basic <encoded-value>'
```

```bash Contacts of a company, sorted by name theme={"theme":"dracula"}
curl --request GET \
  --url 'https://api.lemlist.com/api/v2/contacts?companyDomain=acme.com&sortBy=fullName&sortOrder=asc' \
  --header 'Authorization: Basic <encoded-value>'
```

```bash Advanced filter on a custom field theme={"theme":"dracula"}
curl --request GET \
  --url 'https://api.lemlist.com/api/v2/contacts?limit=100' \
  --data-urlencode 'advancedFilters={"type":"group","id":"root","connector":"and","children":[{"type":"condition","id":"c1","property":"cf_contact_tier","operator":"is_any_of","value":["A","B"]}]}' \
  --get \
  --header 'Authorization: Basic <encoded-value>'
```

```bash Contacts the CRM sync refused theme={"theme":"dracula"}
curl --request GET \
  --url 'https://api.lemlist.com/api/v2/contacts?crmSyncStatus=error' \
  --header 'Authorization: Basic <encoded-value>'
```


## OpenAPI

````yaml get /v2/contacts
openapi: 3.0.0
info:
  title: lemlist API
  version: 1.0.0
  description: >-
    Welcome to the lemlist Developer Documentation.


    lemlist is very customizable and open. You'll find on this page all the API
    and integration you can do with lemlist.


    # Rate Limit


    lemlist's API rate limits requests in order to prevent abuse and overload of
    our services.  

    Rate limits are applied on all routes and per API key performing the
    request.  

    The rate limits are **20** requests per **2** seconds.  

    The response provides any information you may need about it:


    | Header | Description |

    | --- | --- |

    | Retry-After | The number of seconds in which you can retry |

    | X-RateLimit-Limit | The maximum requests in that time |

    | X-RateLimit-Remaining | The number of remaining requests you can make |

    | X-RateLimit-Reset | The date when the rate limit will reset |


    _Example of values for the rate limit headers_


    ``` json

    {
        "Retry-After": 2,
        "X-RateLimit-Limit": 20,
        "X-RateLimit-Remaining": 7,
        "X-RateLimit-Reset" : "Tue Feb 16 2021 09:02:42 GMT+0100 (Central European Standard Time)"
    }

     ```

    # Definitions


    ## Team


    A team is the entity of lemlist that can handle users and billing.


    ## Credits


    Credits are the coins a team uses to enrich emails, LinkedIn URLs, etc. via
    the enrich route. Each enrichment feature needs a certain amount of credits
    to run.


    ## User


    You use a user account to connect to lemlist and send messages via the
    connected emails or LinkedIn account.


    ## Campaign


    A campaign is the entity to automate outreach. A campaign has multiple
    sequences composed of steps.


    ## Lead


    A lead is a person that you try to contact via a campaign.


    ## Activity


    An activity is the history of all the steps.


    ## Unsubscribe


    An unsubscribe occurs when a person decides they don't want to receive
    emails from you anymore.


    # Authentication


    All API routes use the dedicated subdomain `api.lemlist.com`.


    lemlist uses API keys to allow access to the API. You can get your lemlist
    API key at our [integration
    page](https://app.lemlist.com/settings/integrations).


    You need to add the `Authorization` header using the `Basic` authentication
    type. `login:password` **where the login is always empty and the password is
    the API key**.


    ⚠️ **Don't forget to add the semicolon (**`:`**) before your API key in curl
    command.**


    > To authorize, use this code: 
      

    ``` shell

    curl https://api.lemlist.com/api/team \
      --user ":YourApiKey"

     ```

    **Make sure to replace** **`YourApiKey`** **with your API key.**


    # Give feedback


    If you want to report a bug, ask for data, or share with us a use case,
    please fill this [form](https://lemlist.typeform.com/to/mfVlkyGf). It will
    help us centralize your needs!
servers:
  - url: https://api.lemlist.com/api
security:
  - basicAuth: []
tags:
  - name: Enrichment Providers
    description: >-
      The data providers lemlist can call to find an email or a phone.


      Internal providers are paid with lemlist credits and always available.
      External providers run on your own account: connect one by saving its API
      key, and it becomes available to your waterfalls. `GET
      /enrichments/providers` is the catalog of provider ids accepted by the
      waterfall endpoints.
  - name: Enrichment Waterfalls
    description: >-
      Control which data providers lemlist calls when enriching a contact, and
      in which order.


      A waterfall is an ordered list of providers for one enrichment `type`
      (`email` or `phone`). Providers are tried one after the other until one
      returns a result.


      Every team has exactly one default waterfall per type (`isDefault: true`).
      While its `editor` is `lemlist` it follows the lemlist behaviour:
      providers you connected with your own API key are tried first, then
      internal providers in a random order. Once a team member edits its
      provider list, `editor` becomes that user's id and the list is followed as
      is; resetting it hands it back to `lemlist`.


      Custom waterfalls (`isDefault: false`) carry `conditions` on the contact
      being enriched, keyed by contact property; every key present must match.
      When a contact is enriched, lemlist runs a single waterfall: the custom
      waterfall of the requested type whose conditions match the contact, or the
      default waterfall when none does. If several match, the one with the most
      condition keys wins, then the most recently updated. Only that waterfall
      runs; when it finds nothing, the enrichment ends without falling back to
      another one.
  - name: User Groups
    description: >-
      Gather your team's users into groups (UK, FR, US…), so a manager filters
      Reports, Tasks and Campaigns by group in one click. Available on the
      Enterprise plan.


      Any member of the team reads the groups; only an admin creates, edits and
      deletes them. An API key acts on behalf of the team member who created it,
      so the write endpoints need a key created by an admin.


      A group name is unique in the team, whatever its case, and holds 1 to 60
      characters. A group holds at most 1,000 members and a team at most 100
      groups. A user can belong to several groups, and a user removed from the
      team leaves every group. Deleting a group also removes it from the
      Reports, Tasks and Campaigns filters saved on it.
paths:
  /v2/contacts:
    get:
      tags:
        - Contacts
      summary: Search Contacts
      description: >-
        Searches your team's contacts in the index the Contacts page reads: the
        v1 search parameters for the common filters, an `advancedFilters` tree
        for everything else, and a sort. Answers `{ data, total, limit, offset
        }`, with the same row keys as the list of `GET /contacts`.
      parameters:
        - name: search
          in: query
          required: false
          description: >-
            Free-text search across the contact: name, email, phone, job title,
            location, industry, languages, skills, summary, LinkedIn URLs and
            the AI buying role. At least 2 characters, case-insensitive.
          schema:
            type: string
            minLength: 2
            maxLength: 200
        - name: email
          in: query
          required: false
          description: >-
            Exact email address, matched among all the contact's emails. Takes
            precedence over `search`.
          schema:
            type: string
            format: email
        - name: listId
          in: query
          required: false
          description: >-
            Filter contacts by contact list ID (`clt_xxx` format). Can be
            combined with `search` or `email`, or used alone to list all
            contacts in a list. Get valid IDs from `GET /contacts/lists`.
          example: clt_abc123def456ghi78
          schema:
            type: string
            pattern: ^clt_[a-zA-Z0-9]+$
        - name: notInAnyCampaign
          in: query
          required: false
          description: >-
            When set to `true`, only returns contacts that are not part of any
            campaign (orphan contacts). Can be used alone or combined with other
            filters such as `search`, `email`, or `listId`.
          schema:
            type: boolean
        - name: companyId
          in: query
          required: false
          description: >-
            Filter contacts by attached company ID (`cpn_xxx` format). Mutually
            exclusive with `companyDomain`, `companyLinkedinUrl`,
            `companySalesnavUrl` and `withPrimaryCompany`.
          example: cpn_A1B2C3D4E5F6G7H8I
          schema:
            type: string
            pattern: ^cpn_[a-zA-Z0-9]+$
        - name: companyDomain
          in: query
          required: false
          description: >-
            Filter contacts by their company's website domain, resolved to a
            `companyId`. If no company matches, the response is an empty page
            (`total: 0`). Mutually exclusive with the other `company*` filters.
          example: acme.com
          schema:
            type: string
        - name: companyLinkedinUrl
          in: query
          required: false
          description: >-
            Filter contacts by their company's LinkedIn URL, resolved to a
            `companyId`. If no company matches, the response is an empty page
            (`total: 0`). Mutually exclusive with the other `company*` filters.
          example: https://www.linkedin.com/company/acme
          schema:
            type: string
        - name: companySalesnavUrl
          in: query
          required: false
          description: >-
            Filter contacts by their company's LinkedIn Sales Navigator URL,
            resolved to a `companyId`. If no company matches, the response is an
            empty page (`total: 0`). Mutually exclusive with the other
            `company*` filters.
          example: https://www.linkedin.com/sales/company/12345678
          schema:
            type: string
        - name: withPrimaryCompany
          in: query
          required: false
          description: >-
            When set to `true`, only returns contacts linked to a company; when
            set to `false`, only returns contacts without a company. Omit for no
            filter. Mutually exclusive with the `company*` filters.
          schema:
            type: boolean
        - name: fieldRejectionReason
          in: query
          required: false
          description: >-
            Filter contacts to those carrying a field rejection with this reason
            — a value lemlist refused to write, prefixed by its origin
            (`enrichment_*` while enriching, `crm_sync_*` during CRM sync).
            Returns an empty page (`total: 0`) when no contact matches. Each row
            exposes the full detail under `fieldRejections[]`.
          example: enrichment_duplicate_linkedin_url
          schema:
            type: string
            enum:
              - enrichment_duplicate_linkedin_url
              - enrichment_duplicate_linkedin_url_sales_nav
              - enrichment_duplicate_email
              - crm_sync_duplicate_linkedin_url
              - crm_sync_duplicate_linkedin_url_sales_nav
              - crm_sync_invalid_linkedin_url
              - crm_sync_invalid_url
              - crm_sync_invalid_email
              - crm_sync_invalid_phone
              - crm_sync_linkedin_url_not_contact
              - crm_sync_duplicate_contact_blocked
              - crm_sync_duplicate_company_blocked
              - crm_sync_company_data_rejected
              - crm_sync_unsub_state_protected
              - crm_sync_unsub_channel_empty
              - crm_sync_value_oscillating
              - crm_sync_owner_sync_loop
              - crm_sync_unmapped_user
              - crm_sync_value_incompatible
              - crm_sync_unknown_error
        - name: crmSyncStatus
          in: query
          required: false
          description: >-
            Filter contacts by their CRM sync state against the team's active
            CRM provider. Requires a CRM (Hubspot, Salesforce, Pipedrive or
            Attio) to be connected — otherwise the request answers `400
            NO_CRM_CONNECTED`. Values:

            - `synced` — the contact has a CRM record on the active CRM and no
            sync error.

            - `not_synced` — the contact has no CRM record on the active CRM.

            - `searching` — a CRM search (Search & connect, Create in CRM) is
            queued or running for the contact.

            - `not_found` — the last CRM search found no record for the contact.

            - `error` — at least one sync error is currently raised, whatever
            its reason.

            - A specific error reason (lowercase form), to filter by root cause,
            e.g. `invalid_email` or `contact_blocked_by_company`.

            The `error`, `searching`, `not_found` and reason states read every
            CRM the contact was synced with, so an error left by a previous CRM
            counts as `error` and keeps the contact out of `synced`.
          example: error
          schema:
            type: string
            enum:
              - synced
              - not_synced
              - error
              - searching
              - not_found
              - invalid_email
              - property_doesnt_exist
              - required_field_missing
              - unique_index_error_contact
              - contact_already_exists_with_name
              - contact_already_exists_with_linkedin_url
              - contact_already_exists_with_email
              - contact_blocked_by_company
              - contact_blocked_by_company_search
              - contact_blocked_by_company_without_name
              - contact_blocked_by_company_without_key
              - contact_blocked_by_company_already_synced
        - name: crmIds
          in: query
          required: false
          description: >-
            Record ids of contacts in the team's active CRM (HubSpot,
            Salesforce, Pipedrive or Attio), 1 to 100 values; for Salesforce,
            the 18-character Contact or Lead id; for Attio, the record UUID.
            Each contact found carries the matched id under
            `crmSync.crmRecordId`; an id that matches no contact is left out.
            Cannot be combined with the other filters, `search` and the company
            filters included.
          example: 123456789,987654321
          schema:
            type: string
          style: form
          explode: false
        - name: advancedFilters
          in: query
          required: false
          description: >-
            A filter tree encoded as JSON, addressing any field returned by `GET
            /v2/contacts/filters`. A node is either a group (`connector` `and` /
            `or`, plus `children`) or a condition (`property`, `operator`,
            `value`). Max depth 5, max 50 conditions. An unknown property or an
            operator the field does not allow answers `400 INVALID_FILTER`.
          schema:
            type: string
          example: >-
            {"type":"group","id":"root","connector":"and","children":[{"type":"condition","id":"c1","property":"jobTitle","operator":"contains","value":"engineer"}]}
        - name: sortBy
          in: query
          required: false
          description: Field the page is ordered by. Ties are broken by the contact id.
          schema:
            type: string
            enum:
              - createdAt
              - fullName
              - lastContactedDate
              - company.name
            default: createdAt
        - name: sortOrder
          in: query
          required: false
          description: Sort direction.
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
        - name: limit
          in: query
          required: false
          description: >-
            Maximum number of contacts to return (1–500). Defaults to 100.
            `limit + offset` must not exceed 10000.
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 100
        - name: offset
          in: query
          required: false
          description: >-
            Number of contacts to skip for pagination. Defaults to 0. `limit +
            offset` must not exceed 10000: narrow the filters or the search
            instead of walking deeper.
          schema:
            type: integer
            minimum: 0
            default: 0
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactV2ListResponse'
              example:
                data:
                  - _id: ctc_A1B2C3D4E5F6G7H8I
                    teamId: tea_A1B2C3D4E5F6G7H8I
                    fullName: John Doe
                    email: john@example.com
                    firstName: John
                    lastName: Doe
                    jobTitle: Growth Engineer
                    ownerId: usr_A1B2C3D4E5F6G7H8I
                    statusId: nExampleStatus
                    companyId: cpn_A1B2C3D4E5F6G7H8I
                    createdAt: '2026-01-12T09:00:00.000Z'
                    createdBy: usr_A1B2C3D4E5F6G7H8I
                    unsubscribed: false
                    campaignCount: 2
                    crmSync:
                      provider: hubspot
                      crmRecordId: '123456789'
                      syncDisabled: false
                      searching: false
                      notFoundAt: null
                      errors: []
                    fieldRejections: []
                total: 1
                limit: 100
                offset: 0
        '400':
          description: >-
            Invalid parameter — a value of the wrong type, an unknown `sortBy`,
            a filter tree over 5 levels or 50 conditions, `crmIds` sent with
            another filter, an unknown filter property or operator
            (`INVALID_FILTER`), two company filters
            (`MULTIPLE_COMPANY_FILTERS`), a bad company id
            (`INVALID_COMPANY_ID`), an unknown field-rejection reason
            (`INVALID_FIELD_REJECTION_REASON`), an unknown CRM sync status
            (`INVALID_CRM_SYNC_STATUS`), `crmSyncStatus` with no CRM connected
            (`NO_CRM_CONNECTED`), or `limit + offset` past 10000
            (`PAGE_WINDOW_TOO_LARGE`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
              examples:
                invalid-parameter:
                  value:
                    success: false
                    error:
                      code: INVALID_PARAMETER
                      message: 'sortBy: invalid value'
                window-too-large:
                  value:
                    success: false
                    error:
                      code: PAGE_WINDOW_TOO_LARGE
                      message: limit + offset must be at most 10000
        '401':
          description: The authentication you supplied is incorrect.
        '405':
          description: Method not allowed
        '500':
          description: >-
            The search failed, with any other error code. It is alerted on our
            side, not answered as a client error.
components:
  schemas:
    ContactV2ListResponse:
      type: object
      description: Paginated response of `GET /v2/contacts`.
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ContactListItem'
        total:
          type: integer
          description: Total number of matching contacts
        limit:
          type: integer
          description: Page size used
        offset:
          type: integer
          description: Rows skipped
      required:
        - data
        - total
        - limit
        - offset
    ApiErrorEnvelope:
      type: object
      description: Error envelope of the contact and company endpoints.
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code, stable across releases.
            message:
              type: string
              description: Human-readable explanation.
          required:
            - code
            - message
      required:
        - success
        - error
    ContactListItem:
      type: object
      description: >-
        A contact as the list of `GET /contacts` and `GET /v2/contacts` returns
        it, with the main fields flattened. Properties with no value are
        omitted.
      properties:
        _id:
          type: string
          description: Unique contact identifier
        teamId:
          type: string
          description: Team identifier the contact belongs to
        fullName:
          type: string
          description: Contact's calculated full name
        email:
          type: string
          format: email
          description: Contact's primary email address
        firstName:
          type: string
          description: Contact's first name
        lastName:
          type: string
          description: Contact's last name
        phone:
          type: string
          description: Contact's phone number
        jobTitle:
          type: string
          description: Contact's job title
        linkedinUrl:
          type: string
          description: Contact's LinkedIn profile URL
        linkedinUrlSalesNav:
          type: string
          description: Contact's LinkedIn Sales Navigator URL
        ownerId:
          type: string
          description: ID of the user who owns this contact
        statusId:
          type: string
          description: ID of the contact's status, one of the team's contact statuses
        companyId:
          type: string
          description: ID of the company the contact is attached to (`cpn_xxx`)
        createdAt:
          type: string
          format: date-time
          description: Contact creation timestamp
        createdBy:
          type: string
          description: ID of the user who created the contact
        unsubscribed:
          type: boolean
          description: >-
            Whether the contact is globally unsubscribed. When true, no outreach
            will be sent to this contact.
        campaignCount:
          type: integer
          description: Number of campaigns the contact is in
        crmSync:
          type: object
          description: >-
            CRM sync status for the contact, resolved against the team's active
            CRM provider. Only present when a CRM is connected and the contact
            is linked to a record in it or was searched for in it. Read
            `searching` and `notFoundAt` to follow a Search & connect or Create
            in CRM.
          properties:
            provider:
              type: string
              enum:
                - hubspot
                - salesforce
                - pipedrive
                - attio
                - zoho
              description: Active CRM provider for the team.
            crmRecordId:
              type: string
              nullable: true
              description: >-
                Identifier of the contact record on the CRM side. `null` when
                the lemlist contact has not been synced yet.
            syncDisabled:
              type: boolean
              description: When `true`, automatic sync is paused for this contact.
            searching:
              type: boolean
              description: >-
                `true` while a CRM search (Search & connect, Create in CRM) is
                queued or running for this contact, however long the queue
                takes. A search marked running more than 15 minutes ago with
                nothing left in the queue stalled: the read clears it and
                returns `false`.
            notFoundAt:
              type: string
              format: date-time
              nullable: true
              description: >-
                When the last CRM search found no matching record. `null`
                otherwise.
            errors:
              type: array
              description: >-
                List of recent sync errors. Empty when the contact is synced
                cleanly.
              items:
                type: object
                properties:
                  type:
                    type: string
                    description: >-
                      Coarse error category (e.g. `CONNECT_FAILED`,
                      `CREATE_FAILED`, `UPDATE_FAILED`).
                  reason:
                    type: string
                    description: >-
                      Specific error reason (e.g. `UNIQUE_INDEX_ERROR_CONTACT`,
                      `INVALID_EMAIL`, `PROPERTY_DOESNT_EXIST`).
                  raisedAt:
                    type: string
                    format: date-time
                    description: Timestamp when the error was last raised.
                  metadata:
                    type: object
                    additionalProperties: true
                    description: >-
                      Extra context. For `UNIQUE_INDEX_ERROR_COMPANY`, contains
                      `alreadyExistingCompanyId` — the lemlist company that
                      already occupies the conflicting CRM record. Use it to
                      remap contacts onto the right lemlist company before
                      deleting the duplicate.
        fieldRejections:
          type: array
          description: >-
            Values lemlist refused to write on this contact, each with its
            reason. Empty when none. Filter the list endpoint to only flagged
            contacts via `GET /contacts?fieldRejectionReason=...`.
          items:
            $ref: '#/components/schemas/FieldRejection'
    FieldRejection:
      type: object
      description: >-
        A value lemlist refused to write on a Contact or Company, with the
        reason why. Surfaced under `fieldRejections[]` on those objects; filter
        a list endpoint to only flagged records via the `fieldRejectionReason`
        query param.
      properties:
        field:
          type: string
          description: >-
            The record field the rejected value targeted (e.g. `emails`,
            `linkedinUrl`, `domain`).
        reason:
          type: string
          description: >-
            Why the value was rejected, prefixed by its origin — `enrichment_*`
            (raised while enriching) or `crm_sync_*` (raised during CRM sync).
            Same values accepted by the `fieldRejectionReason` query param.
        source:
          type: string
          description: >-
            Where the rejection came from — an enrichment source (`lemrich`) or
            a CRM provider (`hubspot`, `salesforce`, `pipedrive`).
        conflictingRecordId:
          type: string
          description: >-
            The lemlist record that already holds the value, when the rejection
            identifies one — use it to merge or remap before resolving the
            duplicate. Always a lemlist id (`ctc_…` for a contact, `cpn_…` for a
            company), never a CRM record id. Omitted otherwise.
        rejectedValue:
          type: string
          description: The value that was refused.
        rejectedAt:
          type: string
          format: date-time
          description: When the rejection was recorded.
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.