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

# Create a new project

> Creates a new project within the user's organization (determined from JWT claims). The project is automatically linked to the organization and default project groups receive permissions. A UUID will be generated for the project ID unless external_id is provided.



## OpenAPI

````yaml /openapi/em-runtime-governance-v2.yaml post /governance/projects
openapi: 3.1.0
info:
  title: em_runtime_governance
  version: 5.27.0
servers: []
security: []
paths:
  /governance/projects:
    post:
      tags:
        - projects
      summary: Create a new project
      description: >-
        Creates a new project within the user's organization (determined from
        JWT claims). The project is automatically linked to the organization and
        default project groups receive permissions. A UUID will be generated for
        the project ID unless external_id is provided.
      operationId: create_project
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectCreateRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectCreateResponse'
        '400':
          description: Invalid input or project already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ProjectCreateRequest:
      properties:
        name:
          type: string
          title: Name
          description: Display name of the project
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
          description: >-
            External identifier for the project (e.g., for integration with
            external systems)
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Optional description of the project's purpose
        project_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Type
          description: Type of project (e.g., 'analytics', 'ml', 'data-pipeline')
      type: object
      required:
        - name
      title: ProjectCreateRequest
      description: Request body for creating a project.
    ProjectCreateResponse:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier of the created project
        external_id:
          type: string
          title: External Id
          description: External identifier for the project
        name:
          type: string
          title: Name
          description: Display name of the project
        organization_id:
          type: string
          title: Organization Id
          description: ID of the organization this project belongs to
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the project was created
      type: object
      required:
        - id
        - external_id
        - name
        - organization_id
        - created_at
      title: ProjectCreateResponse
      description: Response body for a newly created project.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorResponse
      description: Standard error response model.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ErrorBody:
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          title: Message
        details:
          additionalProperties: true
          type: object
          title: Details
        request_id:
          type: string
          title: Request Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - code
        - message
        - request_id
        - timestamp
      title: ErrorBody
      description: Error body with structured details.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - INVALID_TOKEN
        - INSUFFICIENT_PERMISSIONS
        - RESOURCE_NOT_FOUND
        - RESOURCE_ALREADY_EXISTS
        - VALIDATION_ERROR
        - RATE_LIMIT_EXCEEDED
        - SERVICE_UNAVAILABLE
        - INTERNAL_ERROR
      title: ErrorCode
      description: Standard error codes for API responses.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````