Skip to main content
PUT
/
webhook
/
{id}
Update Webhook
curl --request PUT \
  --url https://chat.zoko.io/v2/webhook/{id} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "url": "https://client.webhooklabs.com",
  "events": [
    "message:user:in",
    "message:delivery:update"
  ],
  "challengeToken": "client0_letmein"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "url": "https://client.webhooklabs.com",
  "challengeToken": "CHALLENGE_TOKEN",
  "events": [
    "message:user:in"
  ]
}

Authorizations

apikey
string
header
required

Authentication is done via apikey provided for your account

Include the following in your request header

apikey: "your_apikey_here"

Path Parameters

id
string<uuid>
required

ID of webhook

Body

application/json

Webhook data. Check Webhook schema for details.

Webhook input data

url
string<uri>
required
Example:

"https://client.webhooklabs.com"

events
enum<string>[]
required
Minimum array length: 1
Available options:
message:user:in,
message:store:out,
message:delivery:update
Example:
[
  "message:user:in",
  "message:delivery:update"
]
challengeToken
string

Challenge Token for the webhook

Maximum string length: 200
Example:

"client0_letmein"

Response

Webhook details

Webhook response data

id
string<uuid>
url
string<uri>
Example:

"https://client.webhooklabs.com"

challengeToken
string
Example:

"CHALLENGE_TOKEN"

events
enum<string>[]
Available options:
message:user:in,
message:store:out,
message:delivery:update