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

# Create a company

> Create a new company container for legacy affiliate workflows.

Creates a new company for incorporation and entity management workflows.

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

<Info>
  Partner API callers should use [Create a customer](/engine/partner-api/customers-POST), which returns `customerId` for incorporation and Commenda OS calls.
</Info>

After creating the company, call `GET /partner/incorporation/jurisdiction-catalog` and `GET /partner/incorporation/requirements` to choose the incorporation jurisdiction and understand the required data.


## OpenAPI

````yaml POST /public/company
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/company:
    post:
      summary: Create a company
      description: Create a new company container for legacy affiliate workflows.
      operationId: createAffiliateCompany
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AffiliateCreateCompanyRequest'
      responses:
        '201':
          description: Company created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateCreateCompanyResponse'
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliatePublicError'
        '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:
    AffiliateCreateCompanyRequest:
      type: object
      required:
        - email
      properties:
        email:
          type: string
          format: email
          description: Email address for the new company owner.
          example: founder@example.com
        name:
          type: string
          description: Optional display name used when creating a new company.
          example: Acme Holdings
    AffiliateCreateCompanyResponse:
      type: object
      required:
        - companyId
      properties:
        companyId:
          type: integer
          description: Internal Commenda company identifier.
          example: 77
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    xApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````