Equipes

Listar

get
Autorizações
Respostas
200

Success

application/json
get
/v2/department
GET /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"
      }
    ]
  }
]

Obter por ID

get
Autorizações
Parâmetros de rota
idstring · uuidObrigatório
Parâmetros de consulta
includeDetailsstring · enumOpcionalValores possíveis:
Respostas
200

Success

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
}

Atualizar

put
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 | nuloOpcional

Tipo de restrição

Valores possíveis:
Respostas
200

Success

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
}

Excluir

delete
Autorizações
Parâmetros de rota
idstring · uuidObrigatório
Respostas
200

Success

Sem conteúdo

delete
/v1/department/{id}
DELETE /core/v1/department/{id} HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*

Sem conteúdo

Criar

post
Autorizações
Corpo
namestring | nuloOpcional

Nome da equipe

isDefaultbooleanOpcional

Se é a equipe padrão

distributionIsEnabledbooleanOpcional

Se a distribuição está habilitada

restrictionTypestring · enum | nuloOpcional

Tipo de restrição

Valores possíveis:
Respostas
200

Success

application/json
post
/v1/department
POST /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
}

Atualizar usuários

put
Autorizações
Parâmetros de rota
idstring · uuidObrigatório

ID da equipe

Corpo
actionstring · enumObrigatórioValores possíveis:
Respostas
200

Success

application/json
put
/v1/department/{id}/agents
PUT /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
    }
  ]
}

Listar canais

get
Autorizações
Parâmetros de rota
idstring · uuidObrigatório

ID da equipe

Respostas
200

Success

application/json
get
/v1/department/{id}/channel
GET /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