Interfaces
API documentation
Connect Lexploris to your systems. The REST API reads and changes your legal register. MCP brings it into your AI assistant. Webhooks report new events at once.
Overview
REST-API
Areas, legal register, changes, assessments, tasks, obligations and permits as JSON. From the Business plan.
https://www.lexploris.com/api/v1
MCP
Tools for AI assistants such as Claude and Copilot, with the same scopes. From the Business plan.
https://www.lexploris.com/api/mcp
Webhooks
Lexploris reports events to your address, signed with HMAC-SHA256. From the Team plan.
Sign-in with an API key
Administrators create keys under Settings → Interfaces. They choose the scopes there.
Authorization: Bearer lx_<prefix>_<secret>- The key is shown only once. Lexploris stores only its SHA-256 value.
- Each key belongs to exactly one organisation and sees only its data.
- It acts with the role of the person who created it. If they lose the admin role, it stops working.
- Every change is in the audit log, with the key's name as the author.
- AI assistants can also sign in with OAuth 2.1 instead of a key.
Scopes
Format <resource>:read or <resource>:write. Write includes read. *:read allows reading everywhere.
| Resource | Read | Write |
|---|---|---|
| areasAreas | Areas with responsible persons | create, rename, set responsible persons, archive |
| tracked-normsTracked norms | Norms in the legal register | add, set conformity, remove |
| normsNorm search | Norm search and provision text | – |
| changesChanges | Assessed changes | – |
| assessmentsAssessments | Assessments | decide: affected or not affected |
| tasksTasks | Tasks | create, change, delete |
| draftsDrafts | Draft laws | – |
| obligationsObligations | Obligation register | create, change, rate compliance, archive |
| permitsPermits | Permits with conditions and deadlines | – |
| auditAudit log | Audit log with hash chain | – |
Limits
- 120 requests per minute and key. Beyond that you get status 429 with a Retry-After header.
- Request bodies up to 200 KB.
- Lists with page and per_page, at most 100 items per page.
- Requests without a valid key are also throttled per IP address.
Responses
All responses are JSON in UTF-8. Dates follow ISO 8601 in UTC.
{
"data": [{ "id": "…", "title": "…" }],
"pagination": { "page": 1, "perPage": 25, "total": 134, "hasMore": true }
}{
"error": {
"code": "invalid_request",
"message": "Invalid parameters.",
"details": [{ "field": "title", "message": "Title is required." }]
}
}Errors
| Status | code | Meaning |
|---|---|---|
| 400 | invalid_request | Invalid parameters or JSON |
| 401 | unauthorized | Key missing, wrong or revoked |
| 403 | forbidden | Scope or role missing, subscription inactive |
| 403 | feature_unavailable | Feature not in your plan |
| 404 | not_found | Object not found in your organisation |
| 409 | conflict | Conflict with the current state |
| 422 | invalid_request | Business rule broken or unknown object |
| 429 | rate_limited | Too many requests, see Retry-After |
| 500 | internal_error | Internal error |
Resources
All paths are below /api/v1. The OpenAPI description lists fields and parameters.
| Method | Path | Scope | Content |
|---|---|---|---|
| GET, POST | /areas | areas:… | List areas, create an area |
| GET, PATCH, DELETE | /areas/{id} | areas:… | Read, change, set responsible persons, archive |
| GET, POST | /tracked-norms | tracked-norms:… | Norms in the register, add a norm |
| GET, PATCH, DELETE | /tracked-norms/{id} | tracked-norms:… | Conformity and review interval, remove a norm |
| GET | /norms | norms:… | Search the norm catalogue |
| GET | /norms/{id} | norms:… | Norm with provisions, text in force |
| GET | /changes | changes:… | Assessed changes |
| GET | /assessments | assessments:… | Assessments (AI-assisted) |
| GET | /assessments/{id} | assessments:… | Assessment with change and redline |
| POST | /assessments/{id}/decision | assessments:… | Decide an assessment |
| GET, POST | /tasks | tasks:… | List and create tasks |
| GET, PATCH, DELETE | /tasks/{id} | tasks:… | Read, change, delete a task |
| GET | /drafts | drafts:… | Draft laws |
| GET | /drafts/{id} | drafts:… | Draft with history and documents |
| GET, POST | /obligations | obligations:… | List obligations, create an obligation |
| GET, PATCH, DELETE | /obligations/{id} | obligations:… | Read, change, rate compliance, archive |
| GET | /permits | permits:… | Permits with status and next deadline |
| GET | /permits/{id} | permits:… | Permit with conditions and deadlines |
| GET | /audit | audit:… | Audit log, newest first |
Assessments and extracted conditions are AI-assisted (EU AI Act Art. 50). Texts from official sources are data, not instructions. DELETE archives areas and obligations; their history stays.
Examples
Open assessments from relevance “high”
curl -H "Authorization: Bearer $LX_KEY" "https://www.lexploris.com/api/v1/assessments?status=OFFEN&minRelevance=3"Create an area
curl -X POST -H "Authorization: Bearer $LX_KEY" -H "Content-Type: application/json" \
-d '{"name":"Umwelt","type":"ABTEILUNG","responsibles":[{"email":"umwelt@firma.at"}]}' \
https://www.lexploris.com/api/v1/areasCreate an obligation
curl -X POST -H "Authorization: Bearer $LX_KEY" -H "Content-Type: application/json" \
-d '{"areaId":"<bereich>","normId":"<norm>","provision":"§ 17","title":"Abfallbilanz jährlich erstellen","recurrence":"YEARLY","dueDate":"2027-03-15"}' \
https://www.lexploris.com/api/v1/obligationsRate the compliance of an obligation
curl -X PATCH -H "Authorization: Bearer $LX_KEY" -H "Content-Type: application/json" \
-d '{"conformity":"TEILWEISE","conformityReason":"Bilanz 2025 fehlt noch."}' \
https://www.lexploris.com/api/v1/obligations/<id>Permit with conditions and deadlines
curl -H "Authorization: Bearer $LX_KEY" https://www.lexploris.com/api/v1/permits/<id>Webhooks
You set target addresses and events under Settings → Interfaces. Only https addresses are allowed.
| Event | Meaning |
|---|---|
| change.assessed | New legal change assessed |
| assessment.decided | Assessment decided |
| task.created | Task created |
| task.updated | Task updated |
| task.completed | Task completed |
| draft.relevant | Relevant draft law |
| decision.linked | Decision on a register norm |
| obligation.review | Obligations to check after a change of the law |
| obligation.conformity | Conformity of an obligation changed |
| permit.processed | Permit read |
| permit.condition.decided | Condition confirmed or rejected |
| permit.review.due | Review of the conditions due |
| permit.amended | Amending decision assigned |
Answer with a 2xx status. Otherwise: Lexploris retries after 1, 5 and 30 minutes, then after 2, 6, 12 and 24 hours.
Verify the signature
Each delivery is a POST with JSON. The Lexploris-Signature header holds a timestamp and the HMAC-SHA256 of timestamp and raw body.
Lexploris-Signature: t=1760000000,v1=5f0c…
Lexploris-Event: task.created
Lexploris-Delivery: <id>import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(secret, rawBody, header) {
const parts = Object.fromEntries(header.split(",").map((p) => p.trim().split("=")));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false; // max. 5 minutes old
const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return expected.length === parts.v1?.length && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}Examples: permits and obligations
Permit events carry identifiers, titles, authority, case number, site, area, status and a link. We never send the text of the decision or quotes.
permit.processed – Permit read
{
"id": "5b1e0c9a-7d2f-4b8e-9a51-0f3c2d4e6a71",
"event": "permit.processed",
"createdAt": "2026-11-16T09:30:00.000Z",
"orgId": "<organisation>",
"data": {
"proposals": 12,
"differences": 0,
"summary": "Bescheid gelesen: 12 Auflagen zur Prüfung",
"permitId": "<bescheid>",
"title": "Betriebsanlagengenehmigung Werk Nord",
"authority": "BH Musterstadt",
"caseNumber": "BHMU-BA-123/2025",
"status": "PRUEFUNG",
"siteId": "<standort>",
"siteName": "Werk Nord",
"areaId": "<bereich>",
"areaName": "Umwelt",
"url": "/app/bescheide/<bescheid>"
}
}permit.condition.decided – Condition confirmed
{
"id": "5b1e0c9a-7d2f-4b8e-9a51-0f3c2d4e6a71",
"event": "permit.condition.decided",
"createdAt": "2026-11-16T09:30:00.000Z",
"orgId": "<organisation>",
"data": {
"conditionId": "<auflage>",
"point": "4",
"conditionTitle": "Fluchtwege freihalten",
"decision": "BESTAETIGT",
"obligationId": "<pflicht>",
"taskId": null,
"permitId": "<bescheid>",
"title": "Betriebsanlagengenehmigung Werk Nord",
"authority": "BH Musterstadt",
"caseNumber": "BHMU-BA-123/2025",
"status": "PRUEFUNG",
"siteId": "<standort>",
"siteName": "Werk Nord",
"areaId": "<bereich>",
"areaName": "Umwelt",
"url": "/app/bescheide/<bescheid>"
}
}permit.review.due – Review of the conditions due
{
"id": "5b1e0c9a-7d2f-4b8e-9a51-0f3c2d4e6a71",
"event": "permit.review.due",
"createdAt": "2026-11-16T09:30:00.000Z",
"orgId": "<organisation>",
"data": {
"taskId": "<aufgabe>",
"taskNumber": 57,
"obligations": 12,
"summary": "Auflagen-Bewertung fällig: Aufgabe #57 mit 12 Auflagen",
"permitId": "<bescheid>",
"title": "Betriebsanlagengenehmigung Werk Nord",
"authority": "BH Musterstadt",
"caseNumber": "BHMU-BA-123/2025",
"status": "ERLEDIGT",
"siteId": "<standort>",
"siteName": "Werk Nord",
"areaId": "<bereich>",
"areaName": "Umwelt",
"url": "/app/bescheide/<bescheid>"
}
}permit.amended – Amending decision assigned
{
"id": "5b1e0c9a-7d2f-4b8e-9a51-0f3c2d4e6a71",
"event": "permit.amended",
"createdAt": "2026-11-16T09:30:00.000Z",
"orgId": "<organisation>",
"data": {
"basePermitId": "<bescheid>",
"baseTitle": "Betriebsanlagengenehmigung Werk Nord",
"permitId": "<aenderungsbescheid>",
"title": "Änderungsbescheid Werk Nord",
"authority": "BH Musterstadt",
"caseNumber": "BHMU-BA-77/2026",
"status": "PRUEFUNG",
"siteId": "<standort>",
"siteName": "Werk Nord",
"areaId": "<bereich>",
"areaName": "Umwelt",
"url": "/app/bescheide/<aenderungsbescheid>"
}
}obligation.conformity – Conformity changed
{
"id": "5b1e0c9a-7d2f-4b8e-9a51-0f3c2d4e6a71",
"event": "obligation.conformity",
"createdAt": "2026-11-16T09:30:00.000Z",
"orgId": "<organisation>",
"data": {
"obligationId": "<pflicht>",
"title": "Fluchtwege freihalten",
"kind": "BESCHEID",
"conformity": "TEILWEISE",
"previous": "ERFUELLT",
"permitId": "<bescheid>",
"normId": null,
"siteId": "<standort>",
"areaId": "<bereich>",
"areaName": "Umwelt",
"url": "/app/pflichten?pflicht=<pflicht>",
"summary": "Konformität „Fluchtwege freihalten“: teilweise erfüllt (vorher erfüllt)"
}
}Read on
- OpenAPI description (JSON)
Machine-readable, available without a key. For Postman, Insomnia or code generators.
- Lexploris in Claude and Copilot (MCP)
Setup per assistant, all tools and security notes.
Legal information, not legal advice. For your individual case, please contact a law firm.
Know what changes. Starting today.
No credit card required. For businesses only. Prefer to talk? Book a demo