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

# Create automation from blueprint

POST https://api.athenaintel.com/api/v0/automations/blueprints/{blueprint_asset_id}/instantiate
Content-Type: application/json

Create a new, unpublished automation whose draft is a copy of a blueprint's current version: `blueprint` is dropped, the copy is named `title`, and each `inputs` value becomes the default of the input of that name, checked against the blueprint's `inputs` schema. Nothing runs until the new automation is published. The automation is created in the blueprint's own workspace, and the caller must be able to view the blueprint. A refused value is 400 with `detail.code = INVALID_RUN_INPUTS` and `detail.issues[]` naming each problem's `path` and `message`; an automation that is not a published blueprint, or an archived one, is 400 with `detail.code = BLUEPRINT_REFUSED` and `detail.reason`.

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

## Authentication

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

## Request

### Path parameters

- `blueprint_asset_id` (string, required) — Unique identifier of the blueprint (an automation asset)

### Body (application/json)

This endpoint expects an AutomationFromBlueprintRequestIn.

- `inputs` (map from string to any, optional, nullable) — Values for the blueprint's inputs, by input name; each becomes that input's default in the new draft
- `parent_folder_id` (string, optional, nullable) — Folder to create the automation in (workspace root if omitted); the caller needs edit access to it
- `title` (string, optional, nullable) — Name of the new automation; the blueprint's own name when omitted or blank

## Response

### 200

Automation created from the blueprint

- `asset_id` (string, required) — ID of the new automation asset
- `principal_ref` (string, required) — The automation's own principal; every step runs as it
- `title` (string, required)
- `message` (string, optional, default: Automation created successfully)
- `parent_folder_id` (string, optional, nullable)
- `status` (string, optional, default: created)
- `workspace_id` (string, optional, nullable)

## Errors

### 400 Bad Request Error

Not a published blueprint, an archived blueprint, input values the blueprint's schema refuses, or invalid folder placement

- `map from string to any`

### 401 Unauthorized Error

Unauthorized

- `message` (string, required)

### 403 Forbidden Error

The Automations gate denied, no access to the blueprint, or no edit access to the folder

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

### 404 Not Found Error

Blueprint not found, or not an automation

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

**Request**

```json
{
  "inputs": {
    "since": "2026-09-21T00:00:00Z"
  },
  "title": "Exceptions digest for the Ops team"
}
```

**Response**

```json
{
  "asset_id": "asset_92492920-d118-42d3-95b4-00eccfe0754f",
  "principal_ref": "automation_asset_92492920-d118-42d3-95b4-00eccfe0754f",
  "title": "Nightly exceptions digest",
  "message": "Automation created successfully",
  "parent_folder_id": "asset_folder_12345",
  "status": "created",
  "workspace_id": "workspace_abc123"
}
```

**SDK Code**

```python
import requests

url = "https://api.athenaintel.com/api/v0/automations/blueprints/blueprint_asset_id/instantiate"

payload = {
    "inputs": { "since": "2026-09-21T00:00:00Z" },
    "title": "Exceptions digest for the Ops team"
}
headers = {
    "X-API-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.athenaintel.com/api/v0/automations/blueprints/blueprint_asset_id/instantiate';
const options = {
  method: 'POST',
  headers: {'X-API-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"inputs":{"since":"2026-09-21T00:00:00Z"},"title":"Exceptions digest for the Ops team"}'
};

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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.athenaintel.com/api/v0/automations/blueprints/blueprint_asset_id/instantiate"

	payload := strings.NewReader("{\n  \"inputs\": {\n    \"since\": \"2026-09-21T00:00:00Z\"\n  },\n  \"title\": \"Exceptions digest for the Ops team\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-KEY", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	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/blueprints/blueprint_asset_id/instantiate")

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

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"inputs\": {\n    \"since\": \"2026-09-21T00:00:00Z\"\n  },\n  \"title\": \"Exceptions digest for the Ops team\"\n}"

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.post("https://api.athenaintel.com/api/v0/automations/blueprints/blueprint_asset_id/instantiate")
  .header("X-API-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"inputs\": {\n    \"since\": \"2026-09-21T00:00:00Z\"\n  },\n  \"title\": \"Exceptions digest for the Ops team\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.athenaintel.com/api/v0/automations/blueprints/blueprint_asset_id/instantiate', [
  'body' => '{
  "inputs": {
    "since": "2026-09-21T00:00:00Z"
  },
  "title": "Exceptions digest for the Ops team"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-KEY' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.athenaintel.com/api/v0/automations/blueprints/blueprint_asset_id/instantiate");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"inputs\": {\n    \"since\": \"2026-09-21T00:00:00Z\"\n  },\n  \"title\": \"Exceptions digest for the Ops team\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "inputs": ["since": "2026-09-21T00:00:00Z"],
  "title": "Exceptions digest for the Ops team"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.athenaintel.com/api/v0/automations/blueprints/blueprint_asset_id/instantiate")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```