List Annotations

Retrieves a paginated list of annotations from your Confident AI project. Annotations are user feedback on traces, spans, or threads that include ratings, expected outputs/outcomes, explanations, and flags.

Use query parameters to filter annotations by trace UUID, span UUID, thread ID, type, rating range, or flagged status. Results are returned in descending order by creation date with pagination support.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Query parameters

traceUuidstringOptional
Filter annotations by trace UUID.
spanUuidstringOptional
Filter annotations by span UUID.
threadIdstringOptional
Filter annotations by thread ID.
typeenumOptional
Filter annotations by type.
Allowed values:
minRatingstringOptional

Filter annotations with minimum rating (inclusive).

maxRatingstringOptional

Filter annotations with maximum rating (inclusive).

flaggedenumOptional
Filter annotations by flagged status.
Allowed values:
pageintegerOptional>=1
This specifies the page number of the annotations to return. Defaulted to 1.
pageSizeintegerOptional>=1
This specifies the maximum number of annotations per page. Defaulted to 25.
startstringOptionalformat: "date-time"
This filters for annotations created after the specified start datetime. Defaulted to 30 days ago.
endstringOptionalformat: "date-time"
This filters for annotations 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

Successfully retrieved list of annotations
successboolean
Indicates if the request was successful.
dataobject
Contains the list of annotations and pagination information.