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

# Search people

> Search for people through the enrichment gateway. `companyDomains` takes up to 1000 domains (e.g. a resolved company list; `dench leads find --company-list <id|view>` resolves one for you) — the gateway fans large lists out as sequential vendor-safe chunks behind one `nextPageToken` stream.



## OpenAPI

````yaml /api-reference/openapi.json post /enrichment/people/search
openapi: 3.1.0
info:
  title: Dench API
  version: 1.0.0
  description: >-
    Versioned Dench workspace API. The operation registry is shared with the
    Dench CLI parity layer, so every CLI command maps to an endpoint here.
servers:
  - url: https://www.dench.com/api/v1
security: []
tags:
  - name: agent-config
    description: Agent Config operations.
  - name: apps
    description: Apps operations.
  - name: auth
    description: Auth operations.
  - name: billing
    description: Billing operations.
  - name: browser
    description: Browser operations.
  - name: campaigns
    description: Campaigns operations.
  - name: chat
    description: Chat operations.
  - name: crm
    description: Crm operations.
  - name: email
    description: Email operations.
  - name: environments
    description: Environments operations.
  - name: files
    description: Files operations.
  - name: gateway
    description: Gateway operations.
  - name: lists
    description: Lists operations.
  - name: local
    description: Local operations.
  - name: meetings
    description: Meetings operations.
  - name: members
    description: Members operations.
  - name: memory
    description: Memory operations.
  - name: meta
    description: Meta operations.
  - name: notifications
    description: Notifications operations.
  - name: routines
    description: Routines operations.
  - name: secrets
    description: Secrets operations.
  - name: settings
    description: Settings operations.
  - name: workspace
    description: Workspace operations.
