GET
/
v1
/
evaluation
/
job
/
{jobId}
/
runs
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted
});

const response = await client.evaluation.getJobRuns('jobId');

console.log(response.data);
{
  "data": {
    "pagination": {
      "total": 123,
      "hasMore": true,
      "nextCursor": "<string>"
    },
    "data": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "status": "PENDING",
        "score": 123,
        "scoreClassification": "SUCCESS",
        "summary": "<string>",
        "startedAt": "<string>",
        "completedAt": "<string>",
        "metrics": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "name": "<string>",
            "valueType": "NUMERIC",
            "numericValue": 123,
            "booleanValue": true,
            "textValue": "<string>",
            "confidence": 123,
            "reasoning": "<string>",
            "role": "PRIMARY"
          }
        ],
        "evidence": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "snippetText": "<string>",
            "commentText": "<string>",
            "isPositive": true
          }
        ],
        "evaluator": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "name": "<string>"
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

jobId
string
required

Query Parameters

nextCursor
string

Cursor for the next page of items

limit
string

Number of items to return per page

Required string length: 1 - 50
Example:

"10"

Response

200
application/json

Successfully retrieved evaluation job runs

The response is of type object.