Get Annotation
GEThttps://api.confident-ai.com/v2/annotations/{annotationId}
Retrieves an annotation by id from your Confident AI project, with the ids of the trace, span or thread it was left on and the team member who left it.
curl -X GET "https://api.confident-ai.com/v2/annotations/{annotationId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<ANNOTATION-ID>",
"rating": 1,
"type": "FIVE_STAR_RATING",
"name": null,
"explanation": "Correct and concise.",
"expectedOutcome": null,
"expectedOutput": "The capital of France is Paris.",
"createdAt": "2025-01-15T11:00:00.000Z",
"user": {
"id": "<USER-ID>",
"email": "jane@acme.com",
"name": "Jane Doe",
"image": null
},
"traceUuid": "3f9c2a1e-5b7d-4c8e-9f01-2a3b4c5d6e7f",
"spanUuid": null,
"threadId": null,
"testCaseId": null
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
annotationIdstringRequiredThe id of the annotation.
Response
Get Annotation succeeded.
successbooleanIndicates if the request was successful.
dataobjectA human rating left on a trace, span or thread, with the ids of what it was left on.
Show 13 propertiesHide 13 properties
idstringThis is the id of the annotation generated by Confident AI.
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
FIVE_STAR_RATINGTHUMBS_RATING
namestring | nullThe name of the annotation.
explanationstring | nullThis is the explanation for the annotation.
expectedOutcomestring | nullThis is the annotated expected outcome, for conversation annotations.
expectedOutputstring | nullThis is the annotated expected output, for span and trace annotations.
createdAtstringThe timestamp when the annotation was created.
userobject | nullA Confident AI user, as referenced by the records they created.
Show 4 propertiesHide 4 properties
idstringThis is the id of the user.
emailstringThis is the email address of the user.
namestring | nullThis is the display name of the user, or null when they have not set one.
imagestring | nullThis is the URL of the user's avatar, or null when they have none.
traceUuidstring | nullThe uuid of the trace this annotation was left on, or null when it was left on a span or thread.
spanUuidstring | nullThe uuid of the span this annotation was left on, or null when it was left on a trace or thread.
threadIdstring | nullThe id of the thread this annotation was left on. It is also set for an annotation on a trace that belongs to a thread.
testCaseIdstring | nullThe id of the test case the annotated trace formed, for a trace ingested into a test run.
deprecatedbooleanIndicates if this endpoint is deprecated.