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

# Provision default organization

> Create a default organization for the user during OAuth signup flow. Idempotent - returns existing organization if one exists.



## OpenAPI

````yaml api-docs/app-team/auth.json post /v1/auth/me/provision-default-organization
openapi: 3.1.1
info:
  title: Auth API
  version: 1.0.0
  description: >-
    Auth API supporting the k0rdent Enterprise authentication and authorization
    service
servers:
  - url: http://localhost:8000
    description: Local Development
security: []
paths:
  /v1/auth/me/provision-default-organization:
    post:
      tags:
        - Profile
      summary: Provision default organization
      description: >-
        Create a default organization for the user during OAuth signup flow.
        Idempotent - returns existing organization if one exists.
      responses:
        '200':
          description: User already has an organization
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      organization:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          slug:
                            type: string
                        required:
                          - id
                          - name
                          - slug
                      isNew:
                        type: boolean
                    required:
                      - organization
                      - isNew
                  meta:
                    type: object
                    properties:
                      requestId:
                        type: string
                      timestamp:
                        type: string
                    required:
                      - requestId
                      - timestamp
                required:
                  - success
                  - data
                  - meta
        '201':
          description: Default organization created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      organization:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          slug:
                            type: string
                        required:
                          - id
                          - name
                          - slug
                      isNew:
                        type: boolean
                    required:
                      - organization
                      - isNew
                  meta:
                    type: object
                    properties:
                      requestId:
                        type: string
                      timestamp:
                        type: string
                    required:
                      - requestId
                      - timestamp
                required:
                  - success
                  - data
                  - meta
        '401':
          description: Unauthorized - Authentication required
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                  meta:
                    type: object
                    properties:
                      requestId:
                        type: string
                      timestamp:
                        type: string
                    required:
                      - requestId
                      - timestamp
                required:
                  - success
                  - error
                  - meta
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                  meta:
                    type: object
                    properties:
                      requestId:
                        type: string
                      timestamp:
                        type: string
                    required:
                      - requestId
                      - timestamp
                required:
                  - success
                  - error
                  - meta

````