List Spans
Retrieves a list of spans from your Confident AI project.
Headers
CONFIDENT_API_KEY
The API key of your Confident AI project.
Query parameters
page
This specifies the page number of the threads to return. Defaulted to 1.
pageSize
This specifies the maximum number of threads per page. Defaulted to 25.
type
Filter by the specific type of span.
Allowed values:
traceUuid
Filter spans that belong to a specific trace UUID.
name
Filter spans by their exact name.
hasError
Filter for spans that either failed (true) or succeeded (false).
model
Filter LLM spans by the model used (e.g., ‘gpt-4’).
promptAlias
This filters the spans by the prompt alias used.
promptCommitHash
This filters the spans by the exact prompt commit hash used.
promptVersion
This filters the spans by the prompt version used.
promptLabel
This filters the spans by the prompt label used.
embedder
Filter retriever spans by the embedder model used.
topK
Filter retriever spans by the topK value.
chunkSize
Filter retriever spans by the chunk size.
environment
This filters the threads by the environment where the thread was created, and returns threads from all environments if not specified.
start
This filters for threads created after the specified start datetime. Defaulted to 30 days ago.
end
This filters for threads created before the specified end datetime. Defaulted to the current time.
sortBy
This determines the field to sort by. Defaulted to lastActivity.
Allowed values:
ascending
This determines if the field specified in sortBy should be in ascending order. Defaults to false.
Allowed values:
Response
success
This is true if the spans were successfully retrieved.
data
The payload containing the paginated spans and total count.
deprecated
This is true if this endpoint is deprecated.