PlanificaciónCalendario y Reuniones
Planificación

Calendario y Reuniones

Eventos de calendario, reuniones con grabación IA y conexiones con Google Calendar/CalDAV

curl "https://app.getplea.com/api/calendar-events?dateFrom=2026-03-01&dateTo=2026-03-31" \
  -H "Authorization: Bearer TOKEN" \
  -H "x-organization-id: ORG_ID"
[
  {
    "id": "event-uuid-1",
    "title": "Vista oral - Exp. 2026/0042",
    "start": "2026-03-15T10:00:00+01:00",
    "end": "2026-03-15T12:00:00+01:00",
    "location": "Juzgado de Primera Instancia nº 12, Madrid",
    "caseId": "case-uuid-1",
    "attendees": ["ana.lopez@despacho.com"],
    "color": "#ef4444"
  },
  {
    "id": "event-uuid-2",
    "title": "Reunión con cliente Elena Martínez",
    "start": "2026-03-10T16:00:00+01:00",
    "end": "2026-03-10T17:00:00+01:00",
    "location": "Despacho",
    "meetingUrl": "https://meet.google.com/abc-def-ghi",
    "color": "#6366f1"
  }
]
curl -X POST https://app.getplea.com/api/calendar/create-event \
  -H "Authorization: Bearer TOKEN" \
  -H "Content-Type: application/json" \
  -H "x-organization-id: ORG_ID" \
  -d '{
    "title": "Audiencia previa - Exp. 2026/0100",
    "start": "2026-04-10T09:30:00+02:00",
    "end": "2026-04-10T11:00:00+02:00",
    "location": "Juzgado de lo Social nº 3, Madrid",
    "caseId": "case-uuid-new",
    "attendees": ["ana.lopez@despacho.com", "pedro@despacho.com"]
  }'
{
  "id": "event-uuid-new",
  "title": "Audiencia previa - Exp. 2026/0100",
  "start": "2026-04-10T09:30:00+02:00",
  "end": "2026-04-10T11:00:00+02:00",
  "location": "Juzgado de lo Social nº 3, Madrid",
  "createdAt": "2026-03-07T12:00:00Z"
}
curl -X POST https://app.getplea.com/api/meeting/create \
  -H "Authorization: Bearer TOKEN" \
  -H "Content-Type: application/json" \
  -H "x-organization-id: ORG_ID" \
  -d '{
    "title": "Reunión seguimiento - Elena Martínez",
    "meetingUrl": "https://meet.google.com/abc-def-ghi",
    "scheduledAt": "2026-03-10T16:00:00+01:00",
    "caseId": "case-uuid-1"
  }'
{
  "id": "meeting-uuid-1",
  "title": "Reunión seguimiento - Elena Martínez",
  "meetingUrl": "https://meet.google.com/abc-def-ghi",
  "scheduledAt": "2026-03-10T16:00:00+01:00",
  "botStatus": "scheduled",
  "transcriptionEnabled": true,
  "createdAt": "2026-03-07T12:00:00Z"
}
curl https://app.getplea.com/api/meetings \
  -H "Authorization: Bearer TOKEN" \
  -H "x-organization-id: ORG_ID"
[
  {
    "id": "meeting-uuid-1",
    "title": "Reunión seguimiento - Elena Martínez",
    "scheduledAt": "2026-03-10T16:00:00+01:00",
    "duration": 45,
    "botStatus": "completed",
    "hasTranscription": true,
    "hasSummary": true,
    "summary": "Se discutió la estrategia para la reclamación. El cliente aportará facturas adicionales...",
    "caseId": "case-uuid-1"
  }
]
curl https://app.getplea.com/api/google-calendar-connections \
  -H "Authorization: Bearer TOKEN" \
  -H "x-organization-id: ORG_ID"
[
  {
    "id": "gcc-uuid-1",
    "email": "ana.lopez@gmail.com",
    "calendarId": "primary",
    "syncEnabled": true,
    "lastSync": "2026-03-07T08:00:00Z"
  }
]
curl https://app.getplea.com/api/caldav-connections \
  -H "Authorization: Bearer TOKEN" \
  -H "x-organization-id: ORG_ID"
[
  {
    "id": "caldav-uuid-1",
    "serverUrl": "https://caldav.icloud.com",
    "username": "ana.lopez@icloud.com",
    "syncEnabled": true,
    "lastSync": "2026-03-07T07:45:00Z"
  }
]

Endpoints para gestionar eventos del calendario, reuniones con transcripción automática (Recall.ai) y conexiones con calendarios externos.

GET /api/calendar-events

Lista los eventos del calendario.

query
dateFromstring

Desde fecha (ISO 8601).

query
dateTostring

Hasta fecha (ISO 8601).


POST /api/calendar/create-event

Crea un nuevo evento en el calendario.

body
titlestring
Required

Título del evento.

body
startstring
Required

Fecha/hora de inicio (ISO 8601).

body
endstring
Required

Fecha/hora de fin (ISO 8601).

body
caseIdstring

UUID del expediente asociado.

body
attendeesstring[]

Array de emails de asistentes.


POST /api/meeting/create

Crea una reunión con grabación y transcripción automática (Recall.ai bot).

body
titlestring
Required

Título de la reunión.

body
meetingUrlstring
Required

URL de la videollamada (Google Meet, Zoom, Teams).

body
scheduledAtstring
Required

Fecha/hora programada (ISO 8601).

body
caseIdstring

UUID del expediente asociado.


GET /api/meetings

Lista las reuniones con sus transcripciones.


GET /api/google-calendar-connections

Lista las conexiones con Google Calendar.


GET /api/caldav-connections

Lista las conexiones CalDAV (iCloud, NextCloud, etc.).