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

# Search for persons

> Search for persons using various criteria:
    - Email/Phone search: Exact match, returns all matching persons
    - Name search: Partial match (case-insensitive), returns up to 20 results
    - At least one search parameter (email, phone, or name) must be provided
    - Results include basic person details and all associated contact information



## OpenAPI

````yaml GET /v0/persons/search
openapi: 3.1.0
info:
  title: Stardex API (v0)
  version: 0.0.1
  description: Stardex ATS legacy API.
servers:
  - url: https://api.stardex.ai
    description: Production API server
security:
  - bearerAuth: []
tags: []
paths:
  /v0/persons/search:
    get:
      tags:
        - people
      summary: Search for persons by email, phone, or name
      description: |-
        Search for persons using various criteria:
            - Email/Phone search: Exact match, returns all matching persons
            - Name search: Partial match (case-insensitive), returns up to 20 results
            - At least one search parameter (email, phone, or name) must be provided
            - Results include basic person details and all associated contact information
      parameters:
        - schema:
            type: string
            format: email
            description: Email address to search for
          required: false
          name: email
          in: query
        - schema:
            type: string
            description: Phone number to search for
          required: false
          name: phone
          in: query
        - schema:
            type: string
            description: Name to search for
          required: false
          name: name
          in: query
      responses:
        '200':
          description: Successfully retrieved search results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchPersonsResponse'
              example:
                error: null
                data:
                  - id: 123e4567-e89b-12d3-a456-426614174000
                    name: John Smith
                    linkedin_public_id: john-smith-123
                    first_name: John
                    last_name: Smith
                    current_job_title: Software Engineer
                    emails:
                      - contact_data_type: work
                        value: john.smith@company.com
                    phones:
                      - contact_data_type: mobile
                        value: '+1234567890'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchPersonsResponse'
              example:
                error: Invalid request parameters
                data: null
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchPersonsResponse'
              example:
                error: Internal server error
                data: null
components:
  schemas:
    SearchPersonsResponse:
      type: object
      properties:
        error:
          type:
            - string
            - 'null'
        data:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/PersonSearchResult'
      required:
        - error
        - data
    PersonSearchResult:
      type: object
      properties:
        id:
          type: string
        name:
          type:
            - string
            - 'null'
        linkedin_public_id:
          type:
            - string
            - 'null'
        first_name:
          type:
            - string
            - 'null'
        last_name:
          type:
            - string
            - 'null'
        current_job_title:
          type:
            - string
            - 'null'
        emails:
          type: array
          items:
            $ref: '#/components/schemas/ContactValue'
        phones:
          type: array
          items:
            $ref: '#/components/schemas/ContactValue'
      required:
        - id
        - name
        - linkedin_public_id
        - first_name
        - last_name
        - current_job_title
        - emails
        - phones
    ContactValue:
      type: object
      properties:
        contact_data_type:
          type:
            - string
            - 'null'
          description: Category of contact (work/personal/etc)
        value:
          type: string
          description: Contact value
      required:
        - contact_data_type
        - value
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Authenticate with a Bearer token: API key, OAuth token, or session
        token.

````