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
Request
- Base URLhttps://api.confident-ai.com
- Authnone declared. Required headers: CONFIDENT_API_KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
CONFIDENT_API_KEYstring required
The API key of your Confident AI project.
Request body
Response
Successfully created annotation
Changes
No operation changes recorded.