> 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 AOP configuration

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

Retrieve the full configuration of an AOP asset by its ID. Returns prompt, agent config, structured output schema, and other settings.

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

## Authentication

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

## Request

### Path parameters

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

## Response

### 200

AOP configuration retrieved successfully

- `asset_id` (string, required) — ID of the AOP asset
- `agentId` (string, optional, nullable) — ID of the agent to use for execution
- `agent_config` (map from string to any, optional, nullable) — Full agent configuration override for this AOP
- `description` (string, optional, default: ) — Human-readable description of what the AOP does
- `icon` (string, optional, default: ListTodo) — Icon identifier for UI display
- `prompt` (string, optional, default: ) — The main prompt/instructions for the AOP
- `section` (string, optional, default: ) — Section/category for organization
- `structured_inputs` (map from string to any, optional, nullable) — Computed structured inputs schema (derived from prompt template placeholders)
- `structured_output` (map from string to any, optional, nullable) — JSON schema for structured output
- `title` (string, optional, nullable) — Title/name of the AOP
- `user_notification_configs` (map from string to map from string to any, optional, nullable) — Per-user notification preferences. Map of user_id -> notification config controlling who receives AOP result notifications

## Errors

### 403 Forbidden Error

Forbidden - user does not have access to this asset

- `message` (string, required)

### 404 Not Found Error

AOP asset not found

- `message` (string, required)

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### 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_9249292-d118-42d3-95b4-00eccfe0754f",
  "agentId": "research_agent",
  "description": "Generates market research reports",
  "icon": "ListTodo",
  "prompt": "Generate a comprehensive market research report for [[ company ]]",
  "section": "Research",
  "structured_inputs": {
    "properties": {
      "company": {
        "type": "string"
      }
    },
    "required": [
      "company"
    ],
    "type": "object"
  },
  "title": "Market Research Report"
}
```

**SDK Code**

```python
import requests

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

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

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

print(response.json())
```

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

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

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

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

```csharp
using RestSharp;

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