> ## 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 and add up to 50 people to an existing campaign. New identities become Leads. Search credits apply; use nextPageToken for another page

> Search and add up to 50 people to an existing campaign. New identities become Leads. Search credits apply; use nextPageToken for another page.



## OpenAPI

````yaml /api-reference/openapi.json post /campaigns/{sequenceId}/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:
  /campaigns/{sequenceId}/people/search:
    post:
      tags:
        - campaigns
      summary: >-
        Search and add up to 50 people to an existing campaign. New identities
        become Leads. Search credits apply; use nextPageToken for another page
      description: >-
        Search and add up to 50 people to an existing campaign. New identities
        become Leads. Search credits apply; use nextPageToken for another page.
      operationId: campaigns_people_addFromSearch
      parameters:
        - name: sequenceId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filters:
                  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
                    preferCache:
                      type: boolean
                  additionalProperties: false
                limit:
                  type: integer
                  minimum: 1
                  maximum: 50
                pageToken:
                  type: string
                checkDuplicatesAcrossWorkspace:
                  type: boolean
              required:
                - filters
            example:
              filters: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  rows:
                    type: array
                    items:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties: {}
                  people:
                    type: array
                    items: {}
                  recipients:
                    type: array
                    items:
                      type: object
                      properties:
                        email:
                          type: string
                        linkedinProfileUrl:
                          type: string
                        displayName:
                          type: string
                        avatarUrl:
                          description: >-
                            Profile photo URL (https://...) shown on the person
                            inside the campaign.
                          type: string
                        personalization:
                          description: >-
                            Merge values keyed by name, e.g. {"Company":"Acme"}
                            for {{Company}}.
                          type: object
                          propertyNames:
                            type: string
                          additionalProperties: {}
                      additionalProperties: false
                      description: >-
                        One person. Needs email and/or linkedinProfileUrl;
                        unknown keys are rejected, not dropped.
                  metadata:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties: {}
                  estimatedCents:
                    anyOf:
                      - type: number
                      - type: 'null'
                    description: >-
                      The search cost ceiling reported by Dench billing, in
                      cents. Null means the receipt is unavailable.
                  chargedCents:
                    anyOf:
                      - type: number
                      - type: 'null'
                    description: >-
                      The actual search charge reported by Dench billing, in
                      cents. Null means the receipt is unavailable; results
                      remain valid.
                  added:
                    type: number
                  requested:
                    type: number
                  cappedAtLimit:
                    anyOf:
                      - type: number
                      - type: 'null'
                  duplicates:
                    type: number
                  duplicatesElsewhere:
                    type: number
                  suppressed:
                    type: number
                  invalid:
                    type: number
                  skippedNoIdentity:
                    type: number
                  skippedMissingInfo:
                    type: number
                  missingInfoSample: {}
                  found:
                    type: number
                  skippedSearchProfiles:
                    type: number
                required:
                  - rows
                  - people
                  - recipients
                  - metadata
                  - estimatedCents
                  - chargedCents
                  - added
                  - requested
                  - cappedAtLimit
                  - duplicates
                  - duplicatesElsewhere
                  - suppressed
                  - invalid
                  - skippedNoIdentity
                  - skippedMissingInfo
                  - found
                  - skippedSearchProfiles
                additionalProperties: false
        '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.