Set webhook URL
curl --request POST \
--url https://api.wotnot.io/v1/accounts/{account_id}/webhook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook_url": "",
"subscribed_events": [
{
"key": "conversation_create",
"is_subscribed": true
},
{
"key": "message",
"is_subscribed": true
},
{
"key": "status",
"is_subscribed": true
},
{
"key": "assignee_change",
"is_subscribed": true
},
{
"key": "sla_breached",
"is_subscribed": true
},
{
"key": "variables",
"is_subscribed": true
},
{
"key": "conversation_labels",
"is_subscribed": true
},
{
"key": "note",
"is_subscribed": true
}
],
"is_enabled": true,
"token": "Test"
}
'import requests
url = "https://api.wotnot.io/v1/accounts/{account_id}/webhook"
payload = {
"webhook_url": "",
"subscribed_events": [
{
"key": "conversation_create",
"is_subscribed": True
},
{
"key": "message",
"is_subscribed": True
},
{
"key": "status",
"is_subscribed": True
},
{
"key": "assignee_change",
"is_subscribed": True
},
{
"key": "sla_breached",
"is_subscribed": True
},
{
"key": "variables",
"is_subscribed": True
},
{
"key": "conversation_labels",
"is_subscribed": True
},
{
"key": "note",
"is_subscribed": True
}
],
"is_enabled": True,
"token": "Test"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
webhook_url: '',
subscribed_events: [
{key: 'conversation_create', is_subscribed: true},
{key: 'message', is_subscribed: true},
{key: 'status', is_subscribed: true},
{key: 'assignee_change', is_subscribed: true},
{key: 'sla_breached', is_subscribed: true},
{key: 'variables', is_subscribed: true},
{key: 'conversation_labels', is_subscribed: true},
{key: 'note', is_subscribed: true}
],
is_enabled: true,
token: 'Test'
})
};
fetch('https://api.wotnot.io/v1/accounts/{account_id}/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wotnot.io/v1/accounts/{account_id}/webhook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'webhook_url' => '',
'subscribed_events' => [
[
'key' => 'conversation_create',
'is_subscribed' => true
],
[
'key' => 'message',
'is_subscribed' => true
],
[
'key' => 'status',
'is_subscribed' => true
],
[
'key' => 'assignee_change',
'is_subscribed' => true
],
[
'key' => 'sla_breached',
'is_subscribed' => true
],
[
'key' => 'variables',
'is_subscribed' => true
],
[
'key' => 'conversation_labels',
'is_subscribed' => true
],
[
'key' => 'note',
'is_subscribed' => true
]
],
'is_enabled' => true,
'token' => 'Test'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wotnot.io/v1/accounts/{account_id}/webhook"
payload := strings.NewReader("{\n \"webhook_url\": \"\",\n \"subscribed_events\": [\n {\n \"key\": \"conversation_create\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"message\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"status\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"assignee_change\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"sla_breached\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"variables\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"conversation_labels\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"note\",\n \"is_subscribed\": true\n }\n ],\n \"is_enabled\": true,\n \"token\": \"Test\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wotnot.io/v1/accounts/{account_id}/webhook")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"\",\n \"subscribed_events\": [\n {\n \"key\": \"conversation_create\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"message\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"status\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"assignee_change\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"sla_breached\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"variables\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"conversation_labels\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"note\",\n \"is_subscribed\": true\n }\n ],\n \"is_enabled\": true,\n \"token\": \"Test\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wotnot.io/v1/accounts/{account_id}/webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"webhook_url\": \"\",\n \"subscribed_events\": [\n {\n \"key\": \"conversation_create\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"message\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"status\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"assignee_change\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"sla_breached\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"variables\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"conversation_labels\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"note\",\n \"is_subscribed\": true\n }\n ],\n \"is_enabled\": true,\n \"token\": \"Test\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true
}{
"error": "UNAUTHORIZED",
"ok": false,
"status": 401,
"message": "Invalid token. Provide the valid account token."
}Set webhook URL
Sets the webhook URL where your account receives conversation-related events, and picks which events to receive.
POST
/
v1
/
accounts
/
{account_id}
/
webhook
Set webhook URL
curl --request POST \
--url https://api.wotnot.io/v1/accounts/{account_id}/webhook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook_url": "",
"subscribed_events": [
{
"key": "conversation_create",
"is_subscribed": true
},
{
"key": "message",
"is_subscribed": true
},
{
"key": "status",
"is_subscribed": true
},
{
"key": "assignee_change",
"is_subscribed": true
},
{
"key": "sla_breached",
"is_subscribed": true
},
{
"key": "variables",
"is_subscribed": true
},
{
"key": "conversation_labels",
"is_subscribed": true
},
{
"key": "note",
"is_subscribed": true
}
],
"is_enabled": true,
"token": "Test"
}
'import requests
url = "https://api.wotnot.io/v1/accounts/{account_id}/webhook"
payload = {
"webhook_url": "",
"subscribed_events": [
{
"key": "conversation_create",
"is_subscribed": True
},
{
"key": "message",
"is_subscribed": True
},
{
"key": "status",
"is_subscribed": True
},
{
"key": "assignee_change",
"is_subscribed": True
},
{
"key": "sla_breached",
"is_subscribed": True
},
{
"key": "variables",
"is_subscribed": True
},
{
"key": "conversation_labels",
"is_subscribed": True
},
{
"key": "note",
"is_subscribed": True
}
],
"is_enabled": True,
"token": "Test"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
webhook_url: '',
subscribed_events: [
{key: 'conversation_create', is_subscribed: true},
{key: 'message', is_subscribed: true},
{key: 'status', is_subscribed: true},
{key: 'assignee_change', is_subscribed: true},
{key: 'sla_breached', is_subscribed: true},
{key: 'variables', is_subscribed: true},
{key: 'conversation_labels', is_subscribed: true},
{key: 'note', is_subscribed: true}
],
is_enabled: true,
token: 'Test'
})
};
fetch('https://api.wotnot.io/v1/accounts/{account_id}/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wotnot.io/v1/accounts/{account_id}/webhook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'webhook_url' => '',
'subscribed_events' => [
[
'key' => 'conversation_create',
'is_subscribed' => true
],
[
'key' => 'message',
'is_subscribed' => true
],
[
'key' => 'status',
'is_subscribed' => true
],
[
'key' => 'assignee_change',
'is_subscribed' => true
],
[
'key' => 'sla_breached',
'is_subscribed' => true
],
[
'key' => 'variables',
'is_subscribed' => true
],
[
'key' => 'conversation_labels',
'is_subscribed' => true
],
[
'key' => 'note',
'is_subscribed' => true
]
],
'is_enabled' => true,
'token' => 'Test'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wotnot.io/v1/accounts/{account_id}/webhook"
payload := strings.NewReader("{\n \"webhook_url\": \"\",\n \"subscribed_events\": [\n {\n \"key\": \"conversation_create\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"message\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"status\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"assignee_change\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"sla_breached\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"variables\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"conversation_labels\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"note\",\n \"is_subscribed\": true\n }\n ],\n \"is_enabled\": true,\n \"token\": \"Test\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wotnot.io/v1/accounts/{account_id}/webhook")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"\",\n \"subscribed_events\": [\n {\n \"key\": \"conversation_create\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"message\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"status\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"assignee_change\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"sla_breached\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"variables\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"conversation_labels\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"note\",\n \"is_subscribed\": true\n }\n ],\n \"is_enabled\": true,\n \"token\": \"Test\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wotnot.io/v1/accounts/{account_id}/webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"webhook_url\": \"\",\n \"subscribed_events\": [\n {\n \"key\": \"conversation_create\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"message\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"status\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"assignee_change\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"sla_breached\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"variables\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"conversation_labels\",\n \"is_subscribed\": true\n },\n {\n \"key\": \"note\",\n \"is_subscribed\": true\n }\n ],\n \"is_enabled\": true,\n \"token\": \"Test\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true
}{
"error": "UNAUTHORIZED",
"ok": false,
"status": 401,
"message": "Invalid token. Provide the valid account token."
}Authorizations
Body
application/json
The webhook URL and the events to send to it.
Last modified on October 22, 2026
Was this page helpful?