REST API documentation
A JSON-over-HTTPS API for Attorly's legal AI. It runs the same operations as the MCP server, with the same keys, scopes, limits and billing.
Quick start
Getting started
Make your first request in three steps
1. Create an API key
Go to Settings > Security > MCP connections and create a connection. The same key works for the REST API and the MCP server. Choose only the scopes your integration needs.
Open settings2. Search the clause library
Send the key as a Bearer token. Every response is JSON.
curl "https://attorly.ai/api/v1/clauses?query=limitation%20of%20liability&limit=5" \
-H "Authorization: Bearer lbmcp_your_api_key"3. Analyse a document
Run a quick analysis of text you send in the request:
curl -X POST https://attorly.ai/api/v1/analyses \
-H "Authorization: Bearer lbmcp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"mode": "quick",
"content": "This Agreement is entered into by and between..."
}'OpenAPI specification
The machine-readable specification, with every request and response schema, is at /api/v1/openapi.json. Import it into Postman, Insomnia or a code generator.
openapi.json