cURL
curl --request GET \ --url https://api.trulayer.ai/v1/traces/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "error": true, "tags": [ "<string>" ], "started_at": "2023-11-07T05:31:56Z", "session_id": "<string>", "name": "<string>", "input": "<string>", "output": "<string>", "metadata": {}, "spans": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "trace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "span_type": "llm", "error": true, "started_at": "2023-11-07T05:31:56Z", "input": "<string>", "output": "<string>", "error_message": "<string>", "latency_ms": 123, "model": "<string>", "prompt_tokens": 123, "completion_tokens": 123, "metadata": {}, "ended_at": "2023-11-07T05:31:56Z" } ], "ended_at": "2023-11-07T05:31:56Z" }
SDK API key (tl_...) or Clerk session JWT
tl_...
Trace detail
Show child attributes