---
title: "Get related runs"
method: GET
path: "/v1/runs/{id}/related"
tags: ["Runs"]
---

# Get related runs

`GET /v1/runs/{id}/related`

## Request

- Base URL: `https://api.lunary.ai`
- URL: `https://api.lunary.ai/v1/runs/{id}/related`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lunary/apis/lunary-api/docs/v1/runs/:id/related/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Response `200`

Successful response

- Run[]
  - `id` string
  - `projectId` string
  - `isPublic` boolean
  - `feedback` Feedback
    - `thumb` 'up' | 'down'
    - `comment` string
  - `parentFeedback` Feedback
    - `thumb` 'up' | 'down'
    - `comment` string
  - `type` string
  - `name` string
  - `createdAt` string, date-time
  - `endedAt` string, date-time
  - `duration` number
  - `templateVersionId` string
  - `templateSlug` string
  - `cost` number
  - `tokens` object
    - `completion` number
    - `prompt` number
    - `total` number
  - `tags` string[]
  - `input` object
  - `output` object
  - `error` object
  - `status` string
  - `siblingRunId` string
  - `params` object
  - `metadata` object
  - `firstMessage` object: First message captured in the conversation thread, when available.
  - `messagesCount` integer: Total number of messages within the conversation thread.
  - `user` object
    - `id` string
    - `externalId` string
    - `createdAt` string, date-time
    - `lastSeen` string, date-time
    - `props` object

## Other responses

- `404`: Run not found

---

[API](https://skmtc.dev/lunary/apis/lunary-api.md) - [All operations](https://skmtc.dev/lunary/apis/lunary-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lunary/apis/lunary-api/revisions/a38233713bdc?raw)
