Spans
Get Span
Get full details of a single span
GET
Request
string
required
Bearer token with your API key:
Bearer tr_your_api_keystring
required
The span ID (e.g.,
sp_abc123def456)Response
string
Internal identifier
string
External span ID
string | null
Trace session ID if part of a multi-turn conversation
string | null
Parent span ID for chained conversations
string | null
Slug of the prompt that was run (null for runLocal spans)
number | null
Version of the prompt used
string
Model used (e.g.,
gpt-4o)string
Provider name (e.g.,
openai, amazon_bedrock)object
Input messages sent to the model
object | null
Template variables used in the prompt
string | null
Model response text
string
SUCCESS or ERRORstring | null
Error message if status is
ERRORnumber
Execution time in milliseconds
number
Number of input tokens
number
Number of output tokens
number
Total tokens used
number | null
Cost in USD
string[]
Tags associated with this span
string | null
End user ID
string | null
Session ID
string
ISO 8601 timestamp
Authorizations
API key starting with tr_
Path Parameters
The span ID (e.g., sp_abc123def456)
Response
Successful response
Internal identifier
External span ID (e.g., sp_abc123)
Session/trace ID for multi-turn conversations
Parent span ID for chained conversations
Slug of the prompt that was run (null for runLocal spans)
Version of the prompt used
Model used (e.g., gpt-4o)
Provider name (e.g., openai, amazon_bedrock)
Template variables used in the prompt
Model response text
Available options:
SUCCESS, ERROR Error message if status is ERROR
Execution time in milliseconds
Cost in USD

