Skip to main content
GET

Request

string
required
Bearer token with your API key: Bearer tr_your_api_key
string
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 ERROR
string | null
Error message if status is ERROR
number
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

Authorization
string
header
required

API key starting with tr_

Path Parameters

spanId
string
required

The span ID (e.g., sp_abc123def456)

Response

Successful response

id
string

Internal identifier

spanId
string

External span ID (e.g., sp_abc123)

traceId
string | null

Session/trace ID for multi-turn conversations

parentSpanId
string | null

Parent span ID for chained conversations

promptSlug
string | null

Slug of the prompt that was run (null for runLocal spans)

promptVersion
integer | null

Version of the prompt used

model
string

Model used (e.g., gpt-4o)

provider
string

Provider name (e.g., openai, amazon_bedrock)

input
object
variables
object | null

Template variables used in the prompt

output
string | null

Model response text

status
enum<string>
Available options:
SUCCESS,
ERROR
error
string | null

Error message if status is ERROR

latencyMs
integer

Execution time in milliseconds

inputTokens
integer
outputTokens
integer
totalTokens
integer
cost
number | null

Cost in USD

tags
string[]
userId
string | null
sessionId
string | null
createdAt
string<date-time>