Spans

Get spans by project_name or project_id and optionally by trace_id and/or type

Get spans by project_name or project_id and optionally by trace_id and/or type

get/v1/private/spans

Query parameters

pageinteger
sizeinteger
project_namestring
project_idstring uuid
trace_idstring uuid
type'general' | 'tool' | 'llm' | 'guardrail'
filtersstring
truncateboolean

Truncate input, output and metadata to slim payloads

strip_attachmentsboolean

If true, returns attachment references like [file.png]; if false, downloads and reinjects stripped attachments

sortingstring
excludestring
searchstring

Full-text search across span fields

from_timestring date-time

Filter spans created from this time (ISO-8601 format).

to_timestring date-time

Filter spans created up to this time (ISO-8601 format). If not provided, defaults to current time. Must be after 'from_time'.

Response

Spans resource

pageinteger
sizeinteger
totalinteger
sortableBystring[]

Changes

Changed in 5 of the 57 revisions of this API.66

    • added the new evaluator enum value to the content/items/source response property for the response status 200

      response-property-enum-value-added

    • added the optional property content/items/feedback_scores/items/value_by_author/additionalProperties/author to the response with the 200 status

      response-optional-property-added

    • added the optional property content/items/feedback_scores/items/value_by_author/additionalProperties/source_queue_id to the response with the 200 status

      response-optional-property-added

    • added the optional property content/items/comments/items/source_queue_id to the response with the 200 status

      response-optional-property-added

    • added the optional property content/items/feedback_scores/items/source_queue_id to the response with the 200 status

      response-optional-property-added

    • added the optional property content/items/environment to the response with the 200 status

      response-optional-property-added

    • removed the optional property content/items/comments/items/source_queue_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property content/items/environment from the response with the 200 status

      response-optional-property-removed

    • removed the optional property content/items/feedback_scores/items/source_queue_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property content/items/feedback_scores/items/value_by_author/additionalProperties/author from the response with the 200 status

      response-optional-property-removed

    • removed the optional property content/items/feedback_scores/items/value_by_author/additionalProperties/source_queue_id from the response with the 200 status

      response-optional-property-removed

    • removed the evaluator enum value from the content/items/source response property for the response status 200

      response-property-enum-value-removed

    This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog