API de tickets de servicio
Los tickets de servicio (Service Tickets) son registros de seguimiento de incidencias (tickets de soporte o casos). Estos endpoints crean y administran tickets de servicio, consultan sus tipos y estados, y registran actividades sobre ellos (consulte la API de actividades de tickets de servicio y la API de tareas de tickets de servicio, que están por separado).
Consulte la referencia de la API REST para conocer la URL base y el encabezado de autenticación que necesita cada solicitud de esta página.
GET /v1/service-ticket
Sección titulada «GET /v1/service-ticket»Get Service Tickets: obtiene una lista filtrada, ordenada y paginada de tickets de servicio.
Parámetros de consulta (ninguno es obligatorio):
| Parámetro | Tipo | Notas |
|---|---|---|
searchText |
string | Filtro de texto libre. |
displayName |
array of strings | Filtra por nombre para mostrar. |
issueId |
array of strings | Filtra por ID del ticket. |
issueTypeId |
array of strings | Filtra por ID del tipo de ticket. |
issueTypeStatusId |
array of strings | Filtra por estado del tipo de ticket. |
assignedTo |
array of strings | Filtra por responsable asignado. |
assignedBy |
array of strings | Filtra por quien asignó el ticket. |
createdBy |
array of strings | Filtra por el rol del creador: PROCESS, USER, AGENT. |
resolvedBy |
array of strings | Filtra por el rol de quien resolvió: PROCESS, USER, AGENT. |
priority |
array of strings | Filtra por prioridad: HIGHEST, HIGH, MEDIUM, LOW, LOWEST, NONE. |
parentIssueId |
array of strings | Filtra por ID del ticket padre. |
activityId |
array of strings | Filtra por ID de actividad. |
createdAfter / createdBefore |
string (date-time) | Filtra por rango de fecha de creación. |
updatedAfter / updatedBefore |
string (date-time) | Filtra por rango de fecha de la última actualización. |
dueAfter / dueBefore |
string (date-time) | Filtra por rango de fecha de vencimiento. |
resolvedAfter / resolvedBefore |
string (date-time) | Filtra por rango de fecha de resolución. |
returnParameters |
boolean | Incluye los parámetros en la respuesta. Valor predeterminado: false. |
returnAdditionalField |
boolean | Incluye los campos adicionales. Valor predeterminado: false. |
returnRelatedEntities |
boolean | Incluye las entidades relacionadas. Valor predeterminado: false. |
returnActivities |
boolean | Incluye las actividades. Valor predeterminado: false. |
additionalField |
array of strings | Indica qué campos adicionales devolver. |
relatedEntity |
array of strings (UUID) | Filtra por entidad relacionada. |
sortOrder |
string | Campo por el que se ordena. Valor predeterminado: createdAt. |
isAscending |
boolean | Dirección del orden. Valor predeterminado: false. |
pageNumber |
integer | Página que se recupera. Valor predeterminado: 0. |
pageSize |
integer | Resultados por página. Valor predeterminado: 25. |
Solicitud de ejemplo:
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket?issueId=bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5' \--header 'apiKey: xxxxxx'Respuesta de ejemplo (200 OK):
{ "totalPages": 1, "totalElements": 1, "content": [ { "id": "bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5", "displayName": "Cannot log in to account", "description": "User reports being unable to log into the portal with correct credentials.", "category": "Service Ticket", "issueType": "Service Ticket", "status": "Unassigned", "createdAt": "2025-04-17T04:51:26.025207", "updatedAt": "2025-04-17T04:51:26.025211", "issueParameterGroup": [], "additionalFields": {}, "relatedEntities": [], "createdBy": "USER", "priority": "HIGH" } ], "number": 0, "numberOfElements": 1, "empty": false}GET /v1/service-ticket/{id}
Sección titulada «GET /v1/service-ticket/{id}»Get Service Ticket by ID: recupera el detalle completo de un ticket de servicio.
| Parámetro | Tipo | Requisito | Notas |
|---|---|---|---|
id |
string (UUID) | Obligatorio | Identificador único del ticket. |
Solicitud de ejemplo:
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5' \--header 'apiKey: xxxxxx'Respuesta de ejemplo (200 OK): tiene la misma estructura que una entrada de content[] del ejemplo anterior.
GET /v1/service-ticket/type
Sección titulada «GET /v1/service-ticket/type»Get Service Ticket Types: lista los tipos de ticket de servicio configurados en el sistema.
| Parámetro | Tipo | Notas |
|---|---|---|
searchText |
string | Filtro de texto libre por nombre del tipo. |
issueTypeId |
array of integers (int64) | Filtra por ID de tipos específicos. |
Solicitud de ejemplo:
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/type' \--header 'apiKey: xxxxxx'Respuesta de ejemplo (200 OK):
[ { "id": 480, "orgId": "8117cd7a-8d74-47c0-951f-c56aaef1c2a3", "name": "Service Ticket", "icon": "SELL", "iconColour": "bluishCyan", "isDefault": true, "isVisible": true, "createdAt": "2025-02-12T20:42:22.048323", "updatedAt": "2025-02-12T20:42:22.048324", "relatedIssueCategoryId": 1, "relatedIssueCategoryName": "Service Ticket", "statuses": ["..."], "actions": [], "tabs": ["..."], "parameters": ["..."] }]El valor SELL del campo icon en el tipo predeterminado es una etiqueta heredada del
componente “Sell”, que ya se retiró (consulte el Glosario si no le es familiar).
Es un valor almacenado, no algo que esta referencia haya inventado.
GET /v1/service-ticket/type/{typeId}/status
Sección titulada «GET /v1/service-ticket/type/{typeId}/status»Get Service Ticket Type Statuses: lista los estados disponibles para un tipo de ticket.
| Parámetro | Tipo | Requisito | Notas |
|---|---|---|---|
typeId |
string (UUID) | Obligatorio (ruta) | ID del tipo, tomado de la respuesta de type anterior. |
searchText |
string | Opcional | Filtro de texto libre. |
sortOrder |
string | Opcional | Valor predeterminado: createdAt. |
isAscending |
boolean | Opcional | Valor predeterminado: true. |
Solicitud de ejemplo:
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/type/480/status' \--header 'apiKey: xxxxxx'Respuesta de ejemplo (200 OK):
[ { "name": "Assigned", "id": 1312 }, { "name": "Unassigned", "id": 1313 }, { "name": "Done", "id": 1314 }]POST /v1/service-ticket
Sección titulada «POST /v1/service-ticket»Create Service Ticket: crea un ticket de servicio.
Cuerpo de la solicitud (ninguno es obligatorio, pero para que un ticket sea útil necesita al menos un displayName):
| Campo | Tipo | Notas |
|---|---|---|
id |
string (UUID) | Identificador único. |
parentId |
string (UUID) | Identificador del ticket padre. |
organizationId |
string | Organización propietaria. |
displayName |
string | Nombre para mostrar del ticket. |
processDisplayName |
string | Nombre del proceso asociado, si lo hay. |
description |
string | Descripción del ticket. |
issueCategoryId |
integer | ID de la categoría. |
issueTypeId |
integer | ID del tipo. |
issueStatusId |
integer | ID del estado. |
createdBy |
string | PROCESS, USER o AGENT. |
resolvedBy |
string | PROCESS, USER o AGENT. |
priority |
string | HIGHEST, HIGH, MEDIUM, LOW, LOWEST o NONE. |
assignedByUserId |
string | Usuario que asignó el ticket. |
assignedToUserId |
string | Usuario al que se asigna el ticket. |
availableToUsers |
array of strings (UUID) | Usuarios que pueden ver el ticket. |
availableToUserGroups |
array of strings (UUID) | Grupos de usuarios que pueden ver el ticket. |
dueDate |
string (date-time) | Fecha de vencimiento. |
resolvedAt |
string (date-time) | Marca de tiempo de la resolución. |
additionalFields |
object | Campos personalizados del ticket. |
parameterGroups |
array of objects | Grupos de parámetros del ticket. |
relatedEntities |
array of objects | Tickets, flujos de trabajo y otras entidades relacionadas. |
attachmentFiles |
array of strings | Referencias a los archivos adjuntos. |
Solicitud de ejemplo:
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket' \--header 'apiKey: xxxxxx' \--header 'Content-Type: application/json' \--data '{ "displayName": "Cannot log in to account", "description": "User reports being unable to log into the portal with correct credentials.", "priority": "HIGH"}'Respuesta de ejemplo (200 OK): el ticket creado, con la misma estructura que las respuestas de GET anteriores.
PUT /v1/service-ticket/{id}
Sección titulada «PUT /v1/service-ticket/{id}»Update Service Ticket: actualiza un ticket de servicio existente. El cuerpo tiene la misma estructura que el de
POST /v1/service-ticket, y además id es obligatorio en la ruta.
Solicitud de ejemplo:
curl --location --request PUT 'https://app.symphona.ai/dashboard/api/v1/service-ticket/bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5' \--header 'apiKey: xxxxxx' \--header 'Content-Type: application/json' \--data '{ "description": "User reports being unable to log into the portal with correct credentials. Changed to Medium priority.", "priority": "MEDIUM"}'Respuesta de ejemplo (200 OK): el ticket actualizado.
DELETE /v1/service-ticket/{id}
Sección titulada «DELETE /v1/service-ticket/{id}»Delete Service Ticket: elimina un ticket de servicio del sistema.
| Parámetro | Tipo | Requisito | Notas |
|---|---|---|---|
id |
string (UUID) | Obligatorio | Identificador único del ticket. |
Solicitud de ejemplo:
curl --location --request DELETE 'https://app.symphona.ai/dashboard/api/v1/service-ticket/bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5' \--header 'apiKey: xxxxxx'Respuesta de ejemplo: 200 OK, “Issues deleted successfully”.