Getting started
Legal API, MCP server and A2A agent for case analysis
Upgrade your office with practitioner-grade legal intelligence, built into the tools you already run, through a wide set of tools and seamless integrations. Your people get it on the site. Your systems and your AI agents get all of it through one key and three doors: REST, MCP and an Agent-to-Agent endpoint. Open a matter from anything you have. Follow the build. Search the dossier, work it with the CLI, and deliver it. Everything the site does, your software can do.
What you get
- Open a matter from anything. PDFs, scans, emails, a pasted narrative, a form post, or a finished intake record from your own flow. Codossier reads it, interviews what is missing, and builds the reasoning map, the same dossier a person gets from the site.
- Follow the build. Every long job answers at once with a request you track by polling, the events feed, or a webhook.
- Search the dossier. Ask in loose words and get the matter back.
- Work it with the CLI. Ask about any single issue and get proposals backed by the legal corpus. Accept or discard them, add your own nodes, bring in new material as the matter moves.
- Deliver it. The whole dossier as JSON, Markdown or PDF, to a link you issue.
- Built for agents, first-class. Every capability is an MCP tool in the same words, long work runs as a task, questions come back in the conversation, and an A2A endpoint and signed agent card cover agent-to-agent setups.
- Try it free. Sandbox keys simulate everything at no cost.
Who can use it
Anyone with a Codossier sign-in. A person and an office are equal on the API: both create keys, both open matters, both get the same answers. The one difference is billing: a person's key spends that person's own credits (the ones bought on the site), and an office can be set up to pay monthly by invoice instead. Sandbox keys simulate everything for free and need nothing at all.
The three doors
| Door | Where | For |
|---|---|---|
https://api.codossier.com/v1 | REST, JSON, snake_case | Your systems: a practice-management tool, a DMS, an intake form, a script. |
https://api.codossier.com/mcp | MCP, Streamable HTTP (2026-07-28 revision) | AI agents: ChatGPT, Cursor, your own. One tool per capability. |
https://api.codossier.com/a2a | A2A 1.0, JSON-RPC (send A2A-Version: 1.0) | Agent-to-agent orchestration; the signed card is at /.well-known/agent-card.json. |
The three doors share one engine, one ledger of requests and one vocabulary. Whatever you do through MCP you can read back through REST, and the other way round. Every long-running call answers at once with a request you follow by polling, the events feed, or a webhook.
Start here
- Sign in and open the Developers page. Create a sandbox key.
- Read the quickstart: it is three calls long.
- Then: create a case from files, submit your own intake record, or connect an agent.
- Keep the reference open; the machine-readable version is
https://api.codossier.com/v1/openapi.jsonandhttps://api.codossier.com/llms.txt.
Connect your AI over MCP
- Sign in and create a key on the Developers page. A sandbox key (
cdk_test_…) is free and simulates every call. - Add Codossier to your AI tool with the setup below that matches it, your key in place of
cdk_live_<id>_<secret>. - Ask in plain words: “open a matter from these three PDFs and tell me when the dossier is ready”. Your agent sees all 25 tools and picks the ones it needs.
Add Codossier to your AI tool by its address, https://api.codossier.com/mcp. The first time, the tool opens your browser: sign in or create an account, choose Allow, and it's connected. No key to copy. Each dossier it opens uses one of your credits, as on the site, and you can disconnect it at any time from the Developers page, which also has one-click Add to VS Code and Add to Cursor.
claude mcp add --transport http codossier https://api.codossier.com/mcp{
"mcpServers": {
"codossier": { "url": "https://api.codossier.com/mcp" }
}
}{
"servers": {
"codossier": { "type": "http", "url": "https://api.codossier.com/mcp" }
}
}Claude: open Settings, then Connectors, choose Add custom connector, and paste the address. A tool that only runs local servers can reach it through npx -y mcp-remote https://api.codossier.com/mcp, which opens the same sign-in.
With a key instead
For your own code, CI and tools that cannot open a browser, send a key as a Bearer header. The signed-in Developers page shows each line with your key filled in.
claude mcp add --transport http codossier https://api.codossier.com/mcp --header "Authorization: Bearer cdk_live_<id>_<secret>"{
"mcpServers": {
"codossier": {
"url": "https://api.codossier.com/mcp",
"headers": { "Authorization": "Bearer cdk_live_<id>_<secret>" }
}
}
}{
"servers": {
"codossier": {
"type": "http",
"url": "https://api.codossier.com/mcp",
"headers": { "Authorization": "Bearer cdk_live_<id>_<secret>" }
}
}
}{
"mcpServers": {
"codossier": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.codossier.com/mcp", "--header", "Authorization:${CODOSSIER_AUTH}"],
"env": { "CODOSSIER_AUTH": "Bearer cdk_live_<id>_<secret>" }
}
}
}URL: https://api.codossier.com/mcp
Header: Authorization: Bearer cdk_live_<id>_<secret>Paste https://api.codossier.com/llms-full.txt into your coding assistant and say what you want to build. It is one file with every call, contract and schema and the glossary: reading material for the assistant, not a connection. To connect, use MCP above.