Skip to main content
GET
/
traces
/
trace
/
{trace_id}
Get Trace Tree
curl --request GET \
  --url https://api.promptmetrics.dev/traces/trace/{trace_id} \
  --header 'Authorization: <api-key>'
{
  "responseData": {
    "trace_id": "<string>",
    "spans": "<array>"
  }
}

Authorizations

Authorization
string
header
required

SDK API key in format: pm_

Path Parameters

trace_id
string
required

Response

200 - application/json

Trace tree

responseData
object