For developers
AIM LEX verification, inside your software.
Send a text and receive every legal citation with its verdict against the official text —green, amber or red—, the reason, the link to the source and a public, chained certificate. Also look up the status of any rule: validity, European identifier and annulments by the Supreme Court.
The key
Use the connection key of your organisation (client area → “Connect your ChatGPT or your Claude”) in the header Authorization: Bearer lex_…. Each check is recorded in your account with its certificate.
What you can ask for
| Request | What it returns |
|---|---|
POST /api/v1/verificar | Each citation in the text with its verdict, its reason and its official source, the summary and the certificate. Up to 60,000 characters. |
GET /api/v1/norma/{identificador} | Title, validity, date of the last check, ELI and Supreme Court annulments of the rule. |
POST /api/v1/consulta | The answer to a question of Spanish law with every citation checked against its official source, or an abstention if there is no coverage. With expediente_id, with the context of that matter. |
GET /api/v1/articulo?norma=…&articulo=… | The current text of an article, with its official identifier and its link. |
GET /api/v1/normas?q=… | The rules whose title matches, with their validity and their link. |
GET /api/v1/expedientes · /{id} | The matters the key can see; one of them, with its documents, tasks and usage. |
GET /api/v1/salas · /{id}/buscar?q=… | The data rooms and the search across thousands of documents, with the matching excerpt. |
POST /api/v1/tablas · GET /{id} | A review table with the documents of a matter, and its values when it finishes. |
GET /api/v1/uso | Usage per client and per matter, for billing. |
GET /api/v1/auditoria | The audit log for the period (key of whoever administers). |
GET /cert/{id}.json | The certificate, with what is needed to recompute its fingerprint and its chain link. Public, no key. |
The key acts with the permissions of whoever created it: a restricted matter, or one behind an ethical wall, does not exist here either.
Example
curl -X POST https://www.aim-lex.ai/api/v1/verificar \
-H "Authorization: Bearer lex_tu_clave" \
-H "Content-Type: application/json" \
-d '{"texto": "Conforme al artículo 1124 del Código Civil, la facultad de resolver…"}'
The limits per key are 60 checks per minute and 3,000 per day. For larger volumes, write to us.
From ChatGPT, Claude and Microsoft 365 Copilot
The MCP server (https://www.aim-lex.ai/mcp) gives ChatGPT and Claude the same tools: the verified consultation, citation verification, articles and rules, deadlines, official procedures, and the firm's matters and data rooms.
For Microsoft 365 Copilot, download the agent package, register your key in the Teams developer portal and upload it as an app of your organisation: Copilot will answer with verified Spanish law and your firm's matters.
Automatic creation and removal of accounts (SCIM 2.0)
The firm's directory (Microsoft Entra ID, Okta, Google Workspace, JumpCloud…) creates, changes and removes people in AIM LEX with SCIM 2.0. The address is https://www.aim-lex.ai/scim/v2 and the key is created by whoever administers the firm in “Your account” (header Authorization: Bearer).
/Users is supported (list with filter=userName eq "…" or externalId eq "…", read, create, PUT, PATCH and DELETE), plus /ServiceProviderConfig and /ResourceTypes. Removing an account closes the person's sessions and keys and keeps their work; the plan's seats and the person who administers are respected just as on screen.