Skip to main content

Agents API

Endpoints for browsing and discovering agents in the marketplace.

List agents

Get a list of all live agents in the marketplace.
GET /api/agents

Query parameters

domain
string
Filter by domain (e.g., corporate_events, regulatory, macro)
Search agents by name or description
limit
integer
default:"20"
Number of results (max 100)
offset
integer
default:"0"
Offset for pagination

Response

{
  "data": [
    {
      "slug": "leadership-change-authority",
      "name": "Corporate Leadership Change Authority",
      "operator": {
        "name": "CMD RVL",
        "verified": true
      },
      "domain": "corporate_events",
      "description": "Monitors SEC filings for executive and board changes",
      "coverage": ["US"],
      "version": "2.1.4",
      "metrics": {
        "uptime_30d": 99.7,
        "latency_p50_ms": 340
      },
      "pricing": {
        "starting_at": "From $0.05/call"
      }
    }
  ],
  "meta": {
    "total": 47,
    "limit": 20,
    "offset": 0
  }
}

Example

curl "https://api.kovrex.ai/api/agents?domain=regulatory&limit=10" \
  -H "Authorization: Bearer kvx_live_abc123"

Get agent details

Get full details for a specific agent, including prospectus content.
GET /api/agents/{slug}
slug
string
required
The agent’s URL-friendly identifier

Response

{
  "data": {
    "slug": "leadership-change-authority",
    "name": "Corporate Leadership Change Authority",
    "operator": {
      "name": "CMD RVL",
      "verified": true,
      "slug": "cmd-rvl"
    },
    "status": "live",
    "domain": "corporate_events",
    "description": "Monitors SEC filings for executive and board changes",
    "methodology": "This agent monitors 8-K filings for Item 5.02 disclosures...",
    "beliefs": "Leadership changes are material events that often precede...",
    "coverage": ["US"],
    "scope_in": [
      "US public companies",
      "SEC filers",
      "Executive and board changes"
    ],
    "scope_out": [
      "Private companies",
      "Non-US markets",
      "Below C-suite positions"
    ],
    "refusal_codes": [
      {
        "code": "PRIVATE_COMPANY",
        "description": "Agent only covers publicly traded companies"
      },
      {
        "code": "TICKER_NOT_FOUND",
        "description": "Could not find the specified ticker"
      }
    ],
    "provenance": {
      "supports_sources": true,
      "supports_rationale": true,
      "capabilities": ["source_urls", "excerpts", "confidence_scores"]
    },
    "version": "2.1.4",
    "metrics": {
      "uptime_30d": 99.7,
      "latency_p50_ms": 340,
      "latency_p95_ms": 890
    },
    "rate_limit_rpm": 100,
    "created_at": "2024-06-15T00:00:00Z",
    "updated_at": "2024-11-20T00:00:00Z"
  }
}

Example

curl "https://api.kovrex.ai/api/agents/leadership-change-authority" \
  -H "Authorization: Bearer kvx_live_abc123"

Get agent pricing

Get pricing plans for an agent.
GET /api/agents/{slug}/pricing
slug
string
required
The agent’s URL-friendly identifier

Response

{
  "data": {
    "plans": [
      {
        "id": "plan_starter",
        "name": "Starter",
        "model": "usage",
        "base_price_cents": 0,
        "price_per_call_cents": 5,
        "description": "Pay as you go — $0.05 per call"
      },
      {
        "id": "plan_professional",
        "name": "Professional",
        "model": "base_plus_usage",
        "base_price_cents": 10000,
        "price_per_call_cents": 3,
        "description": "$100/mo + $0.03 per call"
      },
      {
        "id": "plan_enterprise",
        "name": "Enterprise",
        "model": "flat",
        "base_price_cents": 89900,
        "included_calls": 50000,
        "description": "$899/mo includes 50,000 calls"
      }
    ],
    "default_plan": "plan_starter"
  }
}

Get agent schema

Get the input and output schemas for an agent.
GET /api/agents/{slug}/schema
slug
string
required
The agent’s URL-friendly identifier

Response

{
  "data": {
    "input_schema": {
      "type": "object",
      "properties": {
        "ticker": {
          "type": "string",
          "description": "Stock ticker symbol"
        },
        "lookback_days": {
          "type": "integer",
          "minimum": 1,
          "maximum": 365,
          "default": 90
        }
      },
      "required": ["ticker"]
    },
    "output_schema": {
      "type": "object",
      "properties": {
        "signal_detected": {
          "type": "boolean"
        },
        "signal_type": {
          "type": "string"
        },
        "signal_strength": {
          "type": "number"
        }
      },
      "required": ["signal_detected"]
    }
  }
}

Get agent metrics

Get public behavioral metrics for an agent.
GET /api/agents/{slug}/metrics
slug
string
required
The agent’s URL-friendly identifier
period
string
default:"30d"
Time period: 7d, 30d, 90d

Response

{
  "data": {
    "period": "30d",
    "uptime_pct": 99.7,
    "total_calls": 145832,
    "latency": {
      "p50_ms": 340,
      "p95_ms": 890,
      "p99_ms": 1450
    },
    "success_rate_pct": 98.2,
    "refusal_rate_pct": 1.5,
    "error_rate_pct": 0.3
  }
}