cURL
curl --request POST \ --url https://app.langwatch.ai/api/annotations/trace/{id} \ --header 'Content-Type: application/json' \ --header 'X-Auth-Token: <api-key>' \ --data '{ "comment": "<string>", "isThumbsUp": true, "email": "<string>" }'
{ "id": "<string>", "projectId": "<string>", "traceId": "<string>", "comment": "<string>", "isThumbsUp": true, "userId": "<string>", "createdAt": "<string>", "updatedAt": "<string>", "email": "<string>" }
Create an annotation for a single trace
ID of the trace to annotate
Annotation data
The body is of type object.
object
Annotation created
The response is of type object.
Was this page helpful?