> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.athenaintel.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.athenaintel.com/_mcp/server.

# List automation runs

GET https://api.athenaintel.com/api/v0/automations/{asset_id}/runs

List the automation's runs, newest first, with offset pagination and an optional run_status filter. Use next_offset for the next page. A run's inputs and starting events are returned only to its subject (who started it, or the owner of the trigger that did) and its participants (its approvers); for everyone else they are null and empty, and the run's status, timing and cost are still returned.

Reference: https://docs.athenaintel.com/api-reference/automations/list-runs

## Authentication

- `X-API-KEY` header (required) — API Key authentication via header

## Request

### Path parameters

- `asset_id` (string, required) — Unique identifier of the automation asset

### Query parameters

- `run_status` (list of string, optional, nullable) — Only runs in these statuses (scheduled, queued, running, needs_input, completed, failed, canceled). Repeat the parameter or pass a comma-separated list.
- `limit` (integer, optional, default: 50) — Maximum number of runs per page (1-200)
- `offset` (integer, optional, default: 0) — Number of runs to skip for pagination

## Response

### 200

One page of runs

- `has_more` (boolean, required)
- `items` (list of AutomationRunOut, required)
- `limit` (integer, required)
- `next_offset` (integer, required, nullable) — Offset for the next page, null when there is none
- `offset` (integer, required)
- `total` (integer, required) — Runs matching the filter

## Errors

### 400 Bad Request Error

Unknown run_status value

- `map from string to any`

### 403 Forbidden Error

The Automations gate denied, or no access to the asset

- `detail` (AutomationsDenialDetailOut, required) — ``detail`` of the 403 the Automations gate returns.

### 404 Not Found Error

Not found, or not an automation

- `message` (string, required)

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### AutomationRunOut

One run of an automation.

- `automation_asset_id` (string, required)
- `cost_usd` (double, required, nullable) — Model spend in USD. Null unless the caller is Athena staff or an owner or manager of the automation's workspace. Which side of the workspace's LLM cost multiplier depends on the step: a step that runs a conversation counts that conversation's cost, multiplier included; a step that calls a model itself (a judge) counts those calls at the provider's rate. A run's total adds its steps, so it can mix the two. See docs/SESSION_TOKEN_USAGE_AND_TOKEN_COST_GUIDE.md#which-cost-field-do-i-sum.
- `created_at` (datetime, required)
- `ended_at` (datetime, required, nullable)
- `event_ids` (list of string, required)
- `failure_reason` (string, required, nullable)
- `fingerprint` (string, required)
- `inngest_run_id` (string, required, nullable)
- `inputs` (map from string to any, required, nullable)
- `principal_ref` (string, required)
- `project_asset_id` (string, required, nullable)
- `run_id` (string, required)
- `run_status` (string, required) — scheduled | queued | running | needs_input | completed | failed | canceled
- `started_at` (datetime, required, nullable)
- `status_v2` (map from string to any, required) — The canonical status_v2 projection of the run
- `tokens` (integer, required, nullable) — Tokens used. Null unless the caller is Athena staff or an owner or manager of the automation's workspace.
- `trigger_execution_id` (string, required, nullable)
- `trigger_id` (string, required, nullable)
- `trigger_kind` (string, required) — manual | schedule | table_change | run_completed | event | call_automation | redrive
- `updated_at` (datetime, required)
- `version_id` (string, required)
- `workspace_id` (string, required)
- `mode` (enum, optional, default: live) — live, or dry_run for a rehearsal whose writing effects were captured
  - Allowed values: `live`, `dry_run`
- `outcome` (enum, optional, nullable) — success | skipped | failure | canceled — how the run ended, refining its status (`skipped` is a completed run whose `end` step said so); null until it ends
  - Allowed values: `success`, `skipped`, `failure`, `canceled`
- `scheduled_for` (datetime, optional, nullable) — When a `scheduled` run was created for (quiet hours defer a fire to the window's end); null for a run queued at once

### AutomationsDenialDetailOut

``detail`` of the 403 the Automations gate returns.

- `hint` (string, required) — The next step that lifts the denial
- `message` (string, required) — Human-readable denial
- `reason` (enum, required) — Which of the gate's three checks failed: the deployment has Automations off, the caller is not a member of the workspace, or the workspace is not enrolled
  - Allowed values: `not_provisioned`, `not_permitted`, `workspace_not_enrolled`
- `code` ("AUTOMATIONS_UNAVAILABLE", optional, default: AUTOMATIONS_UNAVAILABLE) — Stable code for a denial by the Automations gate

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "has_more": false,
  "items": [],
  "limit": 50,
  "next_offset": 1,
  "offset": 0,
  "total": 1
}
```

**SDK Code**

```python automations_list_runs_example
import requests

url = "https://api.athenaintel.com/api/v0/automations/asset_id/runs"

headers = {"X-API-KEY": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript automations_list_runs_example
const url = 'https://api.athenaintel.com/api/v0/automations/asset_id/runs';
const options = {method: 'GET', headers: {'X-API-KEY': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go automations_list_runs_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.athenaintel.com/api/v0/automations/asset_id/runs"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-KEY", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby automations_list_runs_example
require 'uri'
require 'net/http'

url = URI("https://api.athenaintel.com/api/v0/automations/asset_id/runs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java automations_list_runs_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.athenaintel.com/api/v0/automations/asset_id/runs")
  .header("X-API-KEY", "<apiKey>")
  .asString();
```

```php automations_list_runs_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.athenaintel.com/api/v0/automations/asset_id/runs', [
  'headers' => [
    'X-API-KEY' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp automations_list_runs_example
using RestSharp;

var client = new RestClient("https://api.athenaintel.com/api/v0/automations/asset_id/runs");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-KEY", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift automations_list_runs_example
import Foundation

let headers = ["X-API-KEY": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.athenaintel.com/api/v0/automations/asset_id/runs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```