Contas
Para autenticar nos endpoints de Gestão de Contas, utilize o Token de Parceiro.
O token pode ser gerado na plataforma em Admin > Personalizar > Integração.
Envie-o no header Authorization com o schema Bearer.
Este token é exclusivo para os endpoints de Gestão de Contas e Parceiros.
Listagem paginada de contas.
Texto para busca
Filtrar apenas contas inativas
Status da conta
Status de configuração da conta
Limite superior de busca, sempre em fuso horário UTM.
Limite inferior de busca, sempre em fuso horário UTM.
Limite superior de busca, sempre em fuso horário UTM.
Limite inferior de busca, sempre em fuso horário UTM.
Número da página a ser obtida.
1Tamanho da página a ser obtida.
15Nome do campo para ser utilizado como pivô da ordenação.
Determina se a ordenação deve ser crescente ou decrescente.
Success
Server Error
GET /core/v1/company HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
{
"pageNumber": 1,
"pageSize": 15,
"orderBy": "text",
"orderDirection": "ASCENDING",
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:38.254Z",
"updatedAt": "2025-11-06T22:36:38.254Z",
"active": true,
"legalName": "text",
"documentType": "CPF",
"documentId": "text",
"name": "text",
"partnerName": "text",
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"category": "text",
"customCategory": "text",
"type": "UNDEFINED",
"invoiceType": "HELENA",
"partnerId": "123e4567-e89b-12d3-a456-426614174000",
"pictureUrl": "text",
"wppNumber": "text",
"phoneNumber": "text",
"phoneNumberFormatted": "text",
"email": "text",
"defaultDepartmentId": "123e4567-e89b-12d3-a456-426614174000",
"address": {
"country": "text",
"state": "text",
"city": "text",
"neighborhood": "text",
"zipcode": "text",
"number": "text",
"address1": "text",
"address2": "text"
},
"setupStatus": "DEMO",
"config": {
"planName": "text",
"campaignEnabled": true,
"panelEnabled": true,
"customFieldEnabled": true,
"webhookEnabled": true,
"advancedChatbotEnabled": true,
"resources": {
"includedSessions": 1,
"includedAgents": 1,
"includedPanels": 1,
"includedChatbots": 1,
"includedChatbotAutomations": 1,
"includedWhatsAppChannels": 1,
"includedInstagramChannels": 1,
"includedMessengerChannels": 1,
"includedSequences": 1
}
}
}
],
"totalItems": 1,
"totalPages": 1,
"hasMorePages": true
}DTO para criar uma nova conta
Tipo de documento (CPF ou CNPJ)
Número do documento (CPF ou CNPJ)
Razão social da empresa
Nome fantasia da empresa
Categoria da empresa
Categoria personalizada da empresa
Tipo da conta
Status da conta
Success
Server Error
POST /core/v1/company HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 439
{
"documentType": "CPF",
"documentId": "text",
"legalName": "text",
"name": "text",
"owner": {
"name": "text",
"email": "text",
"phoneNumber": "text"
},
"category": "text",
"customCategory": "text",
"type": "UNDEFINED",
"status": "DEMO",
"apps": [
"MESSAGE_DELAY"
],
"resourcers": [
"WEBHOOK_API"
],
"config": {
"session": 1,
"agents": 1,
"panels": 1,
"chatBots": 1,
"chatbotAutomations": 1,
"whatsAppChannels": 1,
"instagramChannels": 1,
"messengerChannels": 1,
"sequences": 1,
"aiAgents": 1
}
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:38.254Z",
"updatedAt": "2025-11-06T22:36:38.254Z",
"active": true,
"legalName": "text",
"documentType": "CPF",
"documentId": "text",
"name": "text",
"partnerName": "text",
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"category": "text",
"customCategory": "text",
"type": "UNDEFINED",
"invoiceType": "HELENA",
"partnerId": "123e4567-e89b-12d3-a456-426614174000",
"pictureUrl": "text",
"wppNumber": "text",
"phoneNumber": "text",
"phoneNumberFormatted": "text",
"email": "text",
"defaultDepartmentId": "123e4567-e89b-12d3-a456-426614174000",
"address": {
"country": "text",
"state": "text",
"city": "text",
"neighborhood": "text",
"zipcode": "text",
"number": "text",
"address1": "text",
"address2": "text"
},
"setupStatus": "DEMO",
"config": {
"planName": "text",
"campaignEnabled": true,
"panelEnabled": true,
"customFieldEnabled": true,
"webhookEnabled": true,
"advancedChatbotEnabled": true,
"resources": {
"includedSessions": 1,
"includedAgents": 1,
"includedPanels": 1,
"includedChatbots": 1,
"includedChatbotAutomations": 1,
"includedWhatsAppChannels": 1,
"includedInstagramChannels": 1,
"includedMessengerChannels": 1,
"includedSequences": 1
}
}
}ID da conta
Success
Server Error
GET /core/v1/company/{id} HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:38.254Z",
"updatedAt": "2025-11-06T22:36:38.254Z",
"active": true,
"legalName": "text",
"documentType": "CPF",
"documentId": "text",
"name": "text",
"partnerName": "text",
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"category": "text",
"customCategory": "text",
"type": "UNDEFINED",
"invoiceType": "HELENA",
"partnerId": "123e4567-e89b-12d3-a456-426614174000",
"pictureUrl": "text",
"wppNumber": "text",
"phoneNumber": "text",
"phoneNumberFormatted": "text",
"email": "text",
"defaultDepartmentId": "123e4567-e89b-12d3-a456-426614174000",
"address": {
"country": "text",
"state": "text",
"city": "text",
"neighborhood": "text",
"zipcode": "text",
"number": "text",
"address1": "text",
"address2": "text"
},
"setupStatus": "DEMO",
"config": {
"planName": "text",
"campaignEnabled": true,
"panelEnabled": true,
"customFieldEnabled": true,
"webhookEnabled": true,
"advancedChatbotEnabled": true,
"resources": {
"includedSessions": 1,
"includedAgents": 1,
"includedPanels": 1,
"includedChatbots": 1,
"includedChatbotAutomations": 1,
"includedWhatsAppChannels": 1,
"includedInstagramChannels": 1,
"includedMessengerChannels": 1,
"includedSequences": 1
}
}
}ID da conta.
DTO para atualizar uma conta existente
Razão social da empresa
Nome fantasia da empresa
Categoria da empresa
Categoria personalizada da empresa
Número de telefone
Email de contato
Status de configuração da conta
Success
Server Error
PUT /core/v1/company/{id} HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 532
{
"fields": [
"LegalName"
],
"legalName": "text",
"name": "text",
"category": "text",
"customCategory": "text",
"phoneNumber": "text",
"email": "text",
"address": {
"country": "text",
"state": "text",
"city": "text",
"neighborhood": "text",
"zipcode": "text",
"number": "text",
"address1": "text",
"address2": "text"
},
"apps": [
"MESSAGE_DELAY"
],
"resourcers": [
"WEBHOOK_API"
],
"config": {
"session": 1,
"agents": 1,
"panels": 1,
"chatBots": 1,
"chatbotAutomations": 1,
"whatsAppChannels": 1,
"instagramChannels": 1,
"messengerChannels": 1,
"sequences": 1,
"aiAgents": 1
},
"setupStatus": "DEMO"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:38.254Z",
"updatedAt": "2025-11-06T22:36:38.254Z",
"active": true,
"legalName": "text",
"documentType": "CPF",
"documentId": "text",
"name": "text",
"partnerName": "text",
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"category": "text",
"customCategory": "text",
"type": "UNDEFINED",
"invoiceType": "HELENA",
"partnerId": "123e4567-e89b-12d3-a456-426614174000",
"pictureUrl": "text",
"wppNumber": "text",
"phoneNumber": "text",
"phoneNumberFormatted": "text",
"email": "text",
"defaultDepartmentId": "123e4567-e89b-12d3-a456-426614174000",
"address": {
"country": "text",
"state": "text",
"city": "text",
"neighborhood": "text",
"zipcode": "text",
"number": "text",
"address1": "text",
"address2": "text"
},
"setupStatus": "DEMO",
"config": {
"planName": "text",
"campaignEnabled": true,
"panelEnabled": true,
"customFieldEnabled": true,
"webhookEnabled": true,
"advancedChatbotEnabled": true,
"resources": {
"includedSessions": 1,
"includedAgents": 1,
"includedPanels": 1,
"includedChatbots": 1,
"includedChatbotAutomations": 1,
"includedWhatsAppChannels": 1,
"includedInstagramChannels": 1,
"includedMessengerChannels": 1,
"includedSequences": 1
}
}
}ID da conta a ser ativada.
Success
Server Error
POST /core/v1/company/{id}/active HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:38.254Z",
"updatedAt": "2025-11-06T22:36:38.254Z",
"active": true,
"legalName": "text",
"documentType": "CPF",
"documentId": "text",
"name": "text",
"partnerName": "text",
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"category": "text",
"customCategory": "text",
"type": "UNDEFINED",
"invoiceType": "HELENA",
"partnerId": "123e4567-e89b-12d3-a456-426614174000",
"pictureUrl": "text",
"wppNumber": "text",
"phoneNumber": "text",
"phoneNumberFormatted": "text",
"email": "text",
"defaultDepartmentId": "123e4567-e89b-12d3-a456-426614174000",
"address": {
"country": "text",
"state": "text",
"city": "text",
"neighborhood": "text",
"zipcode": "text",
"number": "text",
"address1": "text",
"address2": "text"
},
"setupStatus": "DEMO",
"config": {
"planName": "text",
"campaignEnabled": true,
"panelEnabled": true,
"customFieldEnabled": true,
"webhookEnabled": true,
"advancedChatbotEnabled": true,
"resources": {
"includedSessions": 1,
"includedAgents": 1,
"includedPanels": 1,
"includedChatbots": 1,
"includedChatbotAutomations": 1,
"includedWhatsAppChannels": 1,
"includedInstagramChannels": 1,
"includedMessengerChannels": 1,
"includedSequences": 1
}
}
}ID da conta
Success
Server Error
GET /core/v1/company/{id}/tokens HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"token": "text",
"name": "text",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:38.254Z",
"updatedAt": "2025-11-06T22:36:38.254Z",
"partnerId": "123e4567-e89b-12d3-a456-426614174000",
"tenantId": "123e4567-e89b-12d3-a456-426614174000"
}
]ID da conta
Nome do token
Success
Server Error
POST /core/v1/company/{id}/tokens HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"token": "text",
"name": "text",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:36:38.254Z",
"updatedAt": "2025-11-06T22:36:38.254Z",
"partnerId": "123e4567-e89b-12d3-a456-426614174000",
"tenantId": "123e4567-e89b-12d3-a456-426614174000"
}ID da conta
ID do token a ser apagado
Success
Sem conteúdo
Server Error
DELETE /core/v1/company/{id}/tokens/{tokenId} HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
Sem conteúdo
Atualizado