The policy-driven dispute resolution protocol for agent commerce.
AgentCourt provides instant, deterministic dispute rulings for AI agent transactions. Define your dispute policies, submit evidence, and get binding rulings in under 200ms.
- Base URL:
https://api.agentcourt.to - Interactive Docs:
https://api.agentcourt.to/docs - Health:
https://api.agentcourt.to/health
curl -X POST https://api.agentcourt.to/v1/disputes \
-H "Content-Type: application/json" \
-d '{
"claimant": "customer@example.com",
"respondent": "freelancer@example.com",
"contract": {
"parties": ["customer@example.com", "freelancer@example.com"],
"obligations": ["Build website by June 1"],
"payment_terms": "$5,000 USD"
},
"claim": "Non-delivery of website",
"desired_remedy": "Full refund of $5,000",
"policy": "freelance-delivery",
"evidence": [
{
"id": "e1",
"type": "log",
"source": "github",
"timestamp": "2026-06-01T00:00:00Z",
"claimed_fact": "No commits in repository for 30 days"
}
]
}'{
"case_id": "9081d683-08e...",
"status": "ruled",
"ruling": "The respondent failed to deliver...",
"matched_rule": "non_delivery",
"evidence_scores": [{"id": "e1", "score": 0.85}],
"facts_established": ["No delivery within agreed timeframe"]
}| Policy | Description | Rules |
|---|---|---|
freelance-delivery |
Freelance work contracts — deadlines, deliverables, quality | 6 |
milestone-payment |
Milestone-based contracts — staged deliverables | 5 |
bug-bounty |
Bug bounty programs — severity, reproducibility, disclosure | 5 |
sla-monitoring |
SLA violations — uptime, latency, availability | 5 |
api-quality |
API quality disputes — wrong data, schema mismatch, errors | 7 |
physical-commerce |
Physical product disputes — damage, non-delivery, returns | 6 |
from agentcourt import AgentCourt
court = AgentCourt() # Uses https://api.agentcourt.to by default
ruling = court.resolve_dispute(
claimant="customer@example.com",
respondent="freelancer@example.com",
policy="freelance-delivery",
claim="Non-delivery",
desired_remedy="Full refund",
evidence=[{
"id": "e1",
"type": "log",
"source": "github",
"claimed_fact": "No commits for 30 days"
}]
)
print(ruling["status"]) # "ruled"
print(ruling["ruling"]) # "The respondent failed to deliver..."npm install @agentcourt/sdkimport { AgentCourt } from '@agentcourt/sdk';
const court = new AgentCourt();
const ruling = await court.resolveDispute({
claimant: 'customer@example.com',
respondent: 'freelancer@example.com',
policy: 'freelance-delivery',
claim: 'Non-delivery',
desiredRemedy: 'Full refund',
evidence: [{ id: 'e1', type: 'log', source: 'github', claimedFact: 'No commits' }]
});
console.log(ruling.status); // "ruled"AgentCourt uses a deterministic policy engine — not an LLM — to produce rulings. This means:
- Consistency: Same evidence always produces the same ruling
- Speed: Average response time < 200ms
- Transparency: Every ruling cites the specific rule matched and evidence scored
- No hallucination: Rulings are template-based, not generated
- Submit: POST your dispute with contract, claim, and evidence
- Match: Engine identifies which policy applies based on the
policyfield - Score: Evidence is scored 0.0–1.0 based on source reliability and content hashing
- Rule: The matched policy rule fires and produces a structured ruling
- Persist: Case is stored with full ruling for future retrieval and precedent
| Endpoint | Method | Description |
|---|---|---|
/v1/disputes |
POST | Submit a dispute for ruling |
/v1/cases |
GET | List all cases |
/v1/cases/{id} |
GET | Get a specific case |
/v1/policies |
GET | List all available policies |
/v1/policies/{name} |
GET | Get policy details |
/v1/policies/{name}/preview |
POST | Preview a ruling for given evidence |
/v1/verdicts |
GET | List recent verdicts |
/health |
GET | Service health check |
/docs |
GET | Interactive Swagger documentation |
- Pay per ruling: $0.50 USDC (via x402 payment protocol on Base network)
- Volume pricing: Available for platforms processing >1,000 disputes/month
- Self-host: Open source — deploy your own instance for free
Yappa Ventures, Inc.
EIN: 33-4359267
San Francisco, CA
MIT License — see LICENSE
- Live API: api.agentcourt.to
- Docs: api.agentcourt.to/docs
- GitHub: github.com/vbkotecha/AgentCourt
- Contact: agentcourt@agentmail.to