Welcome to the Dike API Documentation. Dike is a bilingual (Arabic & English) legal intelligence API built for AI agents and enterprise LegalTech applications that must cite real, verifiable law, not hallucinations.
Core Pillars
Getting Started
Get your API key and run your first hybrid search or grounded reasoning query in under 3 minutes.
Concepts
Learn about Canonical IDs, jurisdiction taxonomies, and the zero-hallucination verification engine.
API Reference
Complete endpoint specifications for Search, Reason, Cite, Document Hydration, and Graph Traversal.
Agents
Connect Dike to Claude and IDEs via Remote MCP, explore LangChain/Vercel AI SDK patterns, and view enterprise use cases.
Guides
Step-by-step recipes for legal chatbots, contract citation auditing, and graph visualization.
Troubleshooting
Diagnostic flowcharts, rate limiting triage, and resolution runbooks for production workloads.
Why Dike?
Traditional LLMs hallucinate statutes, invent article numbers, and cite repealed legislation when asked complex legal questions in Arabic. Dike solves this with three structural guarantees:
- Deterministic Hallucination Guard: When you call
POST /v1/reason, the model is forced to cite retrieved corpus documents using strict internal tokens ([[REF:...]]). Any token that does not resolve to an indexed, verified legal source is stripped before returning the answer to you. - Hybrid Semantic + Lexical Retrieval: Legal queries require matching both conceptual phrasing (semantic vectors) and exact statute numbers or legal jargon (sparse lexical vectors). Dike fuses both with server-side Reciprocal Rank Fusion (RRF) and cross-encoder reranking.
- Canonical Legal Graph: Legal documents exist in a dynamic relationship web. Dike's graph engine (
POST /v1/graph/traverse) tracks how laws amend, repeal, interpret, and implement one another over time.
Endpoints Overview
| Method | Endpoint | Description | Access |
|---|---|---|---|
POST | /v1/search | Hybrid dense & sparse search with RRF fusion and reranking | Free |
POST | /v1/reason | Grounded legal Q&A with verified citations and streaming SSE | Paid |
POST | /v1/cite | Arabic citation normalization and resolution | Free |
GET | /v1/document/{id} | Full legal text, article structure, and metadata | Free |
POST | /v1/graph/traverse | Multi-hop legal graph traversal (amends, repeals, cites) | Free |
GET | /v1/jurisdictions | Discovery catalog for supported countries and courts | Free |
Interactive Developer Console
Prefer testing live queries in the browser? Visit the Dike Developer Dashboard to test requests against your API keys with full parameter inspection.