POST
/
webhook
curl --request POST \
  --url https://chat.zoko.io/v2/webhook \
  --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
headerrequired

Authentication is done via apikey provided for your account

Include the following in your request header

apikey: "your_apikey_here"

Body

application/json
url
string
required
events
enum<string>[]
required
Available options:
message:user:in,
message:store:out,
message:delivery:update
challengeToken
string

Challenge Token for the webhook

Response

200 - application/json
id
string
url
string
challengeToken
string
events
enum<string>[]
Available options:
message:user:in,
message:store:out,
message:delivery:update