# accountProjects

```graphql
query AccountProjects($input: AccountProjectsInput!) {
  accountProjects(input: $input) {
    data {
      id
      slug
      name
      accountId
      type
      isTemplate
      systemManaged
      createdAt
      updatedAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List account projects. Requires account.projects.read.

## Arguments

| Name              | Type                  | Required | Description                                                             |
| ----------------- | --------------------- | -------- | ----------------------------------------------------------------------- |
| `input`           | AccountProjectsInput! | Yes      |                                                                         |
| `input.accountId` | UUID!                 | Yes      | Account UUID. Requires account.projects.read.                           |
| `input.cursor`    | String                |          | Opaque continuation cursor from pageInfo.endCursor. Null means omitted. |
| `input.limit`     | Int                   |          | Integer page size from 1 to 100; default 20. Null uses the default.     |

## Variables

```json
{
  "input": {
    "accountId": "00000000-0000-0000-0000-000000000000"
  }
}
```

## Responses

| Status | Description                                       |
| ------ | ------------------------------------------------- |
| 200    | The AccountProjectsPage! in data.accountProjects. |

## 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 AccountProjects($input: AccountProjectsInput!) {\n  accountProjects(input: $input) {\n    data {\n      id\n      slug\n      name\n      accountId\n      type\n      isTemplate\n      systemManaged\n      createdAt\n      updatedAt\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}",
  "variables": {
    "input": {
      "accountId": "00000000-0000-0000-0000-000000000000"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "accountProjects": {
      "data": [
        {
          "id": "string",
          "slug": "string",
          "name": "string",
          "accountId": "00000000-0000-0000-0000-000000000000",
          "type": "regular",
          "isTemplate": false,
          "systemManaged": false,
          "createdAt": "string",
          "updatedAt": "string"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
