Developers
BuildonFernLex
A typed, versioned REST + webhook API for AI employees, matters, documents, the evidence graph and automation.
$ curl -X POST https://api.fernlex.com/v1/agents/invoke \
-H "Authorization: Bearer $FERNLEX_KEY" \
-d {"agent":"intake","message":"New lead from web form"}
{
"status": "routed",
"matter_id": "M-2903",
"assigned_to": "attorney@firm.com"
}
APIreference
Agents API
Create and invoke AI employees programmatically.
POST /v1/agents
Matters API
Create and update matters, tasks and deadlines.
GET /v1/matters
Documents API
Upload, index and search legal documents.
POST /v1/documents
Evidence Graph API
Query entities, timelines and relationships.
GET /v1/graph
Webhooks
Stream events for intakes, documents and completions.
POST /v1/webhooks
Automation API
Trigger and inspect workflow runs.
GET /v1/runs
Build something great
Get an API key today and start automating your legal stack.