> ## 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.

# Get company by ID

> Retrieve detailed information about a specific company. Requires "insights:read" permission.



## OpenAPI

````yaml https://api.getpg.ai/docs/v1/openapi.json get /companies/{company_id}
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}:
    get:
      tags:
        - companies
      summary: Get company by ID
      description: >-
        Retrieve detailed information about a specific company. Requires
        "insights:read" permission.
      parameters:
        - name: company_id
          in: path
          required: true
          schema:
            type: string
          description: Company ID (UUID)
      responses:
        '200':
          description: Company found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Company'
        '400':
          description: Bad request - Company ID is required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'Forbidden - Insufficient permissions. Required: insights:read'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Company not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Company:
      type: object
      description: Company information
      properties:
        company_id:
          type: string
          format: uuid
        company_name:
          type: string
        website_domain:
          type: string
        public_company:
          type: boolean
        country_code:
          type: string
          nullable: true
        linkedin_url:
          type: string
          nullable: true
        hq_city:
          type: string
          nullable: true
        hq_state:
          type: string
          nullable: true
        hq_address:
          type: string
          nullable: true
        hq_postcode:
          type: string
          nullable: true
        hq_country_name:
          type: string
          nullable: true
        region:
          type: string
          nullable: true
        ceo:
          type: string
          nullable: true
        sector:
          type: string
          nullable: true
        industry:
          type: string
          nullable: true
        revenue_range:
          type: string
          nullable: true
        employee_count_range:
          type: string
          nullable: true
        full_time_employees:
          type: integer
          nullable: true
        alternative_domains:
          type: array
          items:
            type: string
          nullable: true
        alternative_names:
          type: array
          items:
            type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          nullable: true
        description:
          type: string
          nullable: true
        stock_ticker:
          type: string
          nullable: true
        market_cap:
          type: number
          nullable: true
        stock_currency:
          type: string
          nullable: true
        stock_exchange_name:
          type: string
          nullable: true
        stock_exchange_symbol:
          type: string
          nullable: true
      required:
        - company_id
    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.

````