Skip to main content
GET
/
v1
/
runs
/
{run_id}
curl https://api.playgent.com/v1/runs/run_def456 \
  -H "Authorization: Bearer your-api-key"
{
  "run_id": "run_def456",
  "status": "completed",
  "success": false,
  "test_case": { "id": "tc_xyz789", "name": "Refund Request Flow" },
  "agent": { "id": "agent_abc123", "name": "Customer Support Agent" },
  "turns": [
    {
      "turn_index": 0,
      "input": [{ "role": "user", "content": "I want a refund..." }],
      "output": [{ "role": "assistant", "content": "I'd be happy to help..." }],
      "expected_behavior": "Agent should ask for order details...",
      "success": true,
      "evaluation": {
        "overall_pass": true,
        "scorer_outputs": {
          "relevance": { "score": 0.92, "reasoning": "Response directly addresses refund request" },
          "faithfulness": { "score": 0.88, "reasoning": "All claims supported by context" }
        }
      },
      "metrics": {
        "latency_ms": 1240,
        "tokens": { "input": 156, "output": 89 },
        "cost_usd": 0.0034
      },
      "trace_id": "trace_ghi789"
    }
  ],
  "summary": {
    "turns_passed": 2,
    "turns_failed": 1,
    "avg_latency_ms": 1450,
    "total_cost_usd": 0.0102
  }
}

Documentation Index

Fetch the complete documentation index at: https://playgent.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Retrieve detailed results for a test run including all turns, evaluations, and metrics.
run_id
string
required
Unique run identifier
run_id
string
required
Run identifier
status
string
required
Run status: queued, running, completed, failed
success
boolean
required
Whether all turns passed
test_case
object
required
Test case information
agent
object
required
Agent information
turns
array
required
Array of turn results
summary
object
required
Run summary
curl https://api.playgent.com/v1/runs/run_def456 \
  -H "Authorization: Bearer your-api-key"
{
  "run_id": "run_def456",
  "status": "completed",
  "success": false,
  "test_case": { "id": "tc_xyz789", "name": "Refund Request Flow" },
  "agent": { "id": "agent_abc123", "name": "Customer Support Agent" },
  "turns": [
    {
      "turn_index": 0,
      "input": [{ "role": "user", "content": "I want a refund..." }],
      "output": [{ "role": "assistant", "content": "I'd be happy to help..." }],
      "expected_behavior": "Agent should ask for order details...",
      "success": true,
      "evaluation": {
        "overall_pass": true,
        "scorer_outputs": {
          "relevance": { "score": 0.92, "reasoning": "Response directly addresses refund request" },
          "faithfulness": { "score": 0.88, "reasoning": "All claims supported by context" }
        }
      },
      "metrics": {
        "latency_ms": 1240,
        "tokens": { "input": 156, "output": 89 },
        "cost_usd": 0.0034
      },
      "trace_id": "trace_ghi789"
    }
  ],
  "summary": {
    "turns_passed": 2,
    "turns_failed": 1,
    "avg_latency_ms": 1450,
    "total_cost_usd": 0.0102
  }
}