GET
https://api.promptlayer.com
/
reports
/
{report_id}
/
score
curl --request GET \
  --url https://api.promptlayer.com/reports/{report_id}/score \
  --header 'X-API-KEY: <x-api-key>'
{
  "success": true,
  "message": "<string>",
  "score": {
    "overall_score": 123,
    "score_type": "single_column",
    "has_custom_scoring": true,
    "details": {
      "column_name": "<string>",
      "score": 123,
      "score_type": "<string>",
      "num_skipped": 123
    }
  }
}

This endpoint allows you to retrieve the score of a specific report by its ID.

Headers

X-API-KEY
string
required

API key to authorize the operation.

Path Parameters

report_id
integer
required

ID of the report to get the score for.

Response

200
application/json

Report score retrieved successfully

The response is of type object.