Responses are generated using AI and may contain mistakes.
Bland is getting a major upgrade. We're working on updating our docs as users transition in the coming weeks. Reach out to support@bland.ai with questions.
{ "data": null, "errors": [ { "error": "NOT_FOUND", "message": "Test run not found" } ]}
Overview
Dispositions are enabled per organization. If your organization does not have access, these endpoints return 404.
Returns one test run with its frozen definition, status, and counts. While the run is running, completedSize and failedSize are counted live from the per-call rows; once it finishes they are the final tally. Poll this endpoint after Create Disposition Test Run, then read results with Get Test Run Rows or Export Test Run CSV.
Headers
string
required
Your API key for authentication.
Path Parameters
string
required
The agent’s unique identifier. Must be a UUID; otherwise returns 400 with the message agentId must be a valid UUID. Returns 404 Agent not found if the agent is not in your organization.
string
required
The disposition’s unique identifier. Must be a UUID; otherwise returns 400 with the message dispositionId must be a valid UUID. Returns 404 Disposition not found if it does not belong to this agent.
string
required
The test run’s unique identifier. Must be a UUID; otherwise returns 400 with the message runId must be a valid UUID. Returns 404 Test run not found if it does not belong to this disposition.
Response
object
The test run.
Show test run object
string
Unique identifier for the test run.
string
The disposition this run belongs to.
string
draft or published: which definition the run was started from. A replay keeps its source run’s target.
string
draft, published, or frozen_run (a replay of an earlier run’s frozen snapshot).
string
realtime or queued.
string | null
The run this one replays, or null.
object
The immutable definition snapshot this run executes. Same shape as the definition body parameter of Create Disposition.
object
{ "environment": "production", "requestedSize" }.
string
queued, running, complete, partial (finished with some failed calls), failed, or cancelled. Corrections and alignment require complete, partial, or failed.
number
Calls requested.
number
Calls admitted once the cohort resolved. 0 until execution starts.
number
Calls that finished successfully. Counted live while running.
number
Calls that failed or were cancelled. Counted live while running.
null
Always null. Retained for compatibility.
string
recent (sampled) or calls (explicit call ids).
null
Always null. Retained for compatibility.
string
SHA-256 hex digest of the definition snapshot.
number | null
The draft revision the run was started from, or null for a published target.
string | null
The published version the run was started from, or null for a draft target.
object
Counts computed from the per-call rows: caseCount, failedCaseCount, producedValueCount, totalValueCount, and correctionCount (correction revisions saved against the run).
object | null
{ "code", "message" } when the run as a whole failed, otherwise null. Codes include test_run_cancelled, test_run_stale, in_flight_cap_exceeded, empty_cohort, billing_not_allowed, test_run_execution_failed, and disposition_failed.
string
ISO 8601 timestamp of creation.
string | null
When execution began, or null while queued.
string | null
When the run reached a final status, or null.
null | array
null on success, or a list of error objects if the request failed.