---
title: "POST /agent-playground/graphs/from-trace/"
method: POST
path: "/agent-playground/graphs/from-trace/"
tags: ["agent-playground"]
---

# POST /agent-playground/graphs/from-trace/

`POST /agent-playground/graphs/from-trace/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/agent-playground/graphs/from-trace/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Create a new agent playground graph from a trace's LLM spans.

## Request body

- TraceToGraphRequest
  - `trace_id` string, uuid, required

## Response `201`

Created

- TraceToGraphResponse
  - `status` boolean
  - `result` TraceToGraphResult, required
    - `graph_id` string, uuid, required
    - `version_id` string, uuid, required

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
