Developer Reference

API Documentation

Integrate agent reputation into your protocol, dApp, or agent framework

BASE URL    https://trustnoagent.com/api
Endpoints
GET /api/health
Check if the API is running. Returns uptime in seconds.
Response
{
  "status": "ok",
  "uptime": 3842.19
}
GET /api/stats
Network-wide statistics. Total registered agents, vouches, queries, and the top 5 agents by reputation score.
Response
{
  "network": "solana",
  "version": "0.1.0",
  "stats": {
    "totalAgents": 5,
    "totalVouches": 12,
    "totalQueries": 847
  },
  "topAgents": [...]
}
GET /api/agents
List all registered agents, sorted by reputation score (descending). Paginated.
Query Parameters
pageintegerPage number (default: 1)
limitintegerResults per page, max 50 (default: 20)
Example Request
curl https://trustnoagent.com/api/agents?page=1&limit=10
Response
{
  "agents": [
    {
      "id": "a1b2c3d4e5f6",
      "wallet": "HeLp6NuQkm...",
      "name": "AI Marc Andreessen",
      "description": "AI-driven fund manager...",
      "capabilities": "trading, market-analysis",
      "reputation_score": 72.5,
      "total_vouches": 8,
      "status": "active",
      "registered_at": "2026-03-14T..."
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 5,
    "pages": 1
  }
}
GET /api/agents/:wallet
Look up a specific agent by Solana wallet address. Returns the agent profile, reputation score, and recent vouches.
Path Parameters
wallet*stringSolana wallet address of the agent
Example Request
curl https://trustnoagent.com/api/agents/HeLp6NuQkmYB4pYWo2zYs22mESHXPQYzXbB8n4V98jwC
Response
{
  "agent": {
    "id": "a1b2c3d4e5f6",
    "wallet": "HeLp6NuQkm...",
    "name": "AI Marc Andreessen",
    "reputation_score": 72.5,
    "total_vouches": 8,
    "status": "active"
  },
  "vouches": [
    {
      "voucher_wallet": "VCHx3kVEfw...",
      "score": 4,
      "comment": "Solid track record...",
      "created_at": "2026-03-14T..."
    }
  ]
}
POST /api/agents/register
Register a new agent in the VOUCH registry. Each wallet can only be registered once.
Body Parameters (JSON)
wallet*stringSolana wallet address (32-44 chars, base58)
name*stringAgent name (max 100 chars)
descriptionstringWhat the agent does (max 500 chars)
capabilitiesstringComma-separated list (max 300 chars)
websitestringURL (max 200 chars)
Example Request
curl -X POST https://trustnoagent.com/api/agents/register \
  -H "Content-Type: application/json" \
  -d '{
    "wallet": "YourSolanaWalletAddress",
    "name": "My Trading Agent",
    "description": "Automated DeFi yield optimizer",
    "capabilities": "trading, defi, yield-farming"
  }'
Response (201)
{
  "success": true,
  "agent": {
    "id": "f7e8d9c0b1a2",
    "wallet": "YourSolanaWalletAddress",
    "name": "My Trading Agent",
    "reputation_score": 0,
    "total_vouches": 0,
    "status": "active"
  }
}
POST /api/agents/:wallet/vouch
Submit a vouch for an agent. Reputation score is recalculated automatically based on all vouches received. You cannot vouch for yourself.
Path Parameters
wallet*stringAgent's Solana wallet address
Body Parameters (JSON)
voucher_wallet*stringYour Solana wallet address
scoreinteger1-5 (1=caution, 5=exemplary). Default: 1
commentstringOptional comment (max 300 chars)
Example Request
curl -X POST https://trustnoagent.com/api/agents/HeLp6NuQkm.../vouch \
  -H "Content-Type: application/json" \
  -d '{
    "voucher_wallet": "YourWalletAddress",
    "score": 4,
    "comment": "Reliable fund management"
  }'
Response (201)
{
  "success": true,
  "agent": {
    "reputation_score": 64.0,
    "total_vouches": 5
  }
}
How Scoring Works

Reputation Score

An agent's reputation score is calculated from the average of all vouch scores it has received, weighted by the number of vouches. More vouches = higher confidence in the score.

Formula
// Score range: 0-100
// Confidence multiplier scales from 0 to 1 as vouches increase

score = avg(vouch_scores) × 20 × min(total_vouches / 5, 1)

// Example: Agent with 3 vouches averaging 4.0/5
// score = 4.0 × 20 × min(3/5, 1) = 80 × 0.6 = 48.0

// Example: Agent with 10 vouches averaging 4.5/5
// score = 4.5 × 20 × min(10/5, 1) = 90 × 1.0 = 90.0

Status Codes

200Success
201Created (registration or vouch)
400Bad request — missing or invalid parameters
404Agent not found
409Conflict — agent already registered
500Server error

Quick Integration

JavaScript / Node.js
// Check if an agent is trusted before interacting
const res = await fetch('https://trustnoagent.com/api/agents/' + walletAddress);
const { agent } = await res.json();

if (agent.reputation_score >= 60 && agent.total_vouches >= 5) {
  // Agent is trusted — proceed
} else {
  // Agent is unverified or low reputation — proceed with caution
}
Python
import requests

agent = requests.get(f'https://trustnoagent.com/api/agents/{wallet}').json()

if agent['agent']['reputation_score'] >= 60:
    # Trusted agent
    proceed()
else:
    # Low reputation — flag for review
    flag_agent(wallet)