---
title: "Get trace context"
method: GET
path: "/api/v1/data/conversations/{conversationId}/context"
---

# Get trace context

`GET /api/v1/data/conversations/{conversationId}/context`

## Request

- Base URL: `https://moda.dev`
- URL: `https://moda.dev/api/v1/data/conversations/{conversationId}/context`
- Auth: API key in header `x-api-key`

Returns a window of messages centered on a message index within a trace.

## Path parameters

- `conversationId` string, required

## Query parameters

- `msg_index` integer
- `window` integer

## Response `200`

Successful response.

- object: The requested trace message window and available context metadata.

## Other responses

- `401`: The x-api-key header is missing, invalid, or revoked.
- `404`: The requested resource was not found.

---

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