Channel creation
The method is intended to create an instance for WhatsApp API
Create Channel

Update channel webhook

Last updated
curl --request PUT \
--url https://manager.whapi.cloud/channels \
--header 'accept: application/json' \
--header 'authorization: Bearer I6IkpXVCIsImtpZCI6Im......ExZDI2YWY' \
--header 'content-type: application/json' \
--data '
{
"name": "Bot for Ukindo",
"projectId": "kpSv3OFq9PkP1W1Ogv7p"
}
'{
"apiUrl": "https://gate.whapi.cloud/",
"id": "SHAZAM-3HDYQ", // ID of the new channel
"creationTS": 1712598267389,
"ownerId": "DdEBesOO62Ika8Q8d491Vse2kQp2", // Your account ID
"activeTill": 1713116667448, // Date until which the channel will operate
"token": "LK0tQ9qnb5pvfDDsj5NzeRFpnpApSEGb", // Channel Token. Save it!
"server": 6,
"stopped": false,
"status": "active",
"trial": 1713030267448,
"mode": "trial", // Channel mode
"name": "Bot for Ukindo",
"projectId": "kpSv3OFq9PkP1W1Ogv7p"
}curl --request PATCH \
--url https://gate.whapi.cloud/settings \
--header 'accept: application/json' \
--header 'authorization: Bearer 4sbdNB1cwpo2vVwBPbBmczBiShVDCXcs' \
--header 'content-type: application/json' \
--data '
{
"webhooks": [
{
"events": [
{
"type": "users",
"method": "post"
},
{
"type": "channel",
"method": "post"
}
],
"mode": "body",
"url": "https://Your_Webhook_Address"
}
],
"callback_persist": true
}
'