DUOLEXX

Integración · Lovable

DUOLEXX en Lovable

Muestra datos jurídicos verificados en tu app de Lovable y comprueba antes de firmar si basta una firma electrónica.

Qué hace el componente en tu app

Dile a Lovable qué debe comprobar tu app. El prompt de abajo integra los endpoints públicos de DUOLEXX — con cita y aviso de información jurídica.

  • Comprobación de forma: si un documento puede firmarse electrónicamente en un país, con norma y fuente.
  • Datos jurídicos: valores verificados con cita y fecha de verificación que tu app puede mostrar.
  • Verificación de sellos: si un documento firmado es auténtico y no ha sido modificado.

Prompt para copiar

Pega este prompt en el chat de Lovable. Solo integra los endpoints públicos de lectura.

Build the legal-information feature of my app on the public DUOLEXX read API. No API key is needed for these endpoints.

1) Form check - can a document be signed electronically?
   GET https://duolexx.com/api/v1/rules/form-check?type=<docType>&country=<ISO country>&signature=ses
   - signature is one of: ses | aes | qes | wet | notary
   - List valid <docType> keys with GET https://duolexx.com/api/v1/document-types
   - The answer has result.status (verified | unverified | unknown), result.allowed, result.requires,
     result.facts[] (citation, source_url, verified_at) and a signed evidence hash in signature.hash.
   - If status is "unknown", say that no verified rule exists yet. Do not guess.

2) Legal facts with statute citation and official source.
   GET https://duolexx.com/api/v1/facts?q=<english keywords>&jurisdiction=<DE|AT|ES|FR|PT|CY|TH|EU|INTL>
   - Facts are licensed CC BY 4.0: show the attribution returned in the response.

3) Verify a DUOLEXX seal.
   POST https://duolexx.com/api/verify with {"documentHash": "<sha256>", "seal": "<base64>"} -> {"valid": true|false}

Rules for the app:
- Always show citation, source_url and verified_at next to every legal statement.
- Always add: "General legal information as of the dataset version, not individual legal advice."
- Call the endpoints from server code (or a server action), cache answers for a few minutes, and handle 429.
- Never claim a guarantee, and never imply an official partnership with DUOLEXX.

Clave de API como secreto

Los endpoints de lectura no necesitan clave. Para documentos y firma, la clave de API debe ir en un secreto o variable de entorno de Lovable (por ejemplo DUOLEXX_API_KEY) — nunca en el código fuente ni en el navegador.

Ir a la referencia de la API →

Límites

  • Información jurídica general a la fecha de los datos, no asesoramiento jurídico individual.
  • Es determinante el boletín oficial; cada respuesta indica la cita.
  • Sin una regla verificada, la comprobación responde con honestidad “desconocido” en lugar de adivinar.
  • Sin garantía ni asociación oficial.

Lovable es una marca de su respectivo titular. DUOLEXX no está vinculado con el proveedor.