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

# Search company contacts

> Search and retrieve contacts associated with a specific company. Supports filtering by name, job title, location, and LinkedIn URL.



## OpenAPI

````yaml https://api.getpg.ai/docs/v1/openapi.json post /companies/{company_id}/contacts
openapi: 3.0.0
info:
  title: PG:AI Public API
  version: 1.0.0
  description: >-
    Public API for accessing PG:AI account intelligence, contacts, territories,
    and more. All endpoints require API key authentication via the x-api-key
    header.
  contact:
    name: PG:AI Support
    url: https://www.getpg.ai
servers:
  - url: https://api.getpg.ai/public-api/v1
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /companies/{company_id}/contacts:
    post:
      tags:
        - companies
      summary: Search company contacts
      description: >-
        Search and retrieve contacts associated with a specific company.
        Supports filtering by name, job title, location, and LinkedIn URL.
      parameters:
        - name: company_id
          in: path
          required: true
          schema:
            type: string
          description: UUID of the company
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                page:
                  type: integer
                  description: Page number for pagination
                per_page:
                  type: integer
                  description: >-
                    Page size. Default 25, maximum 50 on all list endpoints.
                    Omit to use the default; increase up to 50 only if you need
                    larger pages.
                name:
                  type: string
                  description: Filter by contact name
                job_title:
                  type: string
                  description: Filter by job title
                location:
                  type: string
                  description: Filter by location
                linkedin_url:
                  type: string
                  description: Filter by LinkedIn URL
      responses:
        '200':
          description: Success - list of contacts with pagination
          content:
            application/json:
              schema:
                type: object
                description: Response data
        '400':
          description: Invalid company ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'Access denied. Required: contacts:read'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Company not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Error:
      type: object
      description: Error response
      properties:
        error:
          type: string
          description: Error type or code
        message:
          type: string
          description: Human-readable error message
        details:
          type: object
          description: Additional error details
          additionalProperties: true
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your API key for authentication. Get your API key from the PG:AI
        dashboard under Settings > API Keys.

````