Skip to content

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.

Compare plans

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.

ResourceReadWrite
areasAreasAreas with responsible personscreate, rename, set responsible persons, archive
tracked-normsTracked normsNorms in the legal registeradd, set conformity, remove
normsNorm searchNorm search and provision text–
changesChangesAssessed changes–
assessmentsAssessmentsAssessmentsdecide: affected or not affected
tasksTasksTaskscreate, change, delete
draftsDraftsDraft laws–
obligationsObligationsObligation registercreate, change, rate compliance, archive
permitsPermitsPermits with conditions and deadlines–
auditAudit logAudit 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

StatuscodeMeaning
400invalid_requestInvalid parameters or JSON
401unauthorizedKey missing, wrong or revoked
403forbiddenScope or role missing, subscription inactive
403feature_unavailableFeature not in your plan
404not_foundObject not found in your organisation
409conflictConflict with the current state
422invalid_requestBusiness rule broken or unknown object
429rate_limitedToo many requests, see Retry-After
500internal_errorInternal error

Resources

All paths are below /api/v1. The OpenAPI description lists fields and parameters.

MethodPathScopeContent
GET, POST/areasareas:…List areas, create an area
GET, PATCH, DELETE/areas/{id}areas:…Read, change, set responsible persons, archive
GET, POST/tracked-normstracked-norms:…Norms in the register, add a norm
GET, PATCH, DELETE/tracked-norms/{id}tracked-norms:…Conformity and review interval, remove a norm
GET/normsnorms:…Search the norm catalogue
GET/norms/{id}norms:…Norm with provisions, text in force
GET/changeschanges:…Assessed changes
GET/assessmentsassessments:…Assessments (AI-assisted)
GET/assessments/{id}assessments:…Assessment with change and redline
POST/assessments/{id}/decisionassessments:…Decide an assessment
GET, POST/taskstasks:…List and create tasks
GET, PATCH, DELETE/tasks/{id}tasks:…Read, change, delete a task
GET/draftsdrafts:…Draft laws
GET/drafts/{id}drafts:…Draft with history and documents
GET, POST/obligationsobligations:…List obligations, create an obligation
GET, PATCH, DELETE/obligations/{id}obligations:…Read, change, rate compliance, archive
GET/permitspermits:…Permits with status and next deadline
GET/permits/{id}permits:…Permit with conditions and deadlines
GET/auditaudit:…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/areas

Create 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/obligations

Rate 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.

EventMeaning
change.assessedNew legal change assessed
assessment.decidedAssessment decided
task.createdTask created
task.updatedTask updated
task.completedTask completed
draft.relevantRelevant draft law
decision.linkedDecision on a register norm
obligation.reviewObligations to check after a change of the law
obligation.conformityConformity of an obligation changed
permit.processedPermit read
permit.condition.decidedCondition confirmed or rejected
permit.review.dueReview of the conditions due
permit.amendedAmending 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

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