SetWebhookRequest
urlstringrequired
URL that events will be sent to
Example:
https://webhook.mecertificatestring
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:
MIIDXTCCAkWgAwIBAgIUeKd8rP8XJGjH5Z2Q6VJq3m8Qk8AwDQYJKoZIhvcNAQELSetWebhookRequest
{
"url": "https://webhook.me",
"certificate": "c2FkZmdoamdnZnJkZ2VzZmFkZmdkaGZqZ2Zkc2ZnZGg=",
"secretToken": "MIIDXTCCAkWgAwIBAgIUeKd8rP8XJGjH5Z2Q6VJq3m8Qk8AwDQYJKoZIhvcNAQEL"
}