# listConversationRuns

```graphql
query ListConversationRuns($command: RunsListConversationRunsCommand!) {
  listConversationRuns(command: $command) {
    data {
      id
      runId
      status
      projectId
      input
      output
      title
      labels
      parentRunId
      rootRunId
      createdAt
      updatedAt
      startedAt
      finishedAt
      config
      taskId
      conversationId
      inputMessageId
      outputMessageId
      batchId
      metadata
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List conversation runs. Requires project.runs.read.

## Arguments

| Name                     | Type                             | Required | Description                                                                           |
| ------------------------ | -------------------------------- | -------- | ------------------------------------------------------------------------------------- |
| `command`                | RunsListConversationRunsCommand! | Yes      |                                                                                       |
| `command.conversationId` | ID!                              | Yes      |                                                                                       |
| `command.cursor`         | String                           |          |                                                                                       |
| `command.limit`          | Float                            |          | Maximum number of records in a page, from 1 to 100. Defaults to 20.                   |
| `command.status`         | \[String!]                       |          | Run statuses to include. Values within this filter use OR; different filters use AND. |

## Variables

```json
{
  "command": {
    "conversationId": "string"
  }
}
```

## Responses

| Status | Description                                          |
| ------ | ---------------------------------------------------- |
| 200    | The RunsRunConnection! in data.listConversationRuns. |

## 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 ListConversationRuns($command: RunsListConversationRunsCommand!) {\n  listConversationRuns(command: $command) {\n    data {\n      id\n      runId\n      status\n      projectId\n      input\n      output\n      title\n      labels\n      parentRunId\n      rootRunId\n      createdAt\n      updatedAt\n      startedAt\n      finishedAt\n      config\n      taskId\n      conversationId\n      inputMessageId\n      outputMessageId\n      batchId\n      metadata\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}",
  "variables": {
    "command": {
      "conversationId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "listConversationRuns": {
      "data": [
        {
          "id": "string",
          "runId": "string",
          "status": "string",
          "projectId": "string",
          "input": {},
          "output": {},
          "title": "string",
          "labels": {},
          "parentRunId": "string",
          "rootRunId": "string",
          "createdAt": "string",
          "updatedAt": "string",
          "startedAt": "string",
          "finishedAt": "string",
          "config": {},
          "taskId": "string",
          "conversationId": "string",
          "inputMessageId": "string",
          "outputMessageId": "string",
          "batchId": "string",
          "metadata": {}
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
