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

# Create Organizations

> Create organization(s) - supports single or bulk creation (max 100)



## OpenAPI

````yaml /api/openapi.yaml post /v1/organizations
openapi: 3.0.3
info:
  title: Documentation Service API
  description: API documentation for Documentation Service
  version: 1.0.0
servers:
  - url: https://api.us.lexful.app
    description: US pod
security:
  - bearerAuth: []
    accountId: []
paths:
  /v1/organizations:
    post:
      tags:
        - Organizations
      summary: Create Organizations
      description: Create organization(s) - supports single or bulk creation (max 100)
      requestBody:
        $ref: '#/components/requestBodies/post_v1_organizations_request'
      responses:
        '201':
          $ref: '#/components/responses/CreateOrganizationsResponse'
        '400':
          $ref: '#/components/responses/BadRequestResponse'
        '403':
          $ref: '#/components/responses/ForbiddenResponse'
        '409':
          $ref: '#/components/responses/ConflictResponse'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponse'
components:
  requestBodies:
    post_v1_organizations_request:
      required: true
      content:
        application/json:
          schema:
            $ref: >-
              #/components/schemas/post_v1_organizations_request_application_json
  responses:
    CreateOrganizationsResponse:
      description: Default Response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CreateOrganizationsResponse_application_json'
    BadRequestResponse:
      description: Bad request - validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ForbiddenResponse:
      description: Forbidden - insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ConflictResponse:
      description: Conflict - resource already exists
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerErrorResponse:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    post_v1_organizations_request_application_json:
      oneOf:
        - type: object
          properties:
            name:
              type: string
              minLength: 1
              maxLength: 255
              description: Organization name
            slug:
              type: string
              pattern: ^[a-z0-9_-]+$
              minLength: 1
              maxLength: 100
              description: >-
                Organization slug (lowercase alphanumeric, underscores, and
                hyphens only)
            type:
              type: string
              description: Organization type
            status:
              type: string
              description: Organization status
            is_primary:
              type: boolean
              description: Whether this is the primary organization
            description:
              type: string
              description: Organization description
            logo_url:
              type: string
              format: uri
              description: Organization logo URL
            website_url:
              type: string
              format: uri
              description: Organization website URL
            notes:
              type: string
              description: Internal notes
            alert:
              type: string
              description: Alert message
            parent_id:
              type: string
              format: uuid
              description: Parent organization ID
            asset_management:
              type: string
              enum:
                - disabled
                - enabled
                - read_only
              description: Asset management status - controls entity CRUD operations
          required:
            - name
            - slug
            - type
            - status
        - type: array
          items:
            $ref: >-
              #/components/schemas/post_v1_organizations_request_application_json_items
          minItems: 1
          maxItems: 100
    CreateOrganizationsResponse_application_json:
      oneOf:
        - type: object
          properties:
            id:
              type: string
              format: uuid
              description: Organization unique identifier
            is_primary:
              type: boolean
              description: Whether this is the primary organization
            name:
              type: string
              description: Organization name
            slug:
              type: string
              description: Organization slug (URL-friendly identifier)
            type:
              type: string
              description: Organization type
            status:
              type: string
              description: Organization status
            description:
              type: string
              nullable: true
              description: Organization description
            logo_url:
              type: string
              nullable: true
              format: uri
              description: Organization logo URL
            website_url:
              type: string
              nullable: true
              format: uri
              description: Organization website URL
            notes:
              type: string
              nullable: true
              description: Internal notes
            alert:
              type: string
              nullable: true
              description: Alert message for this organization
            parent_id:
              type: string
              nullable: true
              format: uuid
              description: Parent organization ID
            asset_management:
              type: string
              enum:
                - disabled
                - enabled
                - read_only
              description: Asset management status - controls entity CRUD operations
            tags:
              type: array
              description: Expanded tags (only present when expand=tags is used)
              items:
                $ref: >-
                  #/components/schemas/CreateOrganizationsResponse_application_json_tags_items
            created_at:
              type: string
              format: date-time
              description: Creation timestamp
            updated_at:
              type: string
              format: date-time
              description: Last update timestamp
            created_by:
              type: string
              description: User ID who created the organization
            updated_by:
              type: string
              description: User ID who last updated the organization
            deleted_at:
              type: string
              nullable: true
              format: date-time
              description: Deletion timestamp
          required:
            - id
            - name
            - slug
            - type
            - status
            - is_primary
        - type: object
          properties:
            items:
              type: array
              items:
                $ref: >-
                  #/components/schemas/CreateOrganizationsResponse_application_json_items_items
            total:
              type: number
          required:
            - items
            - total
    ErrorResponse:
      description: Bad request - validation error
      type: object
      properties:
        status:
          type: number
          description: HTTP status code
        message:
          type: string
          description: Error message
        error_id:
          type: string
          description: Unique error identifier
        error_code:
          type: string
          description: Error code
        developer_message:
          type: string
          description: Additional details for developers
    post_v1_organizations_request_application_json_items:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: Organization name
        slug:
          type: string
          pattern: ^[a-z0-9_-]+$
          minLength: 1
          maxLength: 100
          description: >-
            Organization slug (lowercase alphanumeric, underscores, and hyphens
            only)
        type:
          type: string
          description: Organization type
        status:
          type: string
          description: Organization status
        is_primary:
          type: boolean
          description: Whether this is the primary organization
        description:
          type: string
          description: Organization description
        logo_url:
          type: string
          format: uri
          description: Organization logo URL
        website_url:
          type: string
          format: uri
          description: Organization website URL
        notes:
          type: string
          description: Internal notes
        alert:
          type: string
          description: Alert message
        parent_id:
          type: string
          format: uuid
          description: Parent organization ID
        asset_management:
          type: string
          enum:
            - disabled
            - enabled
            - read_only
          description: Asset management status - controls entity CRUD operations
      required:
        - name
        - slug
        - type
        - status
    CreateOrganizationsResponse_application_json_tags_items:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Tag ID
        name:
          type: string
          description: Tag name
        color:
          type: string
          description: Tag color (hex code)
    CreateOrganizationsResponse_application_json_items_items:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Organization unique identifier
        is_primary:
          type: boolean
          description: Whether this is the primary organization
        name:
          type: string
          description: Organization name
        slug:
          type: string
          description: Organization slug (URL-friendly identifier)
        type:
          type: string
          description: Organization type
        status:
          type: string
          description: Organization status
        description:
          type: string
          nullable: true
          description: Organization description
        logo_url:
          type: string
          nullable: true
          format: uri
          description: Organization logo URL
        website_url:
          type: string
          nullable: true
          format: uri
          description: Organization website URL
        notes:
          type: string
          nullable: true
          description: Internal notes
        alert:
          type: string
          nullable: true
          description: Alert message for this organization
        parent_id:
          type: string
          nullable: true
          format: uuid
          description: Parent organization ID
        asset_management:
          type: string
          enum:
            - disabled
            - enabled
            - read_only
          description: Asset management status - controls entity CRUD operations
        tags:
          type: array
          description: Expanded tags (only present when expand=tags is used)
          items:
            $ref: >-
              #/components/schemas/CreateOrganizationsResponse_application_json_items_items_tags_items
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp
        created_by:
          type: string
          description: User ID who created the organization
        updated_by:
          type: string
          description: User ID who last updated the organization
        deleted_at:
          type: string
          nullable: true
          format: date-time
          description: Deletion timestamp
      required:
        - id
        - name
        - slug
        - type
        - status
        - is_primary
    CreateOrganizationsResponse_application_json_items_items_tags_items:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Tag ID
        name:
          type: string
          description: Tag name
        color:
          type: string
          description: Tag color (hex code)
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token
    accountId:
      type: apiKey
      in: header
      name: X-Account-ID
      description: Account ID

````