List Annotations
GEThttps://api.confident-ai.com/v1/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, and explanations.
Use query parameters to filter annotations by trace UUID, span UUID, thread ID, type, or rating range. Results are returned in descending order by creation date with pagination support.
curl -X GET "https://api.confident-ai.com/v1/annotations" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"annotations": [
{
"id": "annotation-uuid-1",
"rating": 1,
"type": "THUMBS_RATING",
"name": "Quality Check",
"expectedOutput": "Provide clear password reset instructions",
"explanation": "Response correctly guides user through password reset",
"createdAt": "2025-11-12T10:30:00Z",
"traceUuid": "trace-uuid-1",
"user": {
"id": "user-uuid-1",
"email": "user1@example.com",
"name": "User One",
"image": "https://example.com/user1.png"
}
},
{
"id": "annotation-uuid-2",
"rating": 5,
"type": "FIVE_STAR_RATING",
"name": "Customer Service",
"expectedOutcome": "Agent successfully resolves user issue",
"explanation": "Excellent resolution with follow-up",
"createdAt": "2025-11-12T09:15:00Z",
"threadId": "thread-id-1",
"user": {
"id": "user-uuid-2",
"email": "user2@example.com",
"name": "User Two",
"image": "https://example.com/user2.png"
}
}
],
"total": 150,
"page": 1,
"pageSize": 25
}
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Query parameters
traceUuidstringFilter annotations by trace UUID.
spanUuidstringFilter annotations by span UUID.
threadIdstringFilter annotations by thread ID.
typeenumFilter annotations by type.
minRatingstringFilter annotations with minimum rating (inclusive).
maxRatingstringFilter annotations with maximum rating (inclusive).
pageintegerThis specifies the page number of the annotations to return. Defaulted to 1.
pageSizeintegerThis specifies the maximum number of annotations per page. Defaulted to 25.
startstringThis filters for annotations created after the specified start datetime. Defaulted to 30 days ago.
endstringThis filters for annotations created before the specified end datetime. Defaulted to the current time.
sortByenumThis determines the field to sort by. Defaulted to
createdAt.ascendingenumThis determines if the field specified in
sortByshould be in ascending order. Defaults tofalse.
Response
Successfully retrieved list of annotations
successbooleanIndicates if the request was successful.
dataobjectContains the list of annotations and pagination information.
Show 4 propertiesHide 4 properties
annotationslist of objectsList of annotations matching the filter criteria.
Show 14 propertiesHide 14 properties
idstringThis is the id of the annotation generated by Confident AI, not to be confused with the alias you supplied or version number.
ratingintegerThis is the annotated rating score.
typeenumThis is the type of annotation, which can be either thumbs rating or five star rating.
Show 2 enum valuesHide 2 enum values
THUMBS_RATINGFIVE_STAR_RATING
namestringThe name of the annotation.
expectedOutcomestringThis is the annotated expected outcome, for conversation annotations.
expectedOutputstringThis is the annotated expected output, for span and trace annotations.
explanationstringThis is the explanation for the annotation.
createdAtstringThe timestamp when the annotation was created.
traceUuidstringThe UUID of the trace associated with this annotation, if applicable.
spanUuidstringThe UUID of the span associated with this annotation, if applicable.
threadIdstringThe ID of the thread associated with this annotation, if applicable.
testCaseIdstringThe ID of the test case associated with this annotation, if applicable.
userobjectThe user who created this annotation.
Show 4 propertiesHide 4 properties
idstringThe id of the user.
emailstringThe email address of the user.
namestringThe name of the user.
imagestringThe image of the user.
userEmailstringThe email address of the user created this annotation. The field is being deprecated. Please use
user.emailinstead.
totalintegerTotal number of annotations matching the filter criteria.
pageintegerCurrent page number of annotations returned in this response.
pageSizeintegerMaximum number of annotations returned in this response.