Skip to main content
GET
/
v1
/
traces
/
export
Stream the spans of a single trace as CSV or JSONL (sync export)
curl --request GET \
  --url https://api.trulayer.ai/v1/traces/export \
  --header 'Authorization: Bearer <token>'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.trulayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Query Parameters

trace_id
string<uuid>
required

Trace to export spans for. Required — the endpoint returns 400 if absent.

format
enum<string>
default:csv
Available options:
csv,
jsonl
project_id
string<uuid>

Response

Streamed CSV or JSONL payload.

The response is of type string.