Skip to main content
GET
/
api
/
v1
/
automations
/
{id}
/
reviews
/
health
Get automation review health
curl --request GET \
  --url https://studio.eigenpal.com/api/v1/automations/{id}/reviews/health \
  --header 'Authorization: Bearer <token>'
{
  "timeRange": {
    "from": "<string>",
    "to": "<string>"
  },
  "granularity": {
    "rollingWindow": 0,
    "minRollingReviews": 0
  },
  "summary": {
    "totalRuns": 0,
    "reviewedRuns": 0,
    "reviewCoverage": 123,
    "correctReviews": 0,
    "incorrectReviews": 0,
    "nitReviews": 0,
    "reviewedCorrectness": 123,
    "confidence": {
      "lower": 123,
      "upper": 123,
      "method": "<string>"
    }
  },
  "buckets": [
    {
      "start": "<string>",
      "end": "<string>",
      "totalRuns": 0,
      "reviewedRuns": 0,
      "reviewCoverage": 123,
      "correctReviews": 0,
      "incorrectReviews": 0,
      "nitReviews": 0,
      "reviewedCorrectness": 123
    }
  ],
  "rolling": [
    {
      "at": "<string>",
      "reviewedRuns": 0,
      "correctReviews": 0,
      "reviewedCorrectness": 123,
      "confidenceLower": 123,
      "confidenceUpper": 123,
      "totalRunsInWindow": 0,
      "reviewCoverage": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API key issued from Settings → API Keys. Pass as Authorization: Bearer <key>.

Path Parameters

id
string
required

Workflow id, agent id, or typed alias like workflows.slug / agents.slug.

Query Parameters

type
string

Comma-separated: workflow,agent.

status
string

Comma-separated execution statuses.

trigger
string

Comma-separated trigger types.

triggeredBy
string

Comma-separated user ids, or system for system-triggered runs.

sourceRef
string
batchId
string
exampleId
string
exampleIdContains
string
from
string

Start of the run-created time range. Defaults to now-30d.

to
string

End of the run-created time range.

completedAfter
string
completedBefore
string
experiments
string

Set to false to exclude experiment batch runs.

bucket
enum<string>

Calendar bucket size for the bar chart series. Defaults to day.

Available options:
day,
week,
month
rollingWindow
integer

Number of reviewed runs per rolling correctness point. Defaults to 100.

Required range: 1 <= x <= 1000
minRollingReviews
integer

Minimum reviewed runs required before emitting rolling points. Defaults to 1.

Required range: 1 <= x <= 1000

Response

Automation review health metrics.

timeRange
object
required
granularity
object
required
summary
object
required
buckets
object[]
required
rolling
object[]
required