📘 Documentação Neppo Chat API | 🏠 Visão Geral (índice) · 🔎 Guia de Busca · 📦 Modelos de Dados
- O que você pode fazer com este módulo
- Exemplo de chamada
- Referência técnica completa
- V1 — session-user-controller (20 endpoints)
- V2 — session-user-controller-v-2 (10 endpoints)
O que é este módulo?
O controller mais completo da API — gerencia todo o ciclo de vida das sessões de atendimento: criação, fila, transferência, finalização e muito mais.
| Quem usa | Interface do atendente, bots, integrações de CRM, sistemas de filas. |
|---|---|
| Problema que resolve | O atendimento ao cliente envolve dezenas de eventos (entrada na fila, atribuição, transferência, encerramento). Sem um controller dedicado, cada sistema precisaria gerenciar isso separadamente. |
| Impacto na experiência do cliente | O cliente tem uma jornada de atendimento fluida — da entrada na fila até a resolução — com todas as transições gerenciadas automaticamente. |
O que você pode fazer com este módulo
| Operação | O que faz (em linguagem simples) |
|---|---|
| Iniciar sessão | Cria uma nova sessão de atendimento para um usuário. |
| Listar sessões | Retorna sessões ativas com filtros por status, canal, grupo. |
| Transferir sessão | Move o atendimento para outro agente ou grupo. |
| Finalizar sessão | Encerra uma sessão com classificação e resolução. |
| Buscar sessão | Obtém todos os dados de uma sessão específica. |
| Enviar para fila | Coloca uma sessão de volta na fila de espera. |
| Assumir sessão | Atribui uma sessão da fila ao agente logado. |
Exemplo de chamada
Substitua SEU_TOKEN_AQUI pelo Bearer token obtido via OAuth2.
curl -X POST "https://hml-chat-api.neppo.com.br/api/v1/user-session/save" \
-H "Authorization: Bearer SEU_TOKEN_AQUI" \
-H "Content-Type: application/json" \
-d '{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}'
Exemplo de resposta (200 OK):
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}Valores ilustrativos (esqueleto do schema). Os campos retornados seguem o modelo de dados do recurso.
Endpoints de listagem (findAll) e busca (findOne) deste módulo recebem um corpo com filtros (conditions) e paginação. Veja como montar o corpo de busca no guia: .
Referência técnica completa
V1 — session-user-controller (20 endpoints)
/api/user-session
findAll · operationId: findAllUsingPOST_91
Auth: Application & Application User | Escopos: read
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomPageRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "status",
"value": "OFFLINE",
"operator": "EQ",
"logic": "AND"
}
],
"page": 0,
"size": 10
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | PageResponse«ChatSession» |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"page": 0,
"size": 10,
"results": [
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}
]
} /api/user-session/count
count · operationId: countUsingPOST
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | integer (int64) |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
42 /api/user-session/delete
delete · operationId: deleteUsingDELETE_69
Auth: Application & Application User | Escopos: delete
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): integer (int64)
Exemplo de corpo:
42Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | boolean |
| 204 | No Content | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
Exemplo de resposta (200 OK):
true /api/user-session/save
insert · operationId: insertUsingPOST_72
Auth: Application & Application User | Escopos: write
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): ChatSession
Exemplo de corpo:
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | ChatSession |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
} /api/user-session/survey
findAllSurvey · operationId: findAllSurveyUsingPOST
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomPageRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "status",
"value": "OFFLINE",
"operator": "EQ",
"logic": "AND"
}
],
"page": 0,
"size": 10
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | PageResponse«SurveyResponse» |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"page": 0,
"size": 10,
"results": [
{
"createdAt": "2024-01-01T00:00:00Z",
"groupId": 0,
"groupName": "string",
"protocol": "string",
"question": "string",
"response": "string",
"surveyType": 0,
"surveyTypeName": "string",
"userName": "string"
}
]
} /api/user-session/survey/nps-exists/{surveyName}/{sessionId}
hasNpsSurvey · operationId: hasNpsSurveyUsingGET
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
| surveyName | path | string | Sim | surveyName |
| sessionId | path | integer | Sim | sessionId |
Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | boolean |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
true /api/user-session/survey/nps-score/{surveyName}/{sessionId}
getNpsScore · operationId: getNpsScoreUsingGET
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
| surveyName | path | string | Sim | surveyName |
| sessionId | path | integer | Sim | sessionId |
Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | integer (int32) |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
42 /api/user-session/survey/nps-summary/{surveyName}
npsSummary · operationId: npsSummaryUsingPOST
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
| surveyName | path | string | Sim | surveyName |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | NpsSurveySummary |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"averageNps": 0,
"negative": 0,
"neutral": 0,
"positive": 0,
"totalCount": 0
} /api/user-session/survey/unique
findOneSurvey · operationId: findOneSurveyUsingPOST
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | SurveyResponse |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"createdAt": "2024-01-01T00:00:00Z",
"groupId": 0,
"groupName": "string",
"protocol": "string",
"question": "string",
"response": "string",
"surveyType": 0,
"surveyTypeName": "string",
"userName": "string"
} /api/user-session/unique
findOne · operationId: findOneUsingPOST_87
Auth: Application & Application User | Escopos: read
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | ChatSession |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
} /api/v1/user-session
findAll · operationId: findAllUsingPOST_92
Auth: Application & Application User | Escopos: read
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomPageRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "status",
"value": "OFFLINE",
"operator": "EQ",
"logic": "AND"
}
],
"page": 0,
"size": 10
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | PageResponse«ChatSession» |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"page": 0,
"size": 10,
"results": [
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}
]
} /api/v1/user-session/count
count · operationId: countUsingPOST_1
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | integer (int64) |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
42 /api/v1/user-session/delete
delete · operationId: deleteUsingDELETE_70
Auth: Application & Application User | Escopos: delete
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): integer (int64)
Exemplo de corpo:
42Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | boolean |
| 204 | No Content | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
Exemplo de resposta (200 OK):
true /api/v1/user-session/save
insert · operationId: insertUsingPOST_73
Auth: Application & Application User | Escopos: write
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): ChatSession
Exemplo de corpo:
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | ChatSession |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
} /api/v1/user-session/survey
findAllSurvey · operationId: findAllSurveyUsingPOST_1
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomPageRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "status",
"value": "OFFLINE",
"operator": "EQ",
"logic": "AND"
}
],
"page": 0,
"size": 10
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | PageResponse«SurveyResponse» |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"page": 0,
"size": 10,
"results": [
{
"createdAt": "2024-01-01T00:00:00Z",
"groupId": 0,
"groupName": "string",
"protocol": "string",
"question": "string",
"response": "string",
"surveyType": 0,
"surveyTypeName": "string",
"userName": "string"
}
]
} /api/v1/user-session/survey/nps-exists/{surveyName}/{sessionId}
hasNpsSurvey · operationId: hasNpsSurveyUsingGET_1
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
| surveyName | path | string | Sim | surveyName |
| sessionId | path | integer | Sim | sessionId |
Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | boolean |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
true /api/v1/user-session/survey/nps-score/{surveyName}/{sessionId}
getNpsScore · operationId: getNpsScoreUsingGET_1
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
| surveyName | path | string | Sim | surveyName |
| sessionId | path | integer | Sim | sessionId |
Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | integer (int32) |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
42 /api/v1/user-session/survey/nps-summary/{surveyName}
npsSummary · operationId: npsSummaryUsingPOST_1
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
| surveyName | path | string | Sim | surveyName |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | NpsSurveySummary |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"averageNps": 0,
"negative": 0,
"neutral": 0,
"positive": 0,
"totalCount": 0
} /api/v1/user-session/survey/unique
findOneSurvey · operationId: findOneSurveyUsingPOST_1
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | SurveyResponse |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"createdAt": "2024-01-01T00:00:00Z",
"groupId": 0,
"groupName": "string",
"protocol": "string",
"question": "string",
"response": "string",
"surveyType": 0,
"surveyTypeName": "string",
"userName": "string"
} /api/v1/user-session/unique
findOne · operationId: findOneUsingPOST_88
Auth: Application & Application User | Escopos: read
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | ChatSession |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}V2 — session-user-controller-v-2 (10 endpoints)
/api/v2/user-session
findAll · operationId: findAllUsingPOST_93
Auth: Application & Application User | Escopos: read
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomPageRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "status",
"value": "OFFLINE",
"operator": "EQ",
"logic": "AND"
}
],
"page": 0,
"size": 10
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | PageResponse«ChatSession» |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"page": 0,
"size": 10,
"results": [
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}
]
} /api/v2/user-session/count
count · operationId: countUsingPOST_2
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | integer (int64) |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
42 /api/v2/user-session/delete
delete · operationId: deleteUsingDELETE_71
Auth: Application & Application User | Escopos: delete
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): integer (int64)
Exemplo de corpo:
42Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | boolean |
| 204 | No Content | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
Exemplo de resposta (200 OK):
true /api/v2/user-session/save
insert · operationId: insertUsingPOST_74
Auth: Application & Application User | Escopos: write
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): ChatSession
Exemplo de corpo:
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | ChatSession |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
} /api/v2/user-session/survey
findAllSurvey · operationId: findAllSurveyUsingPOST_2
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomPageRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "status",
"value": "OFFLINE",
"operator": "EQ",
"logic": "AND"
}
],
"page": 0,
"size": 10
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | PageResponse«SurveyResponse» |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"page": 0,
"size": 10,
"results": [
{
"createdAt": "2024-01-01T00:00:00Z",
"groupId": 0,
"groupName": "string",
"protocol": "string",
"question": "string",
"response": "string",
"surveyType": 0,
"surveyTypeName": "string",
"userName": "string"
}
]
} /api/v2/user-session/survey/nps-exists/{surveyName}/{sessionId}
hasNpsSurvey · operationId: hasNpsSurveyUsingGET_2
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
| surveyName | path | string | Sim | surveyName |
| sessionId | path | integer | Sim | sessionId |
Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | boolean |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
true /api/v2/user-session/survey/nps-score/{surveyName}/{sessionId}
getNpsScore · operationId: getNpsScoreUsingGET_2
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
| surveyName | path | string | Sim | surveyName |
| sessionId | path | integer | Sim | sessionId |
Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | integer (int32) |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
42 /api/v2/user-session/survey/nps-summary/{surveyName}
npsSummary · operationId: npsSummaryUsingPOST_2
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
| surveyName | path | string | Sim | surveyName |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | NpsSurveySummary |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"averageNps": 0,
"negative": 0,
"neutral": 0,
"positive": 0,
"totalCount": 0
} /api/v2/user-session/survey/unique
findOneSurvey · operationId: findOneSurveyUsingPOST_2
Auth: Application & Application User
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | SurveyResponse |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"createdAt": "2024-01-01T00:00:00Z",
"groupId": 0,
"groupName": "string",
"protocol": "string",
"question": "string",
"response": "string",
"surveyType": 0,
"surveyTypeName": "string",
"userName": "string"
} /api/v2/user-session/unique
findOne · operationId: findOneUsingPOST_89
Auth: Application & Application User | Escopos: read
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| Authorization | header | string | Não | Bearer token |
Request body (obrigatório): CustomRequest
Exemplo de corpo:
{
"conditions": [
{
"key": "id",
"value": "42",
"operator": "EQNUM"
}
]
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | ChatSession |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agent": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"agentConnectedInstance": "string",
"agentConnectedResource": "string",
"attendedAt": "2024-01-01T00:00:00Z",
"availableAt": "2024-01-01T00:00:00Z",
"closedAt": "2024-01-01T00:00:00Z",
"closedBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"customProtocol": "string",
"directMessageId": 0,
"externalOrderId": 0,
"externalProtocol": "string",
"groupConf": {
"acceptedMedias": "string",
"active": true,
"agentExpireSession": true,
"agentReplyMaxDelay": 0,
"broker": "string",
"businessUnit": "string",
"channels": [],
"classificationTree": {},
"configInactivity": true,
"configInactivityTime": 0,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"defaultAgent": {},
"emailActiveShipping": true,
"finalAgent": {},
"gatewayQueue": "string",
"id": 0,
"inactivityAction": "string",
"inactivityAgent": {},
"inactivityGroup": 0,
"inngageShipping": true,
"interactQueueDelay": 0,
"limitTimeWaitingForInteract": 0,
"mandatoryClassificationTree": true,
"mandatoryFinalAgent": true,
"name": "string",
"offlineAttendance": true,
"onlyBot": true,
"onlyReceptive": true,
"operation": {},
"pausedTransfer": true,
"pending": true,
"queueControl": "string",
"queueScheduleStrategy": true,
"redirectAttendanceAgentDisconnect": true,
"scheduleActiveSendTime": 0,
"scheduleName": "string",
"skipQueue": true,
"sla": 0,
"smsActiveShipping": true,
"survey": 0,
"telegramActiveShipping": true,
"timeMaxAttendance": 0,
"timePending": 0,
"timeUnit": "NANOSECONDS",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"uraActiveShipping": true,
"visible": true,
"voiceActiveShipping": true,
"warningRatio": 0,
"wavy": true,
"whatsappActiveShipping": true,
"whatsappPartner": true,
"whatsappPartnerInactivity": 0
},
"groupList": "string",
"hasReservedWord": true,
"id": 0,
"inactivity": "string",
"lastAgent": "string",
"onlyBot": true,
"pending": true,
"priority": true,
"properties": "string",
"protocol": "string",
"status": "string",
"ticketId": 0,
"tma": 0,
"tmaTicket": 0,
"tme": 0,
"tmi": 0,
"tmia": 0,
"tmic": 0,
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"user": {
"accessKey": "string",
"active": true,
"agent": {},
"birthDate": "2024-01-01T00:00:00Z",
"company": {},
"country": "string",
"cpf": "string",
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdFromSurvey": true,
"defaultLocale": "string",
"displayName": "string",
"email": "string",
"externalCode": "string",
"firstAccess": true,
"firstLogin": "2024-01-01T00:00:00Z",
"formal": true,
"id": 0,
"lastLogin": "2024-01-01T00:00:00Z",
"name": "string",
"operation": "string",
"originUser": "string",
"phone": "string",
"priority": 0,
"profile": {},
"ticketUserId": 0,
"tm2": true,
"typeUser": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"userName": "string",
"usingMFA": true,
"visible": true,
"password": "string"
},
"userConnectedInstance": "string",
"userConnectedResource": "string"
}
Comentários
0 comentário
Escreva seu comentário aqui
Por favor, entre para comentar.