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

# Create a Project

> Creates a project owned by a team. The requester must be an
editor-or-above member of the owning team, or an admin of that team's
organization. The project name and slug must each be unique within the
owning team.




## OpenAPI

````yaml /openapi.yaml post /v1/projects
openapi: 3.1.0
info:
  title: px0 API
  description: >
    px[0] is an open-source prompt infrastructure toolkit for managing prompts
    in production. It replaces hardcoded prompt strings with versioned
    templates, in-process caching, and OpenTelemetry observability, so teams can
    iterate on prompts without touching application code. This is the OpenAPI
    specification for all the public APIs of px0.
  version: 1.0.0
servers:
  - url: http://localhost:3000
    description: Local development server
security: []
paths:
  /v1/projects:
    post:
      tags:
        - Projects
      summary: Create a Project
      description: |
        Creates a project owned by a team. The requester must be an
        editor-or-above member of the owning team, or an admin of that team's
        organization. The project name and slug must each be unique within the
        owning team.
      operationId: createProject
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProjectRequest'
      responses:
        '201':
          description: Project created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectResponse'
        '400':
          description: Invalid request (invalid body, invalid team_id, or missing name)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '403':
          description: Forbidden (requester is not an editor of the team or an org admin)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '404':
          description: Owning team not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '409':
          description: A project with this name or slug already exists in the team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
      security:
        - BearerAuth: []
components:
  schemas:
    CreateProjectRequest:
      type: object
      required:
        - team_id
        - name
      properties:
        team_id:
          type: string
          format: uuid
          description: The team that will own the project.
        name:
          type: string
          description: Human-readable project name.
        slug:
          type: string
          description: Optional normalized slug; derived from the name when omitted.
    ProjectResponse:
      type: object
      required:
        - project
      properties:
        project:
          $ref: '#/components/schemas/Project'
    APIError:
      type: object
      properties:
        error:
          type: string
          example: invalid credentials
      required:
        - error
    Project:
      type: object
      required:
        - id
        - owning_team_id
        - name
        - slug
        - created_at
      properties:
        id:
          type: string
          format: uuid
        owning_team_id:
          type: string
          format: uuid
          description: The team that owns the project.
        name:
          type: string
          description: Human-readable project name, unique within the owning team.
        slug:
          type: string
          description: Normalized identifier, unique within the owning team.
        created_at:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Use an access token retrieved from login (Bearer sess_...) or a
        programmatic API key (Bearer ak_...).

````