# createProject

```graphql
mutation CreateProject($input: CreateProjectInput!) {
  createProject(input: $input) {
    project {
      id
      slug
      name
      description
      type
      systemManaged
      isClaimed
      features
      createdAt
      updatedAt
      publishedAt
      config
      disableMetaRobots
      providerId
      layoutId
      category
      isTemplate
      comingSoon
    }
  }
}
```

Create a project.

## Arguments

| Name                      | Type                | Required | Description                                                                                   |
| ------------------------- | ------------------- | -------- | --------------------------------------------------------------------------------------------- |
| `input`                   | CreateProjectInput! | Yes      |                                                                                               |
| `input.slug`              | String              |          | Lowercase project identifier. Starts with a letter; words may be separated by single hyphens. |
| `input.name`              | String!             | Yes      | Project display name. Must not be empty.                                                      |
| `input.description`       | String              |          | Project description.                                                                          |
| `input.templateSlug`      | String              |          | Starter or accessible template project slug. Omit for an empty project.                       |
| `input.templateProjectId` | ID                  |          | Accessible template project UUID to copy. Overrides templateSlug.                             |

## Variables

```json
{
  "input": {
    "name": "string"
  }
}
```

## Responses

| Status | Description                                     |
| ------ | ----------------------------------------------- |
| 200    | The CreateProjectPayload in data.createProject. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation CreateProject($input: CreateProjectInput!) {\n  createProject(input: $input) {\n    project {\n      id\n      slug\n      name\n      description\n      type\n      systemManaged\n      isClaimed\n      features\n      createdAt\n      updatedAt\n      publishedAt\n      config\n      disableMetaRobots\n      providerId\n      layoutId\n      category\n      isTemplate\n      comingSoon\n    }\n  }\n}",
  "variables": {
    "input": {
      "name": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "createProject": {
      "project": {
        "id": "string",
        "slug": "string",
        "name": "string",
        "description": "string",
        "type": "string",
        "systemManaged": false,
        "isClaimed": false,
        "features": [
          "BASIC_SETTINGS"
        ],
        "createdAt": "2026-01-01T00:00:00Z",
        "updatedAt": "2026-01-01T00:00:00Z",
        "publishedAt": "2026-01-01T00:00:00Z",
        "config": {},
        "disableMetaRobots": false,
        "providerId": "string",
        "layoutId": "string",
        "category": "string",
        "isTemplate": false,
        "comingSoon": false
      }
    }
  }
}
```
