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

# List companies

> List companies visible to the authenticated legacy affiliate API key.

Lists companies visible to the authenticated legacy affiliate API key.

A company is the Commenda account-level container for the customer you are onboarding. It is not the incorporated legal entity itself.

Partner API callers should use [List customers](/engine/partner-api/customers-GET).


## OpenAPI

````yaml GET /public/companies
openapi: 3.0.1
info:
  title: Commenda Public APIs
  description: >-
    APIs for Commenda entity management, partner incorporation, indirect tax,
    compliance, and corporate operations.
  license:
    name: NONE
    url: NONE
  version: 1.0.0
servers:
  - url: https://api.prod.commenda.io/api/v1
    description: Commenda platform APIs, including Partner Incorporation and Commenda OS.
  - url: https://transaction-tax.api.in.commenda.io/api/v1
    description: Global Indirect Tax API.
security:
  - bearerAuth: []
paths:
  /public/companies:
    get:
      summary: List companies
      description: List companies visible to the authenticated legacy affiliate API key.
      operationId: listAffiliateCompanies
      responses:
        '200':
          description: Companies retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateListCompaniesResponse'
        '401':
          description: Missing or invalid affiliate API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliatePublicError'
      security:
        - xApiKeyAuth: []
      servers:
        - url: https://api.prod.commenda.io/api/v1
components:
  schemas:
    AffiliateListCompaniesResponse:
      type: object
      required:
        - companies
        - count
      properties:
        companies:
          type: array
          items:
            $ref: '#/components/schemas/AffiliateCompany'
        count:
          type: integer
          example: 1
    AffiliatePublicError:
      type: object
      required:
        - statusCode
        - message
        - error
      properties:
        statusCode:
          type: integer
          example: 403
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: Company does not belong to this affiliate firm
        error:
          type: string
          example: Forbidden
    AffiliateCompany:
      type: object
      required:
        - companyId
        - name
        - createdAt
        - updatedAt
      properties:
        companyId:
          type: integer
          description: Internal Commenda company identifier.
          example: 77
        name:
          type: string
          nullable: true
          description: Display name for the company.
          example: Acme Holdings
        createdAt:
          type: string
          format: date-time
          nullable: true
          description: Timestamp when the company container was created.
          example: '2026-04-20T19:35:00.000Z'
        updatedAt:
          type: string
          format: date-time
          description: Timestamp when the company container was last updated.
          example: '2026-04-20T19:40:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    xApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````