# vettingLists

Query

List the vetting lists of the current workspace, newest first, with the ids of the creators on each.

Available to agents as MCP tool `getVettingLists` — see [Read tools](/api/v2/docs/mcp/read-tools#get-vetting-lists).

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `after` | `String` | No | `null` | Cursor for fetching the next page of results. |
| `first` | `Int` | No | `20` | Number of vetting lists to return (page size). |

## Returns

A paginated connection of [`VettingList`](/api/v2/docs/types/vetting-list) nodes. See [Pagination](/api/v2/docs/types/pagination) for the connection shape.

## Examples

### List vetting lists

Paginate the workspace's vetting lists, newest first, with the ids of the creators on each.

```graphql
query VettingListsDefault($first: Int, $after: String) {
  vettingLists(first: $first, after: $after) {
    totalCount
    nodes {
      id
      name
      createdAt
      creatorsCount
      creatorIds(first: 100)
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
```

Variables:

```json
{
  "first": 10
}
```

Response — HTTP 200:

```json
{
  "data": {
    "vettingLists": {
      "totalCount": 1,
      "nodes": [
        {
          "id": "8da4da49-bddb-56ef-9b66-2e77cc0a0849",
          "name": "Spring Shortlist",
          "createdAt": "2024-12-31T23:59:59Z",
          "creatorsCount": 0,
          "creatorIds": []
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "endCursor": "Z2lkOi8vYXJjaGl2ZS9WZXR0aW5nTGlzdC8yMDI0LTEyLTMxVDIzOjU5OjU5LjAwMDAwMFp8OGRhNGRhNDktYmRkYi01NmVmLTliNjYtMmU3N2NjMGEwODQ5"
      }
    }
  }
}
```
