---
title: Create a new project
slug: api-guide/create-a-new-project
docTags: 
createdAt: 2025-01-09T16:01:41.148Z
---

{
  "id": "Iddsaaw40PkQvKNG3LX55",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.app.kognic.com/v2/projects",
    "servers": [
      {
        "url": "https://api.app.kognic.com/v2/projects"
      }
    ],
    "name": "Create a new project",
    "description": "Create a new project. It is required to provide a workspace id you have access to multiple workspaces.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "Project to create. The workspaceId is required if you have access to more than one workspace.",
          "customType": "CreateProject",
          "schema": [
            {
              "name": "title",
              "kind": "required",
              "type": "string",
              "description": ""
            },
            {
              "name": "workspaceId",
              "kind": "optional",
              "type": "string<uuid>",
              "description": "",
              "format": "uuid"
            }
          ],
          "modelRef": "#/components/schemas/CreateProject",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Enveloped_CreatedProject",
            "schema": [
              {
                "name": "data",
                "kind": "required",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/CreatedProject",
                "customType": "CreatedProject",
                "schema": [
                  {
                    "name": "id",
                    "kind": "required",
                    "type": "string<uuid>",
                    "description": "",
                    "format": "uuid"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/Enveloped_CreatedProject",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "BadRequest",
            "schema": [
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/BadRequest",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "403",
        "description": "Forbidden",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Forbidden",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/Forbidden",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "KCByuPtBmJSCJmi2HHPZK",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.app.kognic.com/v2/projects\"\n\npayload = json.dumps({\n   \"title\": \"\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "KCByuPtBmJSCJmi2HHPZK"
    },
    "results": {
      "languages": [
        {
          "id": "b9hUsgFrnzdGAe4oJVcDm",
          "language": "200",
          "code": "{\n  \"data\": {\n    \"id\": \"\"\n  }\n}"
        },
        {
          "id": "hC9dZQCKJ1Yy8tc1ur4b0",
          "language": "400",
          "code": "// Bad request\n{\n  \"errorCode\": \"\",\n  \"message\": \"\"\n}"
        },
        {
          "id": "VGHT1b-ukAxdVKINRn4G4",
          "language": "403",
          "code": "// Forbidden\n{\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "b9hUsgFrnzdGAe4oJVcDm"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}