POST
/
rest
/
track-score
curl --request POST \
  --url https://api.promptlayer.com/rest/track-score \
  --header 'Content-Type: application/json' \
  --data '{
  "request_id": 123,
  "score": 50,
  "name": "<string>",
  "api_key": "<string>"
}'
{
  "success": true,
  "message": "<string>"
}

Track score allows you to associate a score 0-100 with each request.

Body

application/json
request_id
integer
required

The request_id from track-request.

score
integer
required

The score you would like to give to this request (0 - 100).

name
string

A name for this request score. If not provided, the score will be tracked as default.

api_key
string
required

Your PromptLayer API Key.

Response

200 - application/json
success
boolean
required
message
string
required