---
title: "Get Trace"
method: GET
path: "/api/public/v2/traces/{trace_id}"
tags: ["tracking"]
---

# Get Trace

`GET /api/public/v2/traces/{trace_id}`

## Path parameters

- `trace_id` string, required

## Response `200`

Trace detail.

- TraceDetailResponse
  - `success` true, required
  - `trace_id` string, required
  - `spans` object[], required — Spans in this trace. Spans that created request logs include request_log_id.

## Other responses

- `401` — Unauthorized - missing or invalid API key.
- `403` — Forbidden - API key does not have access to the requested resource.
- `404` — Not found - requested resource does not exist or is not accessible.
- `422` — Validation error - request parameters or body are invalid.
- `500` — Internal server error.

---

[API](https://skmtc.dev/promptlayer/apis/promptlayer-api.md) · [All operations](https://skmtc.dev/promptlayer/apis/promptlayer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/promptlayer/promptlayer-api/revisions/a23093a0a506/schema)
