> 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.

# Get automation run step output

GET https://api.athenaintel.com/api/v0/automations/runs/{run_id}/steps/{step_row_id}/output

Read the whole output of one step attempt. A step whose output was stored inline answers with that object; a step whose row carries `output_ref` (its `output` is a truncated preview) streams the stored object back, so a multi-megabyte result is never truncated. The step row id is the `step_id`-independent `astep_…` id the run detail lists. Until the attempt has recorded an output the route answers 404, so a 200 body is always one JSON object. Only the run's subject (who started it, or the owner of the trigger that did) and its participants (its approvers) read a step's output; anyone else gets 403.

Reference: https://docs.athenaintel.com/api-reference/automations/get-step-output

## Authentication

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

## Request

### Path parameters

- `run_id` (string, required) — Unique identifier of the run
- `step_row_id` (string, required) — Row id of the step attempt (`astep_…`)

## Response

### 200

The step's output, `application/json`

## Errors

### 403 Forbidden Error

The Automations gate denied, no access to the asset, the caller is neither the run's subject nor one of its participants, or the stored reference is outside the run's workspace

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

### 404 Not Found Error

Run or step not found, or no output recorded yet

- `message` (string, required)

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### 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
{}
```

**SDK Code**

```python
import requests

url = "https://api.athenaintel.com/api/v0/automations/runs/run_id/steps/step_row_id/output"

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

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

print(response.json())
```

```javascript
const url = 'https://api.athenaintel.com/api/v0/automations/runs/run_id/steps/step_row_id/output';
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
package main

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

func main() {

	url := "https://api.athenaintel.com/api/v0/automations/runs/run_id/steps/step_row_id/output"

	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
require 'uri'
require 'net/http'

url = URI("https://api.athenaintel.com/api/v0/automations/runs/run_id/steps/step_row_id/output")

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
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp
using RestSharp;

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

```swift
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.athenaintel.com/api/v0/automations/runs/run_id/steps/step_row_id/output")! 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()
```