Skip to main content
POST
/
traces
/
{span_id}
/
score
Add Score to Trace
curl --request POST \
  --url https://api.promptmetrics.dev/traces/{span_id}/score \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "criteria": "<string>",
  "value": 0.5
}
'
{
  "responseData": {
    "data": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

span_id
string
required

Body

application/json
criteria
string
required
value
number
required
Required range: 0 <= x <= 1

Response

200 - application/json

Score added

responseData
object