Agenda

Referencia de 5 endpoints generados desde mosend-wb-backend/src/modules/agenda/google/google-calendar.controller.ts.

Base path: /organizations/:orgId/agenda/google·5 endpoints·Source: mosend-wb-backend/src/modules/agenda/google/google-calendar.controller.ts
GET/organizations/:orgId/agenda/google/status
bearer

Estado de la conexión con Google Calendar.

Path params

  • orgIdstringrequerido

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/agenda/google/status' \
  -H 'X-Api-Key: mk_live_<prefix>.<secret>'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "createdAt": "2026-05-01T03:42:18.123Z"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}
GET/organizations/:orgId/agenda/google/connect
bearer

Devuelve la URL de consentimiento OAuth para conectar Google.

Path params

  • orgIdstringrequerido

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/agenda/google/connect' \
  -H 'X-Api-Key: mk_live_<prefix>.<secret>'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "createdAt": "2026-05-01T03:42:18.123Z"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}
PATCH/organizations/:orgId/agenda/google
bearer

Activa/desactiva push de citas y bloqueo por ocupado.

Path params

  • orgIdstringrequerido

Body (JSON)

  • pushEnabledboolean

    Citas de Mosend → eventos de Google.

  • blockBusyEnabledboolean

    "Ocupado" en Google bloquea horarios.

Respuestas

  • 200
curl -X PATCH 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/agenda/google' \
  -H 'X-Api-Key: mk_live_<prefix>.<secret>' \
  -H 'Content-Type: application/json' \
  -d '{"pushEnabled": true,"blockBusyEnabled": true}'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "description": "string"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}
DELETE/organizations/:orgId/agenda/google
bearer

Desconecta Google Calendar.

Path params

  • orgIdstringrequerido

Respuestas

  • 200
curl -X DELETE 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/agenda/google' \
  -H 'X-Api-Key: mk_live_<prefix>.<secret>'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "createdAt": "2026-05-01T03:42:18.123Z"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}
GET/organizations/:orgId/agenda/google/callback
público

Callback OAuth de Google Calendar.

Query params

  • codestring
  • statestring
  • errorstring
curl -X GET 'https://api.mosend.dev/organizations/:orgId/agenda/google/callback'
Response · 200
{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "createdAt": "2026-05-01T03:42:18.123Z"
    }
  ],
  "timestamp": "2026-05-01T03:42:18.123Z"
}