POST
/
api
/
{session}
/
channels
Criar um novo canal
curl --request POST \
  --url https://api.wappfy.com.br/api/{session}/channels \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "name": "Channel Name",
  "description": "Channel Description",
  "picture": {
    "mimetype": "image/jpeg",
    "filename": "filename.jpg",
    "url": "https://github.com/devlikeapro/waha/raw/core/examples/waha.jpg"
  }
}'
{
  "id": "123123123123@newsletter",
  "name": "Channel Name",
  "invite": "https://www.whatsapp.com/channel/111111111111111111111111",
  "preview": "https://mmg.whatsapp.net/m1/v/t24/An&_nc_cat=10",
  "picture": "https://mmg.whatsapp.net/m1/v/t24/An&_nc_cat=10",
  "role": "OWNER",
  "description": "<string>",
  "verified": true,
  "subscribersCount": 123
}

Authorizations

apikey
string
header
required

Apikey

Path Parameters

session
string
required

O nome da sessão (instanceName)

Body

application/json
name
string
required
Example:

"Channel Name"

description
string
Example:

"Channel Description"

picture
object

Response

201 - application/json
id
string
required

Newsletter id

Example:

"123123123123@newsletter"

name
string
required

Channel name

Example:

"Channel Name"

invite
string
required

Invite link

Example:

"https://www.whatsapp.com/channel/111111111111111111111111"

role
enum<string>
required
Available options:
OWNER,
ADMIN,
SUBSCRIBER,
GUEST
verified
boolean
required
subscribersCount
number
required
preview
string

Preview for channel's picture

Example:

"https://mmg.whatsapp.net/m1/v/t24/An&_nc_cat=10"

picture
string

Channel's picture

Example:

"https://mmg.whatsapp.net/m1/v/t24/An&_nc_cat=10"

description
string