📘 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 — agent-controller (8 endpoints)
- V2 — agent-controller-v-2 (4 endpoints)
O que é este módulo?
Gerencia os atendentes humanos (agentes) da plataforma Neppo.
| Quem usa | Administradores de operação de atendimento, líderes de equipe. |
|---|---|
| Problema que resolve | Sem controle de agentes, não é possível distribuir atendimentos, monitorar quem está ativo ou configurar capacidade máxima por atendente. |
| Impacto na experiência do cliente | Clientes são atendidos por agentes certos, com a carga de trabalho equilibrada, reduzindo tempo de espera. |
O que você pode fazer com este módulo
| Operação | O que faz (em linguagem simples) |
|---|---|
| Listar agentes (findAll) | Retorna todos os atendentes cadastrados, com filtros de paginação. |
| Buscar agente (findOne) | Consulta os dados de um atendente específico pelo ID. |
| Criar/atualizar agente (save) | Cadastra um novo atendente ou atualiza dados existentes (nome, email, capacidade). |
| Remover agente (delete) | Desativa ou remove um atendente da plataforma. |
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/agent/save" \
-H "Authorization: Bearer SEU_TOKEN_AQUI" \
-H "Content-Type: application/json" \
-d '{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}'
Exemplo de resposta (200 OK):
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}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 — agent-controller (8 endpoints)
/api/agent
findAll · operationId: findAllUsingPOST
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«Agent» |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"page": 0,
"size": 10,
"results": [
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}
]
} /api/agent/delete
delete · operationId: deleteUsingDELETE
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/agent/save
insert · operationId: insertUsingPOST
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): Agent
Exemplo de corpo:
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | Agent |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
} /api/agent/unique
findOne · operationId: findOneUsingPOST
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 | Agent |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
} /api/v1/agent
findAll · operationId: findAllUsingPOST_1
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«Agent» |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"page": 0,
"size": 10,
"results": [
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}
]
} /api/v1/agent/delete
delete · operationId: deleteUsingDELETE_1
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/agent/save
insert · operationId: insertUsingPOST_1
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): Agent
Exemplo de corpo:
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | Agent |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
} /api/v1/agent/unique
findOne · operationId: findOneUsingPOST_1
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 | Agent |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}V2 — agent-controller-v-2 (4 endpoints)
/api/v2/agent
findAll · operationId: findAllUsingPOST_2
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«Agent» |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"page": 0,
"size": 10,
"results": [
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}
]
} /api/v2/agent/delete
delete · operationId: deleteUsingDELETE_2
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/agent/save
insert · operationId: insertUsingPOST_2
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): Agent
Exemplo de corpo:
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}Respostas
| Código | Descrição | Schema |
|---|---|---|
| 200 | OK | Agent |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
} /api/v2/agent/unique
findOne · operationId: findOneUsingPOST_2
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 | Agent |
| 201 | Created | — |
| 401 | Unauthorized | — |
| 403 | Forbidden | — |
| 404 | Not Found | — |
Exemplo de resposta (200 OK):
{
"agentAllHistory": true,
"agentAllHistoryOperation": true,
"agentAttendSimple": true,
"agentToken": "string",
"agentViewPhone": true,
"attendanceServiceChannel": "string",
"audioOn": true,
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"department": "string",
"extensionAttendance": "string",
"id": 0,
"loginAttendance": "string",
"maxChatChannels": 0,
"passwordAttendance": "string",
"pauseOnReceiveCall": true,
"socialToken": "string",
"status": "string",
"superAgent": true,
"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"
},
"virtualAgent": true
}
Comentários
0 comentário
Escreva seu comentário aqui
Por favor, entre para comentar.