Get Annotation
GEThttps://api.confident-ai.com/v1/annotations/{annotationId}
Retrieves a specific annotation by its unique ID. Returns the complete annotation details including rating, type, expected output/outcome, explanation, and associated trace/span/thread identifiers.
This endpoint verifies that the annotation belongs to your project before returning it.
curl -X GET "https://api.confident-ai.com/v1/annotations/{annotationId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"annotation": {
"id": "annotation-uuid",
"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"
}
}
}
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
annotationIdstringRequiredThe ID of the annotation to retrieve.
Response
Successfully retrieved annotation
successbooleanIndicates if the request was successful.
dataobjectContains the annotation information.
Show 1 propertyHide 1 property
annotationobjectThe annotation details.
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.