public-api
public-intelligence

Ask intelligence question

Ask a question using Intelligence Q&A with Knowledge Base RAG.

This endpoint provides programmatic access to AnomalyArmor's intelligence Q&A system. It uses the generated markdown knowledge base as context for accurate and comprehensive answers.

SDK Usage:

from anomalyarmor import Client

client = Client()
answer = client.intelligence.ask(
    asset="postgresql.analytics",
    question="list upstream tables for schema.table_name"
)
print(answer.answer)

CLI Usage:

aa intelligence ask postgresql.analytics "list upstream tables for schema.table_name"
post/api/v1/sdk/intelligence/ask

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/sdk/intelligence/ask
  • Auth: none declared

Headers

Authorizationstring

Request body

asset_idstring required

Asset identifier (public UUID or qualified name like 'postgresql.mydb')

questionstring required

Natural language question to ask

include_related_assetsboolean

Include related assets in context

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.