> 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

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

Read an automation whole: asset facts, its state (enabled, current version, fingerprint, principal, next fire), the draft definition (from its last saved snapshot when there is one, else the live document), the current published version with its definition, the version history, and every trigger row publish created, paused rows included with their reason.

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

## Authentication

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

## Request

### Path parameters

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

## Response

### 200

The automation

- `asset_id` (string, required)
- `created_at` (datetime, required)
- `created_by` (string, required, nullable)
- `current_version` (AutomationCurrentVersionOut, required, nullable) — The current version, with the definition it was compiled from.
- `current_version_number` (integer, required, nullable) — Version number of the current publish; null before the first
- `draft` (AutomationDraftOut, required) — The draft definition and where it was read from.
- `enabled` (boolean, required) — Whether the published triggers may fire
- `fingerprint` (string, required, nullable)
- `home_project_asset_id` (string, required, nullable)
- `is_archived` (boolean, required)
- `next_fire_at` (datetime, required, nullable) — Earliest scheduled fire across the live schedule rows
- `parent_folder_id` (string, required, nullable)
- `principal_ref` (string, required) — The automation's own principal; every step runs as it
- `title` (string, required)
- `trigger_summary` (list of string, required) — One line per materialised trigger, for cards and search
- `triggers` (list of AutomationTriggerRowOut, required)
- `updated_at` (datetime, required)
- `versions` (list of AutomationVersionOut, required) — Version history, newest first (at most the latest 20)
- `workspace_id` (string, required, nullable)

## Errors

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

### AutomationCurrentVersionOut

The current version, with the definition it was compiled from.

- `definition` (map from string to any, required) — The definition document this version was compiled from
- `fingerprint` (string, required) — sha256 JCS fingerprint of the compiled plan
- `published_at` (datetime, required)
- `published_by_ref` (string, required) — Principal ref of the publisher
- `version` (integer, required) — Monotonic version number
- `version_id` (string, required)
- `superseded_at` (datetime, optional, nullable)

### AutomationDraftOut

The draft definition and where it was read from.

- `definition` (map from string to any, required, nullable) — The draft definition document, or null when there is none
- `note` (string, required, nullable) — Why the draft could not be read, when it could not
- `source` (enum, required, nullable) — 'snapshot:latest' when read from the draft's last saved snapshot, 'live' when read from the live document, null when unreadable
  - Allowed values: `snapshot:latest`, `live`

### AutomationTriggerRowOut

One trigger-engine row publish materialised for the automation.

- `automation_key` (string, required, nullable)
- `conditions` (map from string to any, required, nullable)
- `cron_expression` (string, required, nullable)
- `enabled` (boolean, required)
- `event_type` (string, required)
- `kind` (string, required, nullable) — schedule | table_change | run_completed | event | webhook
- `last_fired_at` (datetime, required, nullable)
- `name` (string, required)
- `next_fire_at` (datetime, required, nullable)
- `paused_reason` (map from string to any, required, nullable) — Why the row is paused, or null while live
- `row_id` (string, required)
- `row_type` (enum, required) — A schedule trigger has two rows, the schedule and the rule it fires
  - Allowed values: `schedule`, `rule`
- `timezone` (string, required, nullable)
- `trigger_id` (string, required, nullable) — triggers[].id in the definition this row came from

### AutomationVersionOut

One immutable published version.

- `fingerprint` (string, required) — sha256 JCS fingerprint of the compiled plan
- `published_at` (datetime, required)
- `published_by_ref` (string, required) — Principal ref of the publisher
- `version` (integer, required) — Monotonic version number
- `version_id` (string, required)
- `superseded_at` (datetime, optional, nullable)

### 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
{
  "asset_id": "asset_92492920-d118-42d3-95b4-00eccfe0754f",
  "created_at": "2026-09-21T12:00:00Z",
  "created_by": "user_123",
  "current_version": {
    "definition": {
      "home": {
        "project_asset_id": "asset_project_ops"
      },
      "name": "Nightly exceptions digest",
      "schema_version": 2,
      "steps": [
        {
          "id": "notify",
          "kind": "notify",
          "notify": {
            "body": "'Started by trigger ' & $trigger.id",
            "channels": [
              "email"
            ],
            "subject": "Nightly exceptions digest",
            "to": [
              "user_ops_lead"
            ]
          }
        },
        {
          "end": {
            "status": "succeeded"
          },
          "id": "finish",
          "kind": "end"
        }
      ],
      "triggers": [
        {
          "id": "nightly",
          "kind": "schedule",
          "schedule": {
            "cron": "0 6 * * 1-5",
            "timezone": "America/New_York"
          }
        }
      ]
    },
    "fingerprint": "sha256:6f1a…",
    "published_at": "2026-09-21T12:30:00Z",
    "published_by_ref": "user_123",
    "version": 1,
    "version_id": "apv_1"
  },
  "current_version_number": 1,
  "draft": {
    "definition": {
      "home": {
        "project_asset_id": "asset_project_ops"
      },
      "name": "Nightly exceptions digest",
      "schema_version": 2,
      "steps": [
        {
          "id": "notify",
          "kind": "notify",
          "notify": {
            "body": "'Started by trigger ' & $trigger.id",
            "channels": [
              "email"
            ],
            "subject": "Nightly exceptions digest",
            "to": [
              "user_ops_lead"
            ]
          }
        },
        {
          "end": {
            "status": "succeeded"
          },
          "id": "finish",
          "kind": "end"
        }
      ],
      "triggers": [
        {
          "id": "nightly",
          "kind": "schedule",
          "schedule": {
            "cron": "0 6 * * 1-5",
            "timezone": "America/New_York"
          }
        }
      ]
    },
    "note": "string",
    "source": "snapshot:latest"
  },
  "enabled": true,
  "fingerprint": "sha256:6f1a…",
  "home_project_asset_id": "asset_project_ops",
  "is_archived": false,
  "next_fire_at": "2026-09-22T10:00:00Z",
  "parent_folder_id": "string",
  "principal_ref": "automation_asset_92492920-d118-42d3-95b4-00eccfe0754f",
  "title": "Nightly exceptions digest",
  "trigger_summary": [
    "schedule 0 6 * * 1-5 America/New_York"
  ],
  "triggers": [],
  "updated_at": "2026-09-21T12:30:00Z",
  "versions": [],
  "workspace_id": "workspace_abc123"
}
```

**SDK Code**

```python
import requests

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

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

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

print(response.json())
```

```javascript
const url = 'https://api.athenaintel.com/api/v0/automations/asset_id';
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/asset_id"

	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/asset_id")

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/asset_id")
  .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/asset_id', [
  'headers' => [
    'X-API-KEY' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.athenaintel.com/api/v0/automations/asset_id");
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/asset_id")! 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()
```