ComunicacionesLexNet
Comunicaciones

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"
[
  {
    "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"
{
  "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"
  }'
{
  "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}'
{
  "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"
[
  {
    "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"]
  }'
{
  "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.

query
readboolean

Filtrar por leídas (true) o no leídas (false).

query
caseIdstring

Filtrar por UUID del expediente vinculado.

query
limitnumber

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

body
subjectstring
Required

Asunto de la notificación.

body
senderBodystring
Required

Órgano judicial emisor.

body
courtFileNumberstring

Número de autos.

body
caseIdstring

UUID del expediente vinculado.

body
receivedAtstring

Fecha de recepción (ISO 8601). Default: ahora.


PATCH /api/lexnet/notifications/:id

Marca una notificación como leída.

path
idstring
Required

UUID de la notificación.

body
readboolean
Required

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.

body
typestring
Required

Tipo: escrito, recurso, documentacion.

body
subjectstring
Required

Asunto del envío.

body
destinationBodystring
Required

Órgano judicial destinatario.

body
courtFileNumberstring

Número de autos.

body
caseIdstring

UUID del expediente.

body
documentIdsstring[]

UUIDs de los documentos a adjuntar.