Skip to main content
POST
/
api
/
parea
/
v1
/
feedback
curl --location 'https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/feedback' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <<PAREA_API_KEY>>' \
--data '{
    "trace_id": "sasdc-csd-rnFesaeCpqcXJ_yL3wi",
    "score": 0.5,
    "name": "test",
    "target": "perfect answer"
}'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}
curl --location 'https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/feedback' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <<PAREA_API_KEY>>' \
--data '{
    "trace_id": "sasdc-csd-rnFesaeCpqcXJ_yL3wi",
    "score": 0.5,
    "name": "test",
    "target": "perfect answer"
}'

Authorizations

x-user-id
string
header
required

Body

application/json
score
number
required

Feedback score

Required range: 0 <= x <= 1
trace_id
string | null

UUID of the trace log

inference_id
string | null

UUID of the trace log

comment
string | null

Feedback comment

target
string | null

Optional target or “gold standard” of log.

organization_id
string | null

Field will be automatically filled-in.

name
string | null

Deprecated field

Response

Successful Response