GET
/
v1
/
benchmarks
/
runs
JavaScript
import Runloop from '@runloop/api-client';

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

// Automatically fetches more pages as needed.
for await (const benchmarkRunView of client.benchmarks.runs.list()) {
  console.log(benchmarkRunView.id);
}
{
  "runs": [
    {
      "id": "<string>",
      "benchmark_id": "<string>",
      "name": "<string>",
      "start_time_ms": 123,
      "duration_ms": 123,
      "state": "running",
      "score": 123,
      "metadata": {},
      "purpose": "<string>",
      "environment_variables": {},
      "secrets_provided": {}
    }
  ],
  "has_more": true,
  "total_count": 123,
  "remaining_count": 123
}

Authorizations

Authorization
string
header
required

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

Query Parameters

limit
integer

The limit of items to return. Default is 20.

starting_after
string

Load the next page of data starting after the item with the given ID.

benchmark_id
string

The Benchmark ID to filter by.

Response

200 - application/json

OK

The response is of type object.