POST
/
api
/
annotations
/
trace
/
{id}
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>"
}

Authorizations

X-Auth-Token
string
header
required

Path Parameters

id
string
required

ID of the trace to annotate

Body

application/json
Annotation data

The body is of type object.

Response

200
application/json
Annotation created

The response is of type object.