Skip to main content
POST
/
v1
/
channels
Criar canal
curl --request POST \
  --url https://api.hubmessage.io/v1/channels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Meu canal WhatsApp",
  "type": "META_WHATSAPP"
}
'
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Overview

Creates a new channel. After creation, the channel needs to be connected (via dashboard or SDK) to start sending and receiving messages. The returned id is the channelId used in all API calls.

Available types

TypePlatform
META_WHATSAPPWhatsApp (Official API)
ZAPI_WHATSAPPWhatsApp via Z-API (Unofficial)
New types will be added as new platforms are supported.

Authorizations

Authorization
string
header
required

Secret Key gerada no painel de Segurança do Hub Message

Body

application/json
name
string
required

Nome do canal

type
enum<string>
required

Tipo do canal (plataforma)

Available options:
META_WHATSAPP,
ZAPI_WHATSAPP

Response

Canal criado com sucesso

id
string

ID do canal criado (channelId)