Webhook
Update Webhook
Update webhook details
PUT
/
webhook
/
{id}
Authorization
Path
Body
curl --request PUT \
--url https://chat.zoko.io/v2/webhook/{id} \
--header 'Content-Type: application/json' \
--header 'apikey: <apikey>' \
--data '{
"challengeToken": "client0_letmein",
"events": [
"message:user:in",
"message:delivery:update"
],
"url": "https://client.webhooklabs.com"
}'
{
"challengeToken": "CHALLENGE_TOKEN",
"events": [
"message:user:in"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "https://client.webhooklabs.com"
}
Authorizations
apikey
string
headerrequiredAuthentication is done via apikey
provided for your account
Include the following in your request header
apikey: "your_apikey_here"
Path Parameters
id
string
requiredID of webhook
Body
application/json
challengeToken
string
Challenge Token for the webhook
events
enum<string>[]
requiredAvailable options:
message:user:in
, message:store:out
, message:delivery:update
url
string
requiredResponse
200 - application/json
challengeToken
string
events
enum<string>[]
Available options:
message:user:in
, message:store:out
, message:delivery:update
id
string
url
string
curl --request PUT \
--url https://chat.zoko.io/v2/webhook/{id} \
--header 'Content-Type: application/json' \
--header 'apikey: <apikey>' \
--data '{
"challengeToken": "client0_letmein",
"events": [
"message:user:in",
"message:delivery:update"
],
"url": "https://client.webhooklabs.com"
}'
{
"challengeToken": "CHALLENGE_TOKEN",
"events": [
"message:user:in"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "https://client.webhooklabs.com"
}