# listRunChildRuns

```graphql
query ListRunChildRuns($command: RunsListRunChildRunsCommand!) {
  listRunChildRuns(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 direct child runs by canonical parent UUID; follow page\_info.next for further children.

## Arguments

| Name             | Type                         | Required | Description                                                                                                                        |
| ---------------- | ---------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `command`        | RunsListRunChildRunsCommand! | Yes      |                                                                                                                                    |
| `command.runId`  | ID!                          | Yes      |                                                                                                                                    |
| `command.limit`  | Float                        |          |                                                                                                                                    |
| `command.cursor` | String                       |          | The `page_info.next` of the previous page: the `run_id` of its last child. A cursor that is not a child of this run returns a 400. |

## Variables

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

## Responses

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

## 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 ListRunChildRuns($command: RunsListRunChildRunsCommand!) {\n  listRunChildRuns(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": {
      "runId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "listRunChildRuns": {
      "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"
      }
    }
  }
}
```
