GET
/
v1
/
call
/
{callId}
/
evaluation-run
JavaScript
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: 'My Bearer Token',
});

const response = await client.call.getEvaluationRuns('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');

console.log(response.data);
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "evaluator": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "weight": 123
      },
      "status": "PENDING",
      "score": 0.5,
      "result": "SUCCESS",
      "summary": "<string>",
      "startedAt": "<string>",
      "completedAt": "<string>",
      "metrics": [
        {
          "name": "<string>",
          "valueType": "<string>",
          "numericValue": 123,
          "booleanValue": true,
          "textValue": "<string>",
          "confidence": 0.5,
          "reasoning": "<string>",
          "role": "<string>",
          "createdAt": "<string>"
        }
      ],
      "evidence": [
        {
          "snippetText": "<string>",
          "commentText": "<string>",
          "isPositive": true,
          "createdAt": "<string>"
        }
      ],
      "blockRuns": [
        {
          "blockRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "blockDefinitionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "blockName": "<string>",
          "status": "PENDING",
          "result": "PASSED",
          "score": 0.5,
          "reason": "<string>",
          "createdAt": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

callId
string<uuid>
required

ID of the call to fetch evaluation run for

Response

200
application/json

Evaluation run for a specific call

The response is of type object.