Laila API
Cambiando el ecosistema legal sin perder lo esencial: tu juicio profesional.
Quickstart
Make your first request in under a minute. Replace placeholders with your credentials and IDs.
- cURL
- JavaScript (fetch)
- Python (requests)
curl -X POST https://api.laila.legal/v1/reports \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "sociedades_y_poderes",
"companyId": "COMPANY_ID",
"options": { "validate": true }
}'
async function createReport() {
const res = await fetch('https://api.laila.legal/v1/reports', {
method: 'POST',
headers: {
Authorization: 'Bearer ' + process.env.LAILA_API_KEY!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
type: 'sociedades_y_poderes',
companyId: 'COMPANY_ID',
options: { validate: true },
}),
});
if (!res.ok) throw new Error('Request failed: ' + res.status);
const report = await res.json();
console.log(report.id, report.status);
}
createReport().catch(console.error);
import os, requests
API_KEY = os.environ.get("LAILA_API_KEY")
resp = requests.post(
"https://api.laila.legal/v1/reports",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"type": "sociedades_y_poderes",
"companyId": "COMPANY_ID",
"options": {"validate": True},
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["id"], resp.json()["status"])
Why Laila
Lawyer-first by design
Every output is verifiable, editable, and auditable—technology that amplifies your criterio profesional, never replaces it.
Structured JSON
Consistent schemas for entities, powers, shareholders, and validations—built for downstream automation.
Webhooks & events
Subscribe to report lifecycle events to update your app in real time.
Sandbox
Deterministic fixtures for integration tests and demo data—ship faster with confidence.