Skip to main content
POST
/
v1
/
channels
Create channel
curl --request POST \
  --url https://api.hubmessage.io/v1/channels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My WhatsApp channel",
  "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 (Meta Official API)

Authorizations

Authorization
string
header
required

Secret Key generated in the Hub Message Security panel

Body

application/json
name
string
required

Channel name

type
enum<string>
required

Channel type (platform)

Available options:
META_WHATSAPP

Response

Channel created successfully

id
string

Created channel ID (channelId)