# projectTemplates

```graphql
query ProjectTemplates {
  projectTemplates {
    data {
      id
      slug
      name
      description
      category
      previewUrl
      comingSoon
      createdAt
      updatedAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List the curated project templates, the starter projects a new project is created from, to offer a choice; returns one page of project templates, where REST needs no credentials and returns every curated template and GraphQL requires a signed-in user and returns the public templates and the templates the user is a member of.

## Arguments

| Name                 | Type                  | Required | Description                                                                                                   |
| -------------------- | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------- |
| `input`              | ProjectTemplatesInput |          |                                                                                                               |
| `input.search`       | String                |          | Search template names or slugs.                                                                               |
| `input.useCase`      | String                |          | Filter by category, for example Store or Landing.                                                             |
| `input.sortBy`       | TemplateSortBy        |          | Optional sort field. Omit sorting to retain curated order. One of `name`, `slug`, `created_at`, `updated_at`. |
| `input.sortOrder`    | TemplateSortOrder     |          | Defaults to asc when sorting. On its own sorts by name. One of `asc`, `desc`.                                 |
| `input.excludeBlank` | Boolean               |          | Exclude the blank template before pagination.                                                                 |
| `input.cursor`       | String                |          | Cursor of the page to read, from pageInfo.endCursor of the previous page.                                     |
| `input.limit`        | Int                   |          | Integer page size from 1 to 100; defaults to 20.                                                              |

## Responses

| Status | Description                                        |
| ------ | -------------------------------------------------- |
| 200    | The ProjectTemplatePage! in data.projectTemplates. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query ProjectTemplates {\n  projectTemplates {\n    data {\n      id\n      slug\n      name\n      description\n      category\n      previewUrl\n      comingSoon\n      createdAt\n      updatedAt\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "projectTemplates": {
      "data": [
        {
          "id": "string",
          "slug": "string",
          "name": "string",
          "description": "string",
          "category": "string",
          "previewUrl": "https://example.com",
          "comingSoon": false,
          "createdAt": "2026-01-01T00:00:00Z",
          "updatedAt": "2026-01-01T00:00:00Z"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