paths:
  /enrichment/people/search:
    post:
      tags:
        - crm
      summary: Search people
      description: >-
        Search for people through the enrichment gateway. `companyDomains` takes
        up to 1000 domains (e.g. a resolved company list; `dench leads find
        --company-list <id|view>` resolves one for you) — the gateway fans large
        lists out as sequential vendor-safe chunks behind one `nextPageToken`
        stream.
      operationId: crm_people_search
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                linkedinUrl:
                  type: string
                fullName:
                  type: string
                firstName:
                  type: string
                lastName:
                  type: string
                keywords:
                  description: >-
                    Current-title text only. For profile or work descriptions,
                    use profileKeywords. Accepted values: see `dench leads
                    filters` or
                    https://dench.com/references/find-filter-options.json.
                  type: string
                companyDomain:
                  type: string
                companyName:
                  type: string
                titles:
                  description: >-
                    Current job titles (free text). Accepted values: see `dench
                    leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                pastTitles:
                  description: Past job titles (free text).
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                personNames:
                  maxItems: 20
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                pastSeniorities:
                  description: >-
                    Seniority in any past role, independent of
                    pastCompanyNames/pastTitles. Current seniority vocabulary
                    plus Founding Team. Founder includes Co-Founder; C-level and
                    Founding Team do not imply founder. Accepted values: see
                    `dench leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 20
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                profileKeywords:
                  description: >-
                    Text in headline/about or any current/past work description.
                    OR includes, global exclusions. Always loose text matching;
                    missing evidence does not match.
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                companyKeywords:
                  description: >-
                    Current employer business focus/model (e.g. SaaS, B2B,
                    Cloud), from description/tagline/business tags; distinct
                    from legal companyTypes. Same employer as other current-job
                    filters. Always loose text matching. May need another filter
                    to retrieve candidates.
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                seniorities:
                  description: >-
                    Exact enum: Owner, Founder, C-level, Partner, VP, Head,
                    Director, Manager, Senior.
                  maxItems: 20
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                jobFunctions:
                  description: >-
                    Exact enum, e.g. Sales, Marketing, Software. Accepted
                    values: see `dench leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 20
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                subFunctions:
                  description: >-
                    Exact enum, e.g. SDR/BDR, Demand Generation. Accepted
                    values: see `dench leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                industries:
                  description: >-
                    Exact enum, e.g. Software Development. Accepted values: see
                    `dench leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                locations:
                  description: >-
                    Person locations — cities, states, countries, or metros
                    (free text). Accepted values: see `dench leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                headcountRanges:
                  description: >-
                    Exact buckets: 1-10, 11-50, 51-200, 201-500, 501-1000,
                    1001-5000, 5001-10000, 10001+.
                  maxItems: 20
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                companyNames:
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                pastCompanyNames:
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                companyDomains:
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                companyHeadquarters:
                  description: >-
                    Company HQ locations — cities, states, countries, or metros
                    (free text). Accepted values: see `dench leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                companyTypes:
                  description: >-
                    Exact enum: Partnership, Nonprofit, Educational, Privately
                    Held, Public Company, Self-Owned, Self-Employed, Government
                    Agency.
                  maxItems: 10
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                universities:
                  description: >-
                    Universities attended (free text). Accepted values: see
                    `dench leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                skills:
                  description: >-
                    Profile skills (free text). Accepted values: see `dench
                    leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 50
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                languages:
                  description: >-
                    Spoken languages, e.g. English, German. Accepted values: see
                    `dench leads filters` or
                    https://dench.com/references/find-filter-options.json.
                  maxItems: 20
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: object
                        properties:
                          value:
                            type: string
                          exclude:
                            type: boolean
                          exactMatch:
                            type: boolean
                        required:
                          - value
                        additionalProperties: false
                yearsInRole:
                  type: object
                  properties:
                    min:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    max:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                  additionalProperties: false
                yearsAtCompany:
                  type: object
                  properties:
                    min:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    max:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                  additionalProperties: false
                daysSinceJobChange:
                  type: object
                  properties:
                    min:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    max:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                  additionalProperties: false
                foundedYears:
                  description: 'Company founded-year range, e.g. {min: 2015, max: 2024}.'
                  type: object
                  properties:
                    min:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    max:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                  additionalProperties: false
                exactMatch:
                  description: >-
                    Match free-text filters as whole strings. Default false:
                    titles ['Founder'] also returns 'Co-Founder' and 'Founder &
                    CEO'. Set true to narrow. Domains, LinkedIn URLs, enum
                    filters and numeric ranges are always exact; keywords is
                    always a loose text probe.
                  type: boolean
                limit:
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 5000
                offset:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                pageToken:
                  description: >-
                    Opaque token from a previous response's
                    metadata.nextPageToken.
                  type: string
                preferCache:
                  type: boolean
                partialPages:
                  description: >-
                    Return an early partial page with metadata.nextPageToken
                    once results are ready instead of waiting for every upstream
                    round.
                  type: boolean
            example:
              titles:
                - Head of Sales
              industries:
                - SaaS
              companyDomains:
                - acme.com
                - globex.com
              limit: 10
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  source:
                    type: string
                    enum:
                      - live
                      - cache
                  people:
                    type: array
                    items:
                      type: object
                      properties:
                        fullName:
                          type: string
                        firstName:
                          type: string
                        lastName:
                          type: string
                        headline:
                          type: string
                        seniority:
                          type: string
                        jobFunctions:
                          type: array
                          items:
                            type: string
                        currentCompanyName:
                          type: string
                        currentCompanyWebsite:
                          type: string
                        linkedinID:
                          type: string
                        emails:
                          type: array
                          items:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties: {}
                        phones:
                          type: array
                          items:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties: {}
                      additionalProperties: {}
                    description: Search results normalized to the CRM upsert shape.
                  resolvedPersonIds:
                    type: array
                    items:
                      type: string
                  creditsCharged:
                    type: number
                  billing:
                    type: object
                    properties:
                      estimatedCents:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                        description: >-
                          Search cost ceiling authorized by Dench billing, in
                          cents.
                      chargedCents:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                        description: >-
                          Actual workspace search charge reported by Dench
                          billing, in cents.
                    required:
                      - estimatedCents
                      - chargedCents
                    additionalProperties: false
                  metadata:
                    type: object
                    properties:
                      total:
                        description: >-
                          Total matches for the search. Stable across pages;
                          absent when only an estimate exists.
                        type: number
                      totalIsEstimate:
                        description: >-
                          True when the total is a lower bound rather than
                          exact.
                        type: boolean
                      offset:
                        type: number
                      nextPageToken:
                        description: >-
                          Opaque token for the next page. Pass it back as
                          pageToken; absent on the last page.
                        type: string
                    additionalProperties: {}
                required:
                  - source
                  - people
                  - resolvedPersonIds
                  - creditsCharged
                additionalProperties: {}
              example:
                source: live
                people:
                  - fullName: Jane Doe
                    firstName: Jane
                    lastName: Doe
                    headline: VP Engineering
                    currentCompanyName: Acme
                    currentCompanyWebsite: acme.com
                    linkedinID: janedoe
                resolvedPersonIds:
                  - per_abc123
                creditsCharged: 1
                billing:
                  estimatedCents: 1
                  chargedCents: 1
                metadata:
                  total: 1
                  offset: 0
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - DenchApiKey: []
        - AgentSession: []
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    NotFound:
      description: Operation or resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: Server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
            - code
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: string
            details: {}
  securitySchemes:
    DenchApiKey:
      type: http
      scheme: bearer
      bearerFormat: DENCH_API_KEY
      description: >-
        Workspace-scoped Dench API key from workspace settings. This is the same
        key used by DENCH_API_KEY in sandboxes.
    AgentSession:
      type: http
      scheme: bearer
      bearerFormat: dch_agent_*
      description: >-
        Agent session token created by `dench signin`. Gateway-backed routes
        exchange this token for the workspace gateway key.

````

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