Skip to content

ANFI Developer API

Welcome to the ANFI external API. The current public surface is a single authenticated Knowledge Base search endpoint at /api/v1/ext/kb/query, documented alongside the gateway controls that already exist around it.

Quick Start

1. Request API Access

Contact support@tanfi.ai to request API credentials.

2. Make Your First Request

curl -X POST https://api.tanfi.ai/api/v1/ext/kb/query \
  -H "X-API-Key: bach_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"query": "model risk management", "top_k": 5}'

3. Review the Response

{
  "results": [
    {
      "fact_id": "KB-SR117-0042",
      "fact_text": "Model risk is the potential for adverse consequences from decisions based on incorrect or misused model outputs and reports.",
      "verbatim_quote": "Model risk is the potential for adverse consequences...",
      "page_number": 3,
      "source_document_code": "SR117",
      "source_title": "SR 11-7: Supervisory Guidance on Model Risk Management",
      "authority_level": 1,
      "relevance_score": 0.8234,
      "domain": "AIML"
    }
  ],
  "total": 1,
  "query": "model risk management",
  "domain": null,
  "latency_ms": 42
}

Base URL

Environment URL
Production https://api.tanfi.ai/api/v1/ext

What Is Live Today

  • API key authentication via X-API-Key
  • BM25 full-text search across verified kb_facts
  • Tiered rate limiting with burst, RPM, and cost-budget enforcement
  • Per-request audit logging with X-Request-Id
  • External-only OpenAPI at /api/v1/ext/openapi.json

Interactive Reference

Next Reading