GET
/
v5
/
spans
/
{span_id}
/
assessments
List Span Assessments
curl --request GET \
  --url https://api.egp.scale.com/v5/spans/{span_id}/assessments \
  --header 'x-api-key: <api-key>'
{
  "object": "list",
  "items": [
    {
      "object": "span.assessment",
      "assessment_id": "<string>",
      "trace_id": "<string>",
      "span_id": "<string>",
      "created_by": "<string>",
      "assessment_type": "comment",
      "comment": "<string>",
      "rating": 123,
      "approval_status": "approved",
      "rubric": {},
      "metadata": {},
      "overwritten_span_data": {},
      "account_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

span_id
string
required

Query Parameters

assessment_type
enum<string> | null

Filter by assessment type Types of assessments that can be provided

Available options:
comment,
rating,
approval,
rubric,
overwrite,
metadata

Response

200
application/json

Successful Response

The response is of type object.