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

# Create new organisation

> Creates a new organisation



## OpenAPI

````yaml /openapi/squad-api.json post /organisations
openapi: 3.1.0
info:
  title: Squad API
  version: 4.8.0
  description: API for managing Squad resources
  contact:
    name: Squad Support
    url: https://www.meetsquad.ai/support
    email: help@meetsquad.ai
servers:
  - url: https://api.meetsquad.ai
    description: Production server
  - url: https://uat.api.meetsquad.ai
    description: Staging server
  - url: https://dev.api.meetsquad.ai
    description: Development server
security: []
tags:
  - name: Organisations
  - name: Workspaces
  - name: Goals
  - name: Opportunities
  - name: Solutions
  - name: Feedback
  - name: Submit Feedback
  - name: Insights
  - name: Knowledge
  - name: Metrics
  - name: Topics
  - name: Integrations
  - name: AI & Search
  - name: Onboarding
paths:
  /organisations:
    post:
      tags:
        - Organisations
      summary: Create new organisation
      description: Creates a new organisation
      operationId: createOrganisation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrganisationPayload'
      responses:
        '200':
          description: Organisation created successfully
          content:
            application/json:
              schema:
                description: Response containing a single organisation
                type: object
                properties:
                  data:
                    description: Organisation data
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      name:
                        description: Name of the organisation
                        example: Acme Corporation
                        type: string
                      stripeCustomerId:
                        description: Stripe customer ID for billing
                        example: cus_1234567890
                        type: string
                      homepageUrl:
                        description: URL to the organisation's homepage
                        example: https://acme.example.com
                        type:
                          - string
                          - 'null'
                      logoUrl:
                        description: URL to the organisation's logo
                        example: https://acme.example.com/logo.png
                        type:
                          - string
                          - 'null'
                      createdAt:
                        description: Creation timestamp
                        example: '2025-03-26T22:35:46Z'
                        type: string
                      accountType:
                        $ref: '#/components/schemas/OrganisationAccountTypeEnum'
                        description: Account type
                        example: HOBBY
                      billingCycleStartDate:
                        description: The start date of the current billing cycle.
                        example: '2025-03-26T22:35:46Z'
                        type: string
                      billingCycleFlexCreditAllowance:
                        description: >-
                          Number of flex credits available at the start of the
                          current billing cycle.
                        example: 100000
                        type: number
                      updatedAt:
                        description: Last update timestamp
                        example: '2025-03-26T22:35:46Z'
                        type: string
                      status:
                        description: Status of the organisation
                        example: ACTIVE
                        default: ACTIVE
                        type: string
                        enum:
                          - ACTIVE
                          - ARCHIVED
                      unprocessedFeedbackCount:
                        description: Number of unprocessed insight items
                        example: 123
                        type: number
                    required:
                      - id
                      - name
                      - createdAt
                      - accountType
                      - billingCycleStartDate
                      - billingCycleFlexCreditAllowance
                      - updatedAt
                      - status
                      - unprocessedFeedbackCount
                    additionalProperties: false
                required:
                  - data
                additionalProperties: false
        '400':
          description: Bad Request - Invalid input
          content:
            application/json:
              schema:
                description: >-
                  Bad Request - Invalid input parameters or missing required
                  fields
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        description: Error code identifier
                        example: INVALID_REQUEST
                        type: string
                      description:
                        description: Human-readable error description
                        example: One or more fields are invalid
                        type: string
                      fields:
                        description: List of field names that are missing or invalid
                        example:
                          - title
                          - description
                        type: array
                        items:
                          type: string
                      validationErrors:
                        description: >-
                          Detailed validation error information for each invalid
                          field
                        example:
                          invalidFields:
                            title:
                              type: too_small
                              message: Title must be at least 3 characters long
                              path:
                                - title
                            deadline:
                              type: invalid_date
                              message: Deadline must be a valid date in the future
                              path:
                                - deadline
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties: {}
                    required:
                      - code
                      - description
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '401':
          description: Unauthorized - Authentication required
          content:
            application/json:
              schema:
                description: Unauthorized - Missing or invalid authentication token
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        description: Error code identifier
                        example: UNAUTHORISED_ERROR
                        type: string
                      description:
                        description: Human-readable error description
                        example: User is unauthenticated
                        type: string
                    required:
                      - code
                      - description
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '403':
          description: Forbidden - Insufficient permissions
          content:
            application/json:
              schema:
                description: Forbidden - Insufficient permissions to access this resource
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        description: Error code identifier
                        example: UNAUTHORISED_ERROR
                        type: string
                      description:
                        description: Human-readable error description
                        example: User is unauthorised
                        type: string
                    required:
                      - code
                      - description
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                description: >-
                  Internal Server Error - An unexpected error occurred on the
                  server
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        description: Error code identifier
                        example: INTERNAL_SERVER_ERROR
                        type: string
                      description:
                        description: Human-readable error description
                        example: An unexpected error occurred on the server
                        type: string
                    required:
                      - code
                      - description
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
      security:
        - bearerAuth: []
components:
  schemas:
    CreateOrganisationPayload:
      description: Request schema for creating an organisation
      type: object
      properties:
        name:
          description: Name of the organisation
          example: Acme Corporation
          type: string
        homepageUrl:
          type:
            - string
            - 'null'
        logoUrl:
          type:
            - string
            - 'null'
      required:
        - name
        - homepageUrl
        - logoUrl
    OrganisationAccountTypeEnum:
      type: string
      enum:
        - HOBBY
        - PROFESSIONAL
        - TEAM
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT authentication for organization-scoped endpoints.

````