Skip to main content
GET
Get a test run's agent

Authorizations

Authorization
string
header
required

An org API key (gh_live_…) from Settings → API keys in the console.

Path Parameters

test_run_id
string
required

The test run’s id (tr_…).

agent_id
string
required

One of the run's agents, e.g. billing.

Response

OK

One of a run's agents as the run ran it.

object
string
required
Allowed value: "test_run_agent"
test_run_id
string
required
agent_id
string
required
version
integer | null
required

The published version it ran; null when it ran its draft (or it isn't known).

draft
boolean
required

It ran its unpublished draft.

live_version
integer
required

The agent's published version now.

agent
object | null
required

The agent's settings as the run ran them; null when they weren't kept (older runs on drafts).

base_version
integer | null

With draft: the version the draft was made from.

draft_at
string<date-time> | null

With draft: when that draft was saved.