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

# Search for people

> Search for people matching filters with cursor-based pagination.

**First page:** send filters — returns up to 25 results, a `next_cursor` (opaque pagination token), `has_more`, and `total_count`.

**Next pages:** pass back the `next_cursor` from the previous response — returns the next 25 results and a new `next_cursor`. Repeat while `has_more` is true.

The cursor is opaque; do not introspect it. Invalid or expired cursors return 400; start a fresh search.

Each page consumes 1 credit per result returned.



## OpenAPI

````yaml /reference/openapi.yaml post /v2/people/search
openapi: 3.1.0
info:
  title: Tamtam Public API
  version: 2.0.0
servers:
  - url: https://api.tamtam.ai/api
security: []
paths:
  /v2/people/search:
    post:
      tags:
        - People Search
      summary: Search for people
      description: >-
        Search for people matching filters with cursor-based pagination.


        **First page:** send filters — returns up to 25 results, a `next_cursor`
        (opaque pagination token), `has_more`, and `total_count`.


        **Next pages:** pass back the `next_cursor` from the previous response —
        returns the next 25 results and a new `next_cursor`. Repeat while
        `has_more` is true.


        The cursor is opaque; do not introspect it. Invalid or expired cursors
        return 400; start a fresh search.


        Each page consumes 1 credit per result returned.
      operationId: search-people
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchPeopleV2InputBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchPeopleV2OutputBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - apikeyAuth: []
        - bearerAuth: []
