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

# Get trace world state

`GET /api/v1/data/conversations/{conversationId}/world-state`

## Request

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

Returns a trace's current world state: its tasks (every status; a subtask names its parent) and its facts, from the task engine for a trace it owns and otherwise from the task tracker, whose task records state facts only where the workspace's records take them, plus the end user's durable cross-trace profile. There is no history of state changes. A trace with no tasks or facts returns 200 with hasData false and empty segments.

## Path parameters

- `conversationId` string, required

## Query parameters

- `tenant_id` string
- `summary_only` '1'
- `event_limit` integer

## Response `200`

Successful response.

- object: Trace world state: hasData, userId, userDurableProfile, conversationWarmstart, segments (or segmentSummaries), source ("task_engine" for a trace the engine owns), and summary (segmentCount, lastUpdatedAt).

## 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)
