POST
/
api
/
v2
/
workspace
curl --request POST \
  --url https://app.infisical.com/api/v2/workspace \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "projectName": "<string>",
  "slug": "<string>"
}'
{
  "project": {
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "autoCapitalization": true,
    "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "version": 1,
    "upgradeStatus": "<string>",
    "_id": "<string>",
    "environments": [
      {
        "name": "<string>",
        "slug": "<string>",
        "id": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

An access token in Infisical

Body

application/json
projectName
string
required

The name of the project to create.

slug
string

An optional slug for the project.

Required string length: 5 - 36

Response

200 - application/json
Default Response
project
object
required