LexNet
Notificaciones judiciales y envíos telemáticos
curl "https://app.getplea.com/api/lexnet/notifications?read=false" \
-H "Authorization: Bearer TOKEN" \
-H "x-organization-id: ORG_ID"
const notifications = await fetch('/api/lexnet/notifications?read=false', {
headers: {
'Authorization': 'Bearer TOKEN',
'x-organization-id': 'ORG_ID'
}
}).then(r => r.json());
[
{
"id": "lexnet-uuid-1",
"type": "notification",
"subject": "Auto de admisión a trámite",
"senderBody": "Juzgado de Primera Instancia nº 12 de Madrid",
"courtFileNumber": "0042/26",
"receivedAt": "2026-03-06T09:15:00Z",
"read": false,
"caseId": "case-uuid-1",
"caseNumber": "2026/0042",
"hasAttachments": true,
"attachments": [
{
"name": "auto_admision.pdf",
"size": 156000
}
]
}
]
curl https://app.getplea.com/api/lexnet/notifications/unread-count \
-H "Authorization: Bearer TOKEN" \
-H "x-organization-id: ORG_ID"
const { count } = await fetch('/api/lexnet/notifications/unread-count', {
headers: {
'Authorization': 'Bearer TOKEN',
'x-organization-id': 'ORG_ID'
}
}).then(r => r.json());
{
"count": 3
}
curl -X POST https://app.getplea.com/api/lexnet/notifications \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-H "x-organization-id: ORG_ID" \
-d '{
"subject": "Providencia de señalamiento de vista",
"senderBody": "Juzgado de lo Social nº 3 de Madrid",
"courtFileNumber": "0100/26",
"caseId": "case-uuid-new",
"receivedAt": "2026-03-07T09:00:00Z"
}'
const notification = await fetch('/api/lexnet/notifications', {
method: 'POST',
headers: {
'Authorization': 'Bearer TOKEN',
'Content-Type': 'application/json',
'x-organization-id': 'ORG_ID'
},
body: JSON.stringify({
subject: 'Providencia de señalamiento de vista',
senderBody: 'Juzgado de lo Social nº 3 de Madrid',
courtFileNumber: '0100/26',
caseId: 'case-uuid-new',
receivedAt: '2026-03-07T09:00:00Z'
})
}).then(r => r.json());
{
"id": "lexnet-uuid-new",
"subject": "Providencia de señalamiento de vista",
"senderBody": "Juzgado de lo Social nº 3 de Madrid",
"courtFileNumber": "0100/26",
"read": false,
"caseId": "case-uuid-new",
"createdAt": "2026-03-07T12:00:00Z"
}
curl -X PATCH https://app.getplea.com/api/lexnet/notifications/lexnet-uuid-1 \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-H "x-organization-id: ORG_ID" \
-d '{"read": true}'
await fetch('/api/lexnet/notifications/lexnet-uuid-1', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer TOKEN',
'Content-Type': 'application/json',
'x-organization-id': 'ORG_ID'
},
body: JSON.stringify({ read: true })
});
{
"id": "lexnet-uuid-1",
"read": true,
"readAt": "2026-03-07T12:00:00Z"
}
curl https://app.getplea.com/api/lexnet/submissions \
-H "Authorization: Bearer TOKEN" \
-H "x-organization-id: ORG_ID"
const submissions = await fetch('/api/lexnet/submissions', {
headers: {
'Authorization': 'Bearer TOKEN',
'x-organization-id': 'ORG_ID'
}
}).then(r => r.json());
[
{
"id": "sub-uuid-1",
"type": "escrito",
"subject": "Escrito de demanda",
"destinationBody": "Juzgado de Primera Instancia nº 12 de Madrid",
"courtFileNumber": "0042/26",
"caseId": "case-uuid-1",
"status": "delivered",
"submittedAt": "2026-02-28T11:00:00Z",
"deliveredAt": "2026-02-28T11:05:00Z",
"attachments": [
{
"name": "Demanda_completa.pdf",
"size": 380000
}
]
}
]
curl -X POST https://app.getplea.com/api/lexnet/submissions \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-H "x-organization-id: ORG_ID" \
-d '{
"type": "escrito",
"subject": "Contestación a la demanda",
"destinationBody": "Juzgado de Primera Instancia nº 12 de Madrid",
"courtFileNumber": "0042/26",
"caseId": "case-uuid-1",
"documentIds": ["doc-uuid-1", "doc-uuid-2"]
}'
const submission = await fetch('/api/lexnet/submissions', {
method: 'POST',
headers: {
'Authorization': 'Bearer TOKEN',
'Content-Type': 'application/json',
'x-organization-id': 'ORG_ID'
},
body: JSON.stringify({
type: 'escrito',
subject: 'Contestación a la demanda',
destinationBody: 'Juzgado de Primera Instancia nº 12 de Madrid',
courtFileNumber: '0042/26',
caseId: 'case-uuid-1',
documentIds: ['doc-uuid-1', 'doc-uuid-2']
})
}).then(r => r.json());
{
"id": "sub-uuid-new",
"type": "escrito",
"subject": "Contestación a la demanda",
"status": "pending",
"submittedAt": "2026-03-07T12:00:00Z"
}
Endpoints para gestionar la integración con LexNet: notificaciones judiciales entrantes y envíos telemáticos a órganos judiciales.
GET /api/lexnet/notifications
Lista las notificaciones judiciales recibidas.
Filtrar por leídas (true) o no leídas (false).
Filtrar por UUID del expediente vinculado.
Máximo de resultados. Default: 50.
GET /api/lexnet/notifications/unread-count
Obtiene el número de notificaciones no leídas.
POST /api/lexnet/notifications
Crea manualmente una notificación (para importar desde fuentes externas).
Asunto de la notificación.
Órgano judicial emisor.
Número de autos.
UUID del expediente vinculado.
Fecha de recepción (ISO 8601). Default: ahora.
PATCH /api/lexnet/notifications/:id
Marca una notificación como leída.
UUID de la notificación.
true para marcar como leída.
Envíos telemáticos
GET /api/lexnet/submissions
Lista los envíos telemáticos realizados.
POST /api/lexnet/submissions
Crea un nuevo envío telemático.
Tipo: escrito, recurso, documentacion.
Asunto del envío.
Órgano judicial destinatario.
Número de autos.
UUID del expediente.
UUIDs de los documentos a adjuntar.
Last updated today