# Create Managed Company

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/msp/companies/:
    post:
      summary: Create Managed Company
      deprecated: false
      description: ''
      tags:
        - MSP Guide/API Reference/Managed Company
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                msp_node:
                  type: integer
                first_name:
                  type: string
                last_name:
                  type: string
                email:
                  type: string
                selected_packages:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                      license_count:
                        type: integer
                    x-apidog-orders:
                      - id
                      - license_count
              required:
                - name
                - msp_node
                - first_name
                - last_name
                - email
                - selected_packages
              x-apidog-orders:
                - name
                - msp_node
                - first_name
                - last_name
                - email
                - selected_packages
            example:
              name: ''
              msp_node: 1
              first_name: ''
              last_name: ''
              email: ''
              selected_packages:
                - id: 14
                  license_count: 1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  uid:
                    type: string
                  name:
                    type: string
                  msp_node:
                    type: integer
                  packages:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        name:
                          type: string
                        status:
                          type: string
                        type:
                          type: string
                        license_count:
                          type: integer
                      x-apidog-orders:
                        - id
                        - name
                        - status
                        - type
                        - license_count
                  created_at:
                    type: string
                required:
                  - id
                  - uid
                  - name
                  - msp_node
                  - packages
                  - created_at
                x-apidog-orders:
                  - id
                  - uid
                  - name
                  - msp_node
                  - packages
                  - created_at
              example:
                id: 306
                uid: 21aa2d9a-1d61-4b44-af34-dccada5c7460
                name: Acme Corp
                msp_node: 69
                packages:
                  - id: 562
                    name: NFR License
                    status: Active
                    type: NFR
                    license_count: 1
                created_at: '2025-12-31T00:38:17.999810Z'
          headers: {}
          x-apidog-name: ''
        '403':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                required:
                  - detail
                x-apidog-orders:
                  - detail
              example:
                detail: Authentication credentials were not provided.
          headers: {}
          x-apidog-name: Unauthenticated
      security:
        - bearer: []
      x-apidog-folder: MSP Guide/API Reference/Managed Company
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1187388/apis/api-28136259-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers: []
security:
  - bearer: []

```
