Equipes
Autorizações
Respostas
200
Success
application/json
500
Server Error
application/json
get
/v2/departmentGET /core/v2/department HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:21.359Z",
"directLinks": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"updatedAt": "2025-11-06T22:36:21.359Z",
"name": "text",
"isDefault": true,
"distribuitionEnabled": true,
"restrictionType": "NONE",
"distributionConfig": {
"expirationIsEnabled": true,
"maximumDurationInMinutes": 1,
"inactivityTimeInMinutes": 1
},
"agents": [
{
"userId": "123e4567-e89b-12d3-a456-426614174000",
"departmentId": "123e4567-e89b-12d3-a456-426614174000",
"isAgent": true,
"isSupervisor": true
}
],
"channels": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "text",
"name": "text",
"type": "text"
}
]
}
]Autorizações
Parâmetros de rota
idstring · uuidObrigatório
Parâmetros de consulta
includeDetailsstring · enumOpcionalValores possíveis:
Respostas
200
Success
application/json
500
Server Error
application/json
get
/v1/department/{id}GET /core/v1/department/{id} HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:21.359Z",
"directLinks": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"updatedAt": "2025-11-06T22:36:21.359Z",
"name": "text",
"isDefault": true,
"distribuitionEnabled": true,
"restrictionType": "NONE",
"distributionConfig": {
"expirationIsEnabled": true,
"maximumDurationInMinutes": 1,
"inactivityTimeInMinutes": 1
},
"agents": [
{
"userId": "123e4567-e89b-12d3-a456-426614174000",
"departmentId": "123e4567-e89b-12d3-a456-426614174000",
"isAgent": true,
"isSupervisor": true
}
],
"channels": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "text",
"name": "text",
"type": "text"
}
],
"description": "text",
"isPrivate": true
}Autorizações
Parâmetros de rota
idstring · uuidObrigatório
ID da equipe.
Corpo
namestring | nuloOpcional
Nome da equipe
isDefaultbooleanOpcional
Se é a equipe padrão
distributionIsEnabledbooleanOpcional
Se a distribuição está habilitada
restrictionTypestring · enum | nuloOpcionalValores possíveis:
Tipo de restrição
Respostas
200
Success
application/json
500
Server Error
application/json
put
/v1/department/{id}PUT /core/v1/department/{id} HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 264
{
"name": "text",
"isDefault": true,
"distributionIsEnabled": true,
"distributionConfig": {
"expirationIsEnabled": true,
"maximumDurationInMinutes": 1,
"inactivityTimeInMinutes": 1
},
"restrictionType": "NONE",
"channelsConfig": {
"scope": "ALL",
"channels": [
"text"
]
},
"fields": [
"Name"
]
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:21.359Z",
"directLinks": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"updatedAt": "2025-11-06T22:36:21.359Z",
"name": "text",
"isDefault": true,
"distribuitionEnabled": true,
"restrictionType": "NONE",
"distributionConfig": {
"expirationIsEnabled": true,
"maximumDurationInMinutes": 1,
"inactivityTimeInMinutes": 1
},
"agents": [
{
"userId": "123e4567-e89b-12d3-a456-426614174000",
"departmentId": "123e4567-e89b-12d3-a456-426614174000",
"isAgent": true,
"isSupervisor": true
}
],
"channels": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "text",
"name": "text",
"type": "text"
}
],
"description": "text",
"isPrivate": true
}Autorizações
Corpo
namestring | nuloOpcional
Nome da equipe
isDefaultbooleanOpcional
Se é a equipe padrão
distributionIsEnabledbooleanOpcional
Se a distribuição está habilitada
restrictionTypestring · enum | nuloOpcionalValores possíveis:
Tipo de restrição
Respostas
200
Success
application/json
500
Server Error
application/json
post
/v1/departmentPOST /core/v1/department HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 342
{
"name": "text",
"isDefault": true,
"distributionIsEnabled": true,
"distributionConfig": {
"expirationIsEnabled": true,
"maximumDurationInMinutes": 1,
"inactivityTimeInMinutes": 1
},
"restrictionType": "NONE",
"channelsConfig": {
"scope": "ALL",
"channels": [
"text"
]
},
"agents": [
{
"userId": "123e4567-e89b-12d3-a456-426614174000",
"isAgent": true,
"isSupervisor": true
}
]
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:21.359Z",
"directLinks": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"updatedAt": "2025-11-06T22:36:21.359Z",
"name": "text",
"isDefault": true,
"distribuitionEnabled": true,
"restrictionType": "NONE",
"distributionConfig": {
"expirationIsEnabled": true,
"maximumDurationInMinutes": 1,
"inactivityTimeInMinutes": 1
},
"agents": [
{
"userId": "123e4567-e89b-12d3-a456-426614174000",
"departmentId": "123e4567-e89b-12d3-a456-426614174000",
"isAgent": true,
"isSupervisor": true
}
],
"channels": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "text",
"name": "text",
"type": "text"
}
],
"description": "text",
"isPrivate": true
}Autorizações
Parâmetros de rota
idstring · uuidObrigatório
ID da equipe
Corpo
actionstring · enumObrigatórioValores possíveis:
Respostas
200
Success
application/json
500
Server Error
application/json
put
/v1/department/{id}/agentsPUT /core/v1/department/{id}/agents HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"action": "ReplaceAll",
"items": [
{
"userId": "123e4567-e89b-12d3-a456-426614174000",
"isAgent": true,
"isSupervisor": true
}
]
}{
"action": "ReplaceAll",
"items": [
{
"userId": "123e4567-e89b-12d3-a456-426614174000",
"isAgent": true,
"isSupervisor": true
}
]
}Autorizações
Parâmetros de rota
idstring · uuidObrigatório
ID da equipe
Respostas
200
Success
application/json
500
Server Error
application/json
get
/v1/department/{id}/channelGET /core/v1/department/{id}/channel HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
{
"scope": "ALL",
"channels": [
"123e4567-e89b-12d3-a456-426614174000"
]
}Atualizado