---
title: "Generate intelligence for an asset"
method: POST
path: "/api/v1/sdk/intelligence/generate"
tags: ["public-api", "public-intelligence"]
---

# Generate intelligence for an asset

`POST /api/v1/sdk/intelligence/generate`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/sdk/intelligence/generate`
- Auth: none declared

Trigger intelligence generation for an asset.

This endpoint triggers AI analysis of the asset's schema to generate
descriptions, summaries, and a knowledge base for Q&A.

**SDK Usage:**
```python
from anomalyarmor import Client

client = Client()
result = client.intelligence.generate(asset="postgresql.analytics")
print(f"Job ID: {result.job_id}")
```

**CLI Usage:**
```bash
armor intelligence generate postgresql.analytics
```

## Headers

- `Authorization` string

## Request body

- IntelligenceGenerateRequest: Request to generate intelligence for an asset.
  - `asset_id` string, required: Asset identifier (public UUID, short UUID, or asset name)
  - `include_schemas` string, nullable: Comma-separated list of schemas to analyze (default: all)
  - `include_tables` string, nullable: Comma-separated list of specific tables to analyze (e.g., 'schema.table1,schema.table2')
  - `force_refresh` boolean: Force regeneration even if intelligence exists

## Response `202`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
