List Traces

Retrieves a list of traces from your Confident AI project.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Query parameters

pageintegerOptional>=1
This specifies the page number of the traces to return. Defaulted to 1.
pageSizeintegerOptional>=1
This specifies the maximum number of traces per page. Defaulted to 25.
environmentstringOptional
This filters the traces by the environment where the trace was created, and returns traces from all environments if not specified.
startstringOptionalformat: "date-time"
This filters for traces created after the specified start datetime. Defaulted to 30 days ago.
endstringOptionalformat: "date-time"
This filters for traces created before the specified end datetime. Defaulted to the current time.
sortByenumOptional

This determines the field to sort by. Defaulted to created_at.

Allowed values:
ascendingbooleanOptional

This determines if the field specified in sortBy should be in ascending order. Defaults to false.

Response

successboolean
This is true if the traces were successfully retrieved.
dataobject
This maps to the list of traces retrieved.
deprecatedboolean
This is true if this endpoint is deprecated.