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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# People Search with Elasticsearch

> People Search with Elasticsearch

## Request contract

* **Method and path:** POST /apis/v1/people-data-labs/people-search-elastic
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/people-data-labs/people-search-elastic`

[Complete OpenAPI definition](https://aisa.one/docs/openapi-public/people-data-labs.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "people-data-labs.people-search-elastic",
  "method": "POST",
  "path": "/apis/v1/people-data-labs/people-search-elastic",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "dataset": {
              "description": "Specifies the dataset category to search against, filtering results to profiles that have the specified type of data available. Allowed values are: 'resume', 'email', 'phone', 'mobile_phone', 'street_address', 'consumer_social', 'developer', 'all'. Note: Use 'email' here to filter for profiles with email addresses available, rather than querying 'email' as a field in the query parameter.",
              "enum": [
                "resume"
              ],
              "type": "string"
            },
            "pretty": {
              "default": false,
              "description": "If true, formats the JSON response with human-readable indentation. Defaults to false.",
              "examples": [
                true,
                false
              ],
              "type": "boolean"
            },
            "query": {
              "description": "Elasticsearch DSL query string (JSON object) for searching PDL person profiles. Provide just the DSL body (e.g., '{\"bool\": {...}}') without an outer 'query' wrapper.\n\nSupported query types: term, terms, match, match_phrase, prefix, wildcard, range, exists, bool (must/should/filter/must_not).\n\nALL field names MUST use snake_case, NOT camelCase.\n\nValid queryable fields include:\n- Name: full_name, first_name, last_name, middle_name\n- Job: job_title, job_title_role, job_title_class, job_company_name, job_company_industry, job_company_size, job_company_website, job_company_location_*\n- Location (NOT 'location' alone): location_country, location_region, location_locality, location_metro, location_geo\n- Social: linkedin_url, linkedin_username, linkedin_id, facebook_url, facebook_username, twitter_url, twitter_username, github_url, github_username\n- Nested profiles: profiles.network, profiles.url, profiles.username, profiles.id\n- Other: industry, skills, interests, countries, sex, work_email, personal_emails\n\nNOT queryable as fields (use 'dataset' parameter instead): email, phone.\n'experience_level' is not valid — use 'job_title_levels'. 'job_company_domain' is not valid — use 'job_company_website'. 'minimum_should_match' is not supported by PDL's API.\n\nFull field reference: https://docs.peopledatalabs.com/docs/fields-person",
              "examples": [
                "{\"bool\": {\"must\": [{\"term\": {\"job_company_industry\": \"computer software\"}}]}}",
                "{\"bool\": {\"must\": [{\"term\": {\"job_title_role\": \"engineer\"}}, {\"term\": {\"location_country\": \"united states\"}}]}}",
                "{\"bool\": {\"should\": [{\"match\": {\"full_name\": \"john\"}}, {\"match\": {\"first_name\": \"john\"}}]}}"
              ],
              "type": "string"
            },
            "scroll_token": {
              "default": "",
              "description": "A token returned in a previous search response. Provide this token to retrieve the next page of results. Omit or pass an empty string for the first request.",
              "examples": [
                "",
                "627445704a7f000001000000"
              ],
              "type": "string"
            },
            "size": {
              "description": "The number of matched person records to return. Must be an integer between 1 and 100, inclusive.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "titlecase": {
              "default": false,
              "description": "If true, titlecases the person records in the response. Defaults to false.",
              "examples": [
                true,
                false
              ],
              "type": "boolean"
            }
          },
          "required": [
            "dataset",
            "query",
            "size"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.2803 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi-public/people-data-labs.json POST /apis/v1/people-data-labs/people-search-elastic
openapi: 3.1.0
info:
  description: ''
  title: People Data Labs
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    people-data-labs:
      description: ''
      title: People Data Labs
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 4472c9dda3b96dd2c6c9a1c4d4e710bf66733ac807f0bdc12c4ebbb2523b319c
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/people-data-labs/companies-enrich
    - /apis/v1/people-data-labs/companies-search
    - /apis/v1/people-data-labs/company/enrich
    - /apis/v1/people-data-labs/company/search
    - /apis/v1/people-data-labs/enrich-bulk-company-data
    - /apis/v1/people-data-labs/enrich-bulk-person-data
    - /apis/v1/people-data-labs/enrich-company-data
    - /apis/v1/people-data-labs/enrich-person-data
    - /apis/v1/people-data-labs/identify-person-data
    - /apis/v1/people-data-labs/people-enrich
    - /apis/v1/people-data-labs/people-search
    - /apis/v1/people-data-labs/people-search-elastic
    - /apis/v1/people-data-labs/search-company-elastic
    - /apis/v1/people-data-labs/search-company-post
  x-aisa-document:
    composer_version: '31'
    facts_hash: 4472c9dda3b96dd2c6c9a1c4d4e710bf66733ac807f0bdc12c4ebbb2523b319c
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:0739c14979cf93955c9b5b61c78a1fbe87665b75aa7fb889b90285b7120617c1
    document_hash: sha256:b0f5bb366313bbdeffd48b7f58b596fdb80d1f71fd4e8ec6fa9caf413372c7fe
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: people-data-labs
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/people-data-labs/people-search-elastic:
    post:
      tags:
        - People Data Labs
      summary: People Search with Elasticsearch
      operationId: people-data-labs.people-search-elastic
      requestBody:
        content:
          application/json:
            schema:
              properties:
                dataset:
                  description: >-
                    Specifies the dataset category to search against, filtering
                    results to profiles that have the specified type of data
                    available. Allowed values are: 'resume', 'email', 'phone',
                    'mobile_phone', 'street_address', 'consumer_social',
                    'developer', 'all'. Note: Use 'email' here to filter for
                    profiles with email addresses available, rather than
                    querying 'email' as a field in the query parameter.
                  enum:
                    - resume
                  type: string
                pretty:
                  default: false
                  description: >-
                    If true, formats the JSON response with human-readable
                    indentation. Defaults to false.
                  examples:
                    - true
                    - false
                  type: boolean
                query:
                  description: >-
                    Elasticsearch DSL query string (JSON object) for searching
                    PDL person profiles. Provide just the DSL body (e.g.,
                    '{"bool": {...}}') without an outer 'query' wrapper.


                    Supported query types: term, terms, match, match_phrase,
                    prefix, wildcard, range, exists, bool
                    (must/should/filter/must_not).


                    ALL field names MUST use snake_case, NOT camelCase.


                    Valid queryable fields include:

                    - Name: full_name, first_name, last_name, middle_name

                    - Job: job_title, job_title_role, job_title_class,
                    job_company_name, job_company_industry, job_company_size,
                    job_company_website, job_company_location_*

                    - Location (NOT 'location' alone): location_country,
                    location_region, location_locality, location_metro,
                    location_geo

                    - Social: linkedin_url, linkedin_username, linkedin_id,
                    facebook_url, facebook_username, twitter_url,
                    twitter_username, github_url, github_username

                    - Nested profiles: profiles.network, profiles.url,
                    profiles.username, profiles.id

                    - Other: industry, skills, interests, countries, sex,
                    work_email, personal_emails


                    NOT queryable as fields (use 'dataset' parameter instead):
                    email, phone.

                    'experience_level' is not valid — use 'job_title_levels'.
                    'job_company_domain' is not valid — use
                    'job_company_website'. 'minimum_should_match' is not
                    supported by PDL's API.


                    Full field reference:
                    https://docs.peopledatalabs.com/docs/fields-person
                  examples:
                    - >-
                      {"bool": {"must": [{"term": {"job_company_industry":
                      "computer software"}}]}}
                    - >-
                      {"bool": {"must": [{"term": {"job_title_role":
                      "engineer"}}, {"term": {"location_country": "united
                      states"}}]}}
                    - >-
                      {"bool": {"should": [{"match": {"full_name": "john"}},
                      {"match": {"first_name": "john"}}]}}
                  type: string
                scroll_token:
                  default: ''
                  description: >-
                    A token returned in a previous search response. Provide this
                    token to retrieve the next page of results. Omit or pass an
                    empty string for the first request.
                  examples:
                    - ''
                    - 627445704a7f000001000000
                  type: string
                size:
                  description: >-
                    The number of matched person records to return. Must be an
                    integer between 1 and 100, inclusive.
                  maximum: 100
                  minimum: 1
                  type: integer
                titlecase:
                  default: false
                  description: >-
                    If true, titlecases the person records in the response.
                    Defaults to false.
                  examples:
                    - true
                    - false
                  type: boolean
              required:
                - dataset
                - query
                - size
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__public_data
          description: Tool result data
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__cd854e5510d2480e
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__cd854e5510d2480e:
      properties:
        composio_execution_message:
          type: string
        query:
          type: string
        records:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__63b76bca786f0947
          type: array
        scroll_token:
          type: string
        total:
          type: integer
      required:
        - query
        - records
        - scroll_token
        - total
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__63b76bca786f0947:
      properties:
        birth_date:
          anyOf:
            - type: boolean
            - type: string
        birth_year:
          anyOf:
            - type: boolean
            - type: integer
        countries:
          items:
            type: string
          type: array
        dataset_version:
          type: string
        education:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__f45315775795c6e8
          type: array
        emails:
          type: boolean
        experience:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__bb6b7f1e33fa2850
          type: array
        facebook_id:
          type: string
        facebook_url:
          type: string
        facebook_username:
          type: string
        first_name:
          type: string
        full_name:
          type: string
        github_url:
          type: string
        github_username:
          type: string
        id:
          type: string
        industry:
          type: string
        interests:
          items:
            type: string
          type: array
        job_company_facebook_url:
          type: string
        job_company_founded:
          type: integer
        job_company_id:
          type: string
        job_company_industry:
          type: string
        job_company_industry_v2:
          type: string
        job_company_linkedin_id:
          type: string
        job_company_linkedin_url:
          type: string
        job_company_location_address_line_2:
          type: string
        job_company_location_continent:
          type: string
        job_company_location_country:
          type: string
        job_company_location_geo:
          type: string
        job_company_location_locality:
          type: string
        job_company_location_metro:
          type: string
        job_company_location_name:
          type: string
        job_company_location_postal_code:
          type: string
        job_company_location_region:
          type: string
        job_company_location_street_address:
          type: string
        job_company_name:
          type: string
        job_company_size:
          type: string
        job_company_twitter_url:
          type: string
        job_company_website:
          type: string
        job_last_changed:
          type: string
        job_last_verified:
          type: string
        job_start_date:
          type: string
        job_title:
          type: string
        job_title_class:
          type: string
        job_title_levels:
          items:
            type: string
          type: array
        job_title_role:
          type: string
        job_title_sub_role:
          type: string
        last_initial:
          type: string
        last_name:
          type: string
        linkedin_id:
          type: string
        linkedin_url:
          type: string
        linkedin_username:
          type: string
        location_address_line_2:
          type: string
        location_continent:
          type: string
        location_country:
          type: string
        location_geo:
          anyOf:
            - type: boolean
            - type: string
        location_last_updated:
          type: string
        location_locality:
          anyOf:
            - type: boolean
            - type: string
        location_metro:
          anyOf:
            - type: boolean
            - type: string
        location_name:
          anyOf:
            - type: boolean
            - type: string
        location_names:
          anyOf:
            - type: boolean
            - items:
                type: string
              type: array
        location_postal_code:
          anyOf:
            - type: boolean
            - type: string
        location_region:
          anyOf:
            - type: boolean
            - type: string
        location_street_address:
          anyOf:
            - type: boolean
            - type: string
        middle_initial:
          type: string
        middle_name:
          type: string
        mobile_phone:
          anyOf:
            - type: boolean
            - type: string
        personal_emails:
          anyOf:
            - type: boolean
            - items:
                type: string
              type: array
        phone_numbers:
          anyOf:
            - type: boolean
            - items:
                type: string
              type: array
        profiles:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__770e8b2920163057
          type: array
        recommended_personal_email:
          anyOf:
            - type: boolean
            - type: string
        regions:
          anyOf:
            - type: boolean
            - items:
                type: string
              type: array
        sex:
          type: string
        skills:
          items:
            type: string
          type: array
        street_addresses:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: boolean
        twitter_url:
          type: string
        twitter_username:
          type: string
        work_email:
          anyOf:
            - type: boolean
            - type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__f45315775795c6e8:
      properties:
        degrees:
          items:
            type: string
          type: array
        end_date:
          type: string
        gpa:
          anyOf:
            - type: string
            - type: number
        majors:
          items:
            type: string
          type: array
        minors:
          items:
            type: string
          type: array
        school:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__d7c54dd2bc2fa4e5
        start_date:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__bb6b7f1e33fa2850:
      properties:
        company:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__eed0b1123d23cb0f
        end_date:
          type: string
        is_primary:
          type: boolean
        location_names:
          items:
            type: string
          type: array
        start_date:
          type: string
        title:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__a45d521d910e34c8
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__770e8b2920163057:
      properties:
        first_seen:
          type: string
        id:
          type: string
        last_seen:
          type: string
        network:
          type: string
        num_sources:
          type: integer
        url:
          type: string
        username:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__d7c54dd2bc2fa4e5:
      properties:
        domain:
          type: string
        facebook_url:
          type: string
        id:
          type: string
        linkedin_id:
          type: string
        linkedin_url:
          type: string
        location:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__73694151657f12c6
        name:
          type: string
        twitter_url:
          type: string
        type:
          type: string
        website:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__eed0b1123d23cb0f:
      properties:
        facebook_url:
          type: string
        founded:
          type: integer
        id:
          type: string
        industry:
          type: string
        industry_v2:
          type: string
        linkedin_id:
          type: string
        linkedin_url:
          type: string
        location:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__73694151657f12c6
        name:
          type: string
        size:
          type: string
        ticker:
          type: string
        twitter_url:
          type: string
        type:
          type: string
        website:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__a45d521d910e34c8:
      properties:
        class:
          type: string
        levels:
          items:
            type: string
          type: array
        name:
          type: string
        role:
          type: string
        sub_role:
          type: string
      type: object
    Response576A0Ea506F3_connect_PEOPLEDATALABS_PEOPLE_SEARCH_ELASTIC__output__73694151657f12c6:
      properties:
        address_line_2:
          type: string
        continent:
          type: string
        country:
          type: string
        geo:
          type: string
        locality:
          type: string
        metro:
          type: string
        name:
          type: string
        postal_code:
          type: string
        region:
          type: string
        street_address:
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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