Skip to main content
Version: v2

SetWebhookRequest

urlstringrequired

URL that events will be sent to

Example: https://webhook.me
certificatestring

Full contents of the .pem certificate, Base64-encoded (including BEGIN/END CERTIFICATE). Set if a self-signed certificate is used for the webhook

Example: c2FkZmdoamdnZnJkZ2VzZmFkZmdkaGZqZ2Zkc2ZnZGg=
secretTokenstring

If set, it will be included in the "X-YuChat-Bot-Api-Secret-Token" header

Example: MIIDXTCCAkWgAwIBAgIUeKd8rP8XJGjH5Z2Q6VJq3m8Qk8AwDQYJKoZIhvcNAQEL
SetWebhookRequest
{
"url": "https://webhook.me",
"certificate": "c2FkZmdoamdnZnJkZ2VzZmFkZmdkaGZqZ2Zkc2ZnZGg=",
"secretToken": "MIIDXTCCAkWgAwIBAgIUeKd8rP8XJGjH5Z2Q6VJq3m8Qk8AwDQYJKoZIhvcNAQEL"
}