> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/011_documents/024__list_paginated_company_ai_tasks.md).

# List Company AI Tasks

GraphQL endpoint: `/company`

Lists the calling company's AI tasks. `documentCount` is how many documents each task covers, which is what running it will run against. `inFlightCount` is how many of its runs are still queued or running.

## Query

```graphql
query {
  aiTasks {
    records { id name documentCount inFlightCount }
    paginationInfo { nextCursor }
  }
}

```

## Variables

```json
{}
```

## Response

```json
{
  "data": {
    "aiTasks": {
      "paginationInfo": {
        "nextCursor": null
      },
      "records": [
        {
          "documentCount": 2,
          "id": "00000000-0000-4000-8000-000000000001",
          "inFlightCount": 0,
          "name": "task-2"
        }
      ]
    }
  }
}
```
