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

# Create My Company

> Create a new company and add the current user as a member.



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json post /api/v1/companies/me
openapi: 3.1.0
info:
  title: CATTIX API
  description: CATTIX Backend API
  version: 0.107.0
servers:
  - url: http://localhost:8000
    description: Local
  - url: https://dev-api.cattix.com
    description: Development
  - url: https://staging-api.cattix.com
    description: Staging
  - url: https://api.cattix.com
    description: Production
security: []
paths:
  /api/v1/companies/me:
    post:
      tags:
        - Companies
      summary: Create My Company
      description: Create a new company and add the current user as a member.
      operationId: create_my_company_api_v1_companies_me_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyCreateSchema'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanySchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    CompanyCreateSchema:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: The name of the company
      type: object
      required:
        - name
      title: CompanyCreateSchema
      description: The schema for creating a company.
    CompanySchema:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: The name of the company
        id:
          type: integer
          title: The ID of the company
        date_added:
          type: string
          format: date-time
          title: The date the company was added
        date_updated:
          type: string
          format: date-time
          title: The date the company was updated
      type: object
      required:
        - name
        - id
        - date_added
        - date_updated
      title: CompanySchema
      description: The schema for a company.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````