Annotations
Create Annotation
Creates a new annotation for a trace, span, or thread in your Confident AI project. Annotations capture human feedback including ratings, expected outputs/outcomes, and explanations.
Important validation rules:
- For traces and spans: Use expectedOutput (not expectedOutcome)
- For threads: Use expectedOutcome (not expectedOutput)
- Rating must be 0 or 1 for THUMBS_RATING, or 1-5 for FIVE_STAR_RATING
- You must provide either traceUuid, spanUuid, or threadId
post/v1/annotations
Headers
CONFIDENT_API_KEYstring required
The API key of your Confident AI project.
Request body
Response
Successfully created annotation
Changes
No changes recorded. 3 of the 54 revisions have no diff computed, so they could not be searched.