Tickets de WHMCS

Referencia de 11 endpoints generados desde mosend-wb-backend/src/modules/tickets-whmcs/tickets-whmcs.controller.ts.

Base path: /organizations/:orgId/tickets-whmcs·11 endpoints·Source: mosend-wb-backend/src/modules/tickets-whmcs/tickets-whmcs.controller.ts
GET/organizations/:orgId/tickets-whmcs
bearer

Canales de tickets de WHMCS y los conectores WHMCS que pueden activarse.

Path params

  • orgIdstringrequerido

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs' \
  -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"
}
POST/organizations/:orgId/tickets-whmcs
bearer

Lleva los tickets de un conector WHMCS a la bandeja.

Path params

  • orgIdstringrequerido

Body (JSON)

  • connectorIdstring · uuidrequerido

    Conector WHMCS cuyos tickets entran a la bandeja.

Respuestas

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

Activa o pausa el canal, elige departamentos y asocia asesores con administradores de WHMCS.

Path params

  • orgIdstringrequerido
  • canalIdstringrequerido

Body (JSON)

  • enabledboolean
  • departamentosstring[]

    Ids de departamento de WHMCS que entran. Vacío = todos.

  • asesoresobject

    Id del asesor en Mosend → usuario administrador de WHMCS.

  • adminPorDefectostring

    Administrador de WHMCS con el que responde quien no tiene uno propio.

Respuestas

  • 200
curl -X PATCH 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs/00000000-0000-0000-0000-000000000000' \
  -H 'X-Api-Key: mk_live_<prefix>.<secret>' \
  -H 'Content-Type: application/json' \
  -d '{"enabled": true,"departamentos": [],"asesores": {},"adminPorDefecto": "<adminPorDefecto>"}'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "description": "string"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}
GET/organizations/:orgId/tickets-whmcs/:canalId/opciones
bearer

Departamentos, estados y administradores del WHMCS.

Path params

  • orgIdstringrequerido
  • canalIdstringrequerido

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs/00000000-0000-0000-0000-000000000000/opciones' \
  -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/tickets-whmcs/:canalId/archivo-de-hooks
bearer

Archivo mosend.php para includes/hooks/ de WHMCS (avisa al instante cuando cambia un ticket).

Path params

  • orgIdstringrequerido
  • canalIdstringrequerido

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs/00000000-0000-0000-0000-000000000000/archivo-de-hooks' \
  -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"
}
POST/organizations/:orgId/tickets-whmcs/:canalId/sincronizar
bearer

Lee ahora los tickets que cambiaron en WHMCS.

Path params

  • orgIdstringrequerido
  • canalIdstringrequerido

Respuestas

  • 201
curl -X POST 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs/00000000-0000-0000-0000-000000000000/sincronizar' \
  -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/tickets-whmcs/conversaciones/:conversationId
bearer

El ticket de WHMCS de una conversación.

Path params

  • orgIdstringrequerido
  • conversationIdstringrequerido

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs/conversaciones/00000000-0000-0000-0000-000000000000' \
  -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/tickets-whmcs/conversaciones/:conversationId/estados
bearer

Estados de ticket que admite el WHMCS.

Path params

  • orgIdstringrequerido
  • conversationIdstringrequerido

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs/conversaciones/00000000-0000-0000-0000-000000000000/estados' \
  -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"
}
POST/organizations/:orgId/tickets-whmcs/conversaciones/:conversationId/responder
bearer

Responde el ticket (o deja una nota interna) en WHMCS; WHMCS envía el correo al cliente.

Path params

  • orgIdstringrequerido
  • conversationIdstringrequerido

Body (JSON)

  • textostringrequerido
  • notaboolean

    true = nota interna (solo la ven los asesores en WHMCS).

  • estadostring

    Estado en que queda el ticket después de responder.

  • adjuntosAdjuntoDeTicketDto[]

Respuestas

  • 201
curl -X POST 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs/conversaciones/00000000-0000-0000-0000-000000000000/responder' \
  -H 'X-Api-Key: mk_live_<prefix>.<secret>' \
  -H 'Content-Type: application/json' \
  -d '{"texto": "<texto>","nota": true,"estado": "<estado>","adjuntos": []}'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "description": "string"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}
POST/organizations/:orgId/tickets-whmcs/conversaciones/:conversationId/estado
bearer

Cambia el estado del ticket en WHMCS.

Path params

  • orgIdstringrequerido
  • conversationIdstringrequerido

Body (JSON)

  • estadostringrequerido

Respuestas

  • 201
curl -X POST 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs/conversaciones/00000000-0000-0000-0000-000000000000/estado' \
  -H 'X-Api-Key: mk_live_<prefix>.<secret>' \
  -H 'Content-Type: application/json' \
  -d '{"estado": "<estado>"}'
Response · 200
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "description": "string"
  },
  "timestamp": "2026-05-01T03:42:18.123Z"
}
GET/organizations/:orgId/tickets-whmcs/mensajes/:messageId/adjunto
bearer

Descarga un adjunto del ticket desde WHMCS.

Path params

  • orgIdstringrequerido
  • messageIdstringrequerido

Query params

  • indicenumberrequerido

Respuestas

  • 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/tickets-whmcs/mensajes/00000000-0000-0000-0000-000000000000/adjunto' \
  -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"
}