---
title: "POST /api/v2/workspace"
method: POST
path: "/api/v2/workspace"
tags: ["Projects"]
---

# POST /api/v2/workspace

`POST /api/v2/workspace`

Create a new project

## Request body

- object
  - `projectName` string, required — The name of the project to create.
  - `projectDescription` string — An optional description label for the project.
  - `slug` string — An optional slug for the project.
  - `kmsKeyId` string
  - `template` string — The name of the project template, if specified, to apply to this project.
  - `type` 'secret-manager' | 'cert-manager' | 'kms' | 'secret-scanning' | 'pam'
  - `shouldCreateDefaultEnvs` boolean
  - `hasDeleteProtection` boolean

## Response `200`

Default Response

- object
  - `project` object, required
    - `id` string, required
    - `name` string, required
    - `description` string, nullable
    - `type` string, required
    - `defaultProduct` string, nullable
    - `slug` string, required
    - `autoCapitalization` boolean, nullable
    - `orgId` string, uuid, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `version` number
    - `upgradeStatus` string, nullable
    - `pitVersionLimit` number
    - `kmsCertificateKeyId` string, uuid, nullable
    - `auditLogsRetentionDays` number, nullable
    - `hasDeleteProtection` boolean, nullable
    - `secretSharing` boolean
    - `showSnapshotsLegacy` boolean
    - `secretDetectionIgnoreValues` string[], nullable
    - `enforceEncryptedSecretManagerSecretMetadata` boolean, nullable
    - `_id` string, required
    - `environments` object[], required
      - `name` string, required
      - `slug` string, required
      - `id` string, required
    - `kmsSecretManagerKeyId` string, nullable

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/885aef3e6c11/schema)
