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

# Get Company

> Retrieves details of a specific company by its unique identifier.



## OpenAPI

````yaml GET /public/v2/companies/{company_id}
openapi: 3.0.3
info:
  title: RevyOps API
  version: 1.0.0
servers: []
security: []
paths:
  /public/v2/companies/{company_id}:
    get:
      tags:
        - public
      description: Retrieves details of a specific company by its unique identifier.
      operationId: Get company (v2)
      parameters:
        - in: path
          name: company_id
          schema:
            type: integer
          required: true
        - in: query
          name: structure
          schema:
            type: string
            enum:
              - FLAT
              - NESTED
            default: NESTED
          description: >-
            Format of custom fields in response. NESTED returns array of objects
            with id, field_name, field_value. FLAT returns object with field
            names as keys.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Company'
          description: OK. The company was successfully retrieved.
        '401':
          description: Unauthorized. API KEY not authorized to access this client_id.
        '403':
          description: Forbidden. Missing authentication credentials or invalid API key.
        '404':
          description: Not Found. Company with this ID does not exist.
        '500':
          description: Internal Server Error. An unexpected error occurred on the server.
components:
  schemas:
    Company:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        updated_time:
          type: string
          format: date-time
          readOnly: true
        domain:
          type: string
        name:
          type: string
        company_status:
          type: string
        company_custom_fields:
          type: array
          items:
            $ref: '#/components/schemas/CompanyCustomFields'
        previous_status:
          type: string
          readOnly: true
          nullable: true
        status_changed_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
      required:
        - domain
        - id
        - previous_status
        - status_changed_at
        - updated_time
    CompanyCustomFields:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        updated_time:
          type: string
          format: date-time
          readOnly: true
        field_name:
          type: string
        field_value:
          type: string
          maxLength: 2500
      required:
        - field_name
        - field_value
        - id
        - updated_time

````