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

# Create a project

> Create a project in the caller’s team. Names are case-insensitively unique within a team — duplicates 409. (No DB-level UNIQUE index yet, so a true concurrent race could still collide; see the handler comment.)



## OpenAPI

````yaml /api-reference/openapi.json post /v1/projects
openapi: 3.1.0
info:
  title: no-tickets API
  version: 0.1.0
  description: REST API for the no-tickets team dashboard.
servers: []
security: []
paths:
  /v1/projects:
    post:
      tags:
        - projects
      summary: Create a project
      description: >-
        Create a project in the caller’s team. Names are case-insensitively
        unique within a team — duplicates 409. (No DB-level UNIQUE index yet, so
        a true concurrent race could still collide; see the handler comment.)
      operationId: createProject
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                description:
                  type: string
              required:
                - name
              additionalProperties: false
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
        '400':
          description: No org — finish onboarding first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: No session cookie
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Name already in use
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      security:
        - sessionAuth: []
components:
  schemas:
    Project:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        project:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
            description:
              anyOf:
                - type: string
                - type: 'null'
            status:
              type: string
            teamId:
              type: string
            createdAt:
              type: string
          required:
            - id
            - name
            - description
            - status
            - teamId
            - createdAt
          additionalProperties: false
      required:
        - project
      additionalProperties: false
    ErrorResponse:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          enum:
            - AUTH_REQUIRED
            - EMPTY_QUERY_FILTER
            - INSUFFICIENT_PERMISSIONS
            - ONBOARDING_REQUIRED
            - PROJECT_NAME_TAKEN
            - PROJECT_NOT_FOUND
            - TEAM_MEMBERSHIP_REQUIRED
            - VALIDATION_FAILED
        docsUrl:
          type: string
      required:
        - error
        - code
        - docsUrl
      additionalProperties: false
    ValidationError:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          enum:
            - AUTH_REQUIRED
            - EMPTY_QUERY_FILTER
            - INSUFFICIENT_PERMISSIONS
            - ONBOARDING_REQUIRED
            - PROJECT_NAME_TAKEN
            - PROJECT_NOT_FOUND
            - TEAM_MEMBERSHIP_REQUIRED
            - VALIDATION_FAILED
        docsUrl:
          type: string
        details:
          anyOf:
            - type: object
              properties:
                formErrors:
                  type: array
                  items:
                    type: string
                fieldErrors:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties:
                    type: array
                    items:
                      type: string
              required:
                - formErrors
                - fieldErrors
              additionalProperties: false
            - type: 'null'
      required:
        - error
        - code
        - docsUrl
        - details
      additionalProperties: false
  securitySchemes:
    sessionAuth:
      type: apiKey
      in: cookie
      name: session

````