components:
  schemas:
    SearchPeopleV2InputBody:
      additionalProperties: false
      properties:
        canonical_job_titles_excludes_ids:
          description: Canonical job title IDs to exclude
          items:
            type: string
          type:
            - array
            - 'null'
        canonical_job_titles_includes_ids:
          description: Canonical job title IDs to include
          items:
            type: string
          type:
            - array
            - 'null'
        company_headcounts:
          description: >-
            Company headcount band codes (single letter). A=self-employed,
            B=1-10, C=11-50, D=51-200, E=201-500, F=501-1000, G=1001-5000,
            H=5001-10000, I=10001+.
          examples:
            - - C
          items:
            type: string
          type:
            - array
            - 'null'
        company_hq_countries:
          description: Company HQ country codes
          examples:
            - - FR
          items:
            type: string
          type:
            - array
            - 'null'
        company_linkedin_ids:
          description: LinkedIn company IDs to filter by
          examples:
            - - '104924588'
          items:
            type: string
          type:
            - array
            - 'null'
        countries:
          description: Country codes to filter by
          examples:
            - - FR
          items:
            type: string
          type:
            - array
            - 'null'
        cursor:
          description: Deprecated. Ignored by the server. Use next_cursor.
          type: string
        first_name:
          description: Filter by first name
          examples:
            - Elliot
          type: string
        industry_excludes_ids:
          description: >-
            Industry IDs to exclude.


            Resolve via [Search
            industries](/api-reference/industries/search-industries) and pass
            the returned id.
          examples:
            - - c4d7e6f3-2345-4bcd-aef0-123456789abc
          items:
            type: string
          type:
            - array
            - 'null'
        industry_includes_ids:
          description: >-
            Industry IDs to include.


            Resolve via [Search
            industries](/api-reference/industries/search-industries) and pass
            the returned id.
          examples:
            - - b3c6f5e2-1234-4abc-9def-0123456789ab
          items:
            type: string
          type:
            - array
            - 'null'
        job_titles_excludes:
          description: Job titles to exclude
          examples:
            - - Intern
          items:
            type: string
          type:
            - array
            - 'null'
        job_titles_includes:
          description: Job titles to include
          examples:
            - - Head of Sales
          items:
            type: string
          type:
            - array
            - 'null'
        keywords:
          description: >-
            Free-text refinement hint forwarded to the underlying provider.
            Best-effort — not all providers honor this field, and matches that
            ignore it may still be returned.
          examples:
            - AI sales
          type: string
        last_name:
          description: Filter by last name
          examples:
            - Alderson
          type: string
        next_cursor:
          description: >-
            Opaque pagination token returned by the previous response's
            next_cursor. Pass it back unchanged to fetch the next page. Omit on
            first-page calls. Invalid or expired cursors return 400.
          type: string
        prompt:
          description: >-
            Free-text search prompt (e.g. 'CTOs at fintech startups in France').
            Mutually exclusive with filter fields.
          examples:
            - Head of Sales at AI startups in France
          type: string
        recently_changed_jobs:
          description: Only include people who recently changed jobs
          examples:
            - true
          type: boolean
        seniority_excludes:
          deprecated: true
          description: >-
            Deprecated and unreliable: providers do not consistently honor
            seniority filtering. Kept for backward compatibility.
          items:
            type: string
          type:
            - array
            - 'null'
        seniority_includes:
          deprecated: true
          description: >-
            Deprecated and unreliable: providers do not consistently honor
            seniority filtering. Kept for backward compatibility.
          items:
            type: string
          type:
            - array
            - 'null'
        years_of_experience:
          description: >-
            Refinement hint forwarded to the underlying provider. Allowed
            values: 'Less than 1 year', '1 to 2 years', '3 to 5 years', '6 to 10
            years', 'More than 10'. Best-effort — not all providers honor this
            field, and matches that ignore it may still be returned.
          examples:
            - - 6 to 10 years
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
    SearchPeopleV2OutputBody:
      additionalProperties: false
      properties:
        cursor:
          description: Deprecated. Mirrors next_cursor. Use next_cursor instead.
          type: string
        filter_reasoning:
          description: >-
            When Prompt is used, explains how the AI interpreted the prompt into
            filters. Returned on the first page only.
          examples:
            - Interpreted as Head of Sales, country FR
          type: string
        has_more:
          description: True when more pages can be fetched by passing next_cursor back.
          type: boolean
        next_cursor:
          description: >-
            Opaque pagination token. Pass it back unchanged to fetch the next
            page. Null when there are no more results.
          type: string
        results:
          description: Search results for this page (up to 25)
          items:
            $ref: '#/components/schemas/SearchPeopleV2ResultDto'
          type:
            - array
            - 'null'
        total_count:
          description: Total number of matching results. Returned on the first page only.
          examples:
            - 132
          format: int64
          type: integer
      required:
        - results
        - has_more
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    SearchPeopleV2ResultDto:
      additionalProperties: false
      properties:
        company_linkedin_id:
          description: Company LinkedIn ID
          examples:
            - '104924588'
          type: string
        company_logo_url:
          description: Company logo URL
          examples:
            - https://media.licdn.com/dms/image/tamtam.png
          type: string
        company_name:
          description: Company name
          examples:
            - TAMTAM
          type: string
        contact_id:
          description: Internal contact ID
          examples:
            - b3c6f5e2-1234-4abc-9def-0123456789ab
          type: string
        first_name:
          description: First name
          examples:
            - Elliot
          type: string
        job_title:
          description: Current job title
          examples:
            - Head of Sales
          type: string
        last_name:
          description: Last name
          examples:
            - Alderson
          type: string
        linkedin_profile_id:
          description: LinkedIn profile ID
          examples:
            - elliot-alderson
          type: string
        location:
          description: Person location
          examples:
            - Paris, France
          type: string
        profile_image_url:
          description: Profile image URL
          examples:
            - https://media.licdn.com/dms/image/elliot.png
          type: string
        profile_url:
          description: LinkedIn profile URL
          examples:
            - https://www.linkedin.com/in/elliot-alderson
          type: string
        summary:
          description: Profile summary
          examples:
            - Head of Sales at TAMTAM
          type: string
      required:
        - first_name
        - last_name
        - job_title
        - linkedin_profile_id
        - profile_url
        - contact_id
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apikeyAuth:
      description: Account API key passed in the Authorization header
      in: header
      name: Authorization
      type: apiKey
    bearerAuth:
      description: Bearer JWT obtained via the OAuth 2.1 authorization flow
      scheme: bearer
      type: http

````