# Dike Documentation

Getting started, API reference, MCP & agent integration, and guides.

## Getting Started

- [Introduction](https://dike.it.com/docs/getting-started/introduction/): What the Dike API is, what it returns, and how the docs are organized.
- [Quickstart](https://dike.it.com/docs/getting-started/quickstart/): Create a key and make your first search request in under a minute.
- [Authentication](https://dike.it.com/docs/getting-started/authentication/): API key format, the Authorization header, and key management.
- [Rate limits & errors](https://dike.it.com/docs/getting-started/rate-limits-errors/): Per-plan rate limits and the RFC 7807 error shape every endpoint returns.

## API Reference

- [Search](https://dike.it.com/docs/api-reference/search/): Hybrid semantic + lexical search over the legal corpus, with optional reranking.
- [Reason](https://dike.it.com/docs/api-reference/reason/): Grounded legal Q&A with a hallucination guard that verifies every citation.
- [Cite](https://dike.it.com/docs/api-reference/cite/): Parse and resolve an Arabic legal citation string.
- [Graph Traverse](https://dike.it.com/docs/api-reference/graph-traverse/): Walk the citation graph between documents — cites, amends, repeals, implements, interprets.
- [Document](https://dike.it.com/docs/api-reference/document/): Fetch a single document's full metadata and text by canonical ID.
- [PDF proxy](https://dike.it.com/docs/api-reference/pdf/): Fetch the original scanned PDF backing an indexed document.
- [Errors reference](https://dike.it.com/docs/api-reference/errors/): Every stable error code across the API, by HTTP status.

## MCP & Agents

- [Connecting via MCP](https://dike.it.com/docs/mcp-agents/connecting-via-mcp/): Wire Dike into Claude, Cursor, or any MCP-capable agent as a remote HTTP server.
- [gRPC mirror](https://dike.it.com/docs/mcp-agents/grpc-mirror/): A gRPC mirror of Search and Reason for agent tool-use loops that prefer gRPC over HTTP/JSON.
- [Agent tool-use patterns](https://dike.it.com/docs/mcp-agents/agent-tool-patterns/): How to sequence Dike's tools inside a multi-step agent loop.

## Guides

- [Grounded Q&A walkthrough](https://dike.it.com/docs/guides/grounded-qa-walkthrough/): End-to-end example of asking a legal question and rendering a verified answer.
- [Citation resolution workflow](https://dike.it.com/docs/guides/citation-resolution/): Turn a bare citation string found in text into a linked, verified source.
- [Hybrid search tuning](https://dike.it.com/docs/guides/hybrid-search-tuning/): How filters, rerank, and top_k trade off relevance against latency and cost.

## Troubleshooting

- [Common errors](https://dike.it.com/docs/troubleshooting/common-errors/): What to check for each error code before assuming it's a bug.
- [Rate limiting](https://dike.it.com/docs/troubleshooting/rate-limiting/): How to tell which limit you hit and how to back off correctly.
- [MCP connection issues](https://dike.it.com/docs/troubleshooting/mcp-connection-issues/): Fixing an agent that can't see or won't call Dike's MCP tools.
- [Weak grounding & empty answers](https://dike.it.com/docs/troubleshooting/weak-grounding/): What it means when /v1/reason returns few or zero verified citations.